���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/public_html/calc.html
���ѧ٧ѧ�
<html> <title>Calc</title> <style> * { font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; font-weight: 800; color: #fff; } body { display: flex; justify-content: center; align-items: center; margin: 0; background: rgb(18, 16, 39) } input { background:rgb(36, 33, 61); border-radius: 25px; color: #fff; appearance: none; outline: none; border: 3px solid rgb(31, 26, 65); } </style> <body> <div class="inner" style="width: 70%"> <h1 style="color: rgb(193, 159, 226)" id="">Bitlife Percent Calc</h1> <input onkeyup="run()" style="width: 100%; height: 120px; font-size: 30;" id="current" placeholder="Amount"><br><br> <input oninput="run()" style="width: 100%; height: 120px; font-size: 30;" id="percent" placeholder="Percent"><br> <h1 style="color: rgb(120, 164, 123)" id="number"></h1> </div> </body> </html> <script> function numberWithCommas(x) { return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); } function run() { let currentg = document.getElementById('current').value let current = parseFloat(currentg.replaceAll(',', '')) document.getElementById('current').value = current.toLocaleString() let percent = parseFloat("1." + parseFloat(document.getElementById('percent').value)) let newnumb = current * percent document.getElementById('number').innerHTML = numberWithCommas(parseInt(newnumb)) if (isNaN(parseFloat(currentg))) { document.getElementById('current').value = "" document.getElementById('number').innerHTML = "0" } } </script>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.2 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�