Add configurable author price calculator

This commit is contained in:
ZeroIchiro
2026-09-18 10:24:27 +00:00
parent 373bf402e1
commit 30f8855e20
5 changed files with 190 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
(() => {
const checkbox = document.querySelector('#use-author-margin');
const discountInput = document.querySelector('#discount-percent');
if (!checkbox || !discountInput) return;
const updateDiscountInput = () => {
discountInput.disabled = checkbox.checked;
};
checkbox.addEventListener('change', updateDiscountInput);
updateDiscountInput();
})();