Pre-Alpha to Alpha Ready
This commit is contained in:
@@ -118,6 +118,16 @@ function update() {
|
||||
updateVsComparison(q);
|
||||
updateSectionSummaries(q);
|
||||
|
||||
// Active section accent
|
||||
['sec-02', 'sec-03', 'sec-01', 'sec-04', 'sec-05', 'sec-06'].forEach(function(secId) {
|
||||
var el = document.getElementById(secId);
|
||||
if (!el) return;
|
||||
var input = el.querySelector('.num-input');
|
||||
var isActive = input ? parseInt(input.value) > 0 : false;
|
||||
if (secId === 'sec-01') isActive = q.mrr > 0;
|
||||
el.classList.toggle('sec-active', isActive);
|
||||
});
|
||||
|
||||
debouncedSave();
|
||||
}
|
||||
|
||||
@@ -321,6 +331,10 @@ function stepInput(id, delta) {
|
||||
if (!el) return;
|
||||
const min = parseInt(el.min) ?? 0;
|
||||
el.value = Math.max(min, (parseInt(el.value) || 0) + delta);
|
||||
// Pulse feedback
|
||||
el.classList.remove('pulse');
|
||||
void el.offsetWidth;
|
||||
el.classList.add('pulse');
|
||||
update();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user