Jauge offset 62, onglet mensuel renommé, déduction 66% sur boutons libres, champs label noir/vert

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-04-21 16:27:30 +02:00
parent 25fe91ea93
commit b8048d24f6
5 changed files with 68 additions and 6 deletions

View file

@ -14,11 +14,13 @@
afterTax: 'Soit {amount}&#8239;€ après impôts',
perMonth: '€/mois',
withTaxReduction: 'Avec 66&#8239;% de déduction fiscale',
chooseAmount: 'Choisissez votre montant',
},
en: {
afterTax: 'That is {amount}&#8239;€ after tax',
perMonth: '€/month',
withTaxReduction: 'With 66&#8239;% tax deduction',
chooseAmount: 'Choose your amount',
},
};
@ -115,6 +117,10 @@
window.open(generateDonorboxUrl(amount, false), '_blank');
});
} else {
button.innerHTML = `
<p class="bold">${translate('chooseAmount')}</p>
<p class="small">${translate('withTaxReduction')}</p>
`;
button.addEventListener('click', () => {
window.open(generateDonorboxUrl(null, false), '_blank');
});
@ -144,6 +150,10 @@
window.open(generateDonorboxUrl(amount, true), '_blank');
});
} else {
button.innerHTML = `
<p class="bold">${translate('chooseAmount')}</p>
<p class="small">${translate('withTaxReduction')}</p>
`;
button.addEventListener('click', () => {
window.open(generateDonorboxUrl(null, true), '_blank');
});

View file

@ -2,7 +2,7 @@ const DONORBOX_CONFIG = {
proxyUrl: '/api/donorbox-proxy.php',
};
const RECURRING_DONORS_OFFSET = 98;
const RECURRING_DONORS_OFFSET = 62;
const GOAL_SUPPORTERS = 500;
async function fetchDonorboxData() {