fix port calculator
All checks were successful
/ deploy (push) Successful in 41s

This commit is contained in:
Minecon724 2024-10-11 16:25:05 +02:00
parent 3cc90e5b71
commit 7580085e2a
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8

View file

@ -1,5 +1,4 @@
const result = document.getElementById('result');
const isNumber = (s) => /^\d+$/.test(s);
function calculate(el) {
if (el.value == '') {
@ -30,3 +29,5 @@ const cyrb53 = (str, seed = 0) => {
return 4294967296 * (2097151 & h2) + (h1 >>> 0);
};
calculate(result); // this is necessary for parcel