forked from gnibeil/simplekolecalc
set standard on page load
This commit is contained in:
parent
8d81c5f718
commit
81810f0dd7
@ -133,8 +133,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
s.addEventListener('click', function(){
|
s.addEventListener('click', function(){
|
||||||
c.selectedIndex=0;
|
|
||||||
z.disabled=true;
|
|
||||||
if(bk.checked){
|
if(bk.checked){
|
||||||
e.value = roundCents( getFormFloat(k) * ( 1 + getFormFloat(u) / 100 ) / ( 1 - getFormFloat(z) / 100 ) );
|
e.value = roundCents( getFormFloat(k) * ( 1 + getFormFloat(u) / 100 ) / ( 1 - getFormFloat(z) / 100 ) );
|
||||||
n.value = roundCents( getFormFloat(k) / ( 1 - getFormFloat(z) / 100 ) );
|
n.value = roundCents( getFormFloat(k) / ( 1 - getFormFloat(z) / 100 ) );
|
||||||
@ -170,6 +168,11 @@
|
|||||||
break;;
|
break;;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// set entropy tax to standard value
|
||||||
|
c.selectedIndex=0;
|
||||||
|
z.value='23.00';
|
||||||
|
z.disabled=true;
|
||||||
|
// calc
|
||||||
s.click();
|
s.click();
|
||||||
</script>
|
</script>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user