small UI cleaning
This commit is contained in:
parent
302b17287c
commit
540cf01e8d
@ -6,8 +6,9 @@
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<h1>Rechner zwischen Brutto-Netto-Kole</h1>
|
||||||
<table>
|
<table>
|
||||||
<tr><td>Ausgangsbetrag:</td><td><input type="radio" name="b" value="e" id="bb" class="bb" checked="checked"/><label for="bb">Brutto</label><input type="radio" name="b" value="b" id="bn" class="bb"/><label for="bn">Netto</label><input type="radio" name="b" value="k" id="bk" class="bb"/><label for="bk">KoLe</label></td></tr>
|
<tr><td>Eingangsgröße:</td><td><input type="radio" name="b" value="e" id="bb" class="bb" checked="checked"/><label for="bb">Brutto</label><input type="radio" name="b" value="b" id="bn" class="bb"/><label for="bn">Netto</label><input type="radio" name="b" value="k" id="bk" class="bb"/><label for="bk">KoLe</label></td></tr>
|
||||||
<tr><td>Brutto</td><td><input type="number" step="0.01" id="e" value="100.00"/> €</td></tr>
|
<tr><td>Brutto</td><td><input type="number" step="0.01" id="e" value="100.00"/> €</td></tr>
|
||||||
<tr><td>Umsatzsteuersatz</td><td><input type="number" step="0.01" id="u" value="19.00"/> %</td></tr>
|
<tr><td>Umsatzsteuersatz</td><td><input type="number" step="0.01" id="u" value="19.00"/> %</td></tr>
|
||||||
<tr><td>Umsatzsteuer</td><td><input type="number" step="0.01" id="us" value="0.00"/> €</td></tr>
|
<tr><td>Umsatzsteuer</td><td><input type="number" step="0.01" id="us" value="0.00"/> €</td></tr>
|
||||||
@ -48,8 +49,8 @@
|
|||||||
e.value = roundCents( getFormFloat(n) * ( 1 + getFormFloat(u) / 100 ) );
|
e.value = roundCents( getFormFloat(n) * ( 1 + getFormFloat(u) / 100 ) );
|
||||||
k.value = roundCents( getFormFloat(n) * ( 1 - getFormFloat(z) / 100 ) );
|
k.value = roundCents( getFormFloat(n) * ( 1 - getFormFloat(z) / 100 ) );
|
||||||
}
|
}
|
||||||
us.value = roundCents(e.value* getFormFloat(u) / 100 );
|
us.value = roundCents(e.value * getFormFloat(u) / 100 );
|
||||||
eu.value = roundCents(n.value* getFormFloat(z) / 100 );
|
eu.value = roundCents(n.value * getFormFloat(z) / 100 );
|
||||||
});
|
});
|
||||||
e.addEventListener('change', function(){bb.checked = true;});
|
e.addEventListener('change', function(){bb.checked = true;});
|
||||||
n.addEventListener('change', function(){bn.checked = true;});
|
n.addEventListener('change', function(){bn.checked = true;});
|
||||||
|
Loading…
Reference in New Issue
Block a user