set standard on page load

This commit is contained in:
vv01f 2023-05-29 13:53:36 +02:00
parent 8d81c5f718
commit 81810f0dd7

View File

@ -133,8 +133,6 @@
}
s.addEventListener('click', function(){
c.selectedIndex=0;
z.disabled=true;
if(bk.checked){
e.value = roundCents( getFormFloat(k) * ( 1 + getFormFloat(u) / 100 ) / ( 1 - getFormFloat(z) / 100 ) );
n.value = roundCents( getFormFloat(k) / ( 1 - getFormFloat(z) / 100 ) );
@ -170,6 +168,11 @@
break;;
}
});
// set entropy tax to standard value
c.selectedIndex=0;
z.value='23.00';
z.disabled=true;
// calc
s.click();
</script>
</div>