This commit is contained in:
parent
3cc90e5b71
commit
7580085e2a
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
|||
const result = document.getElementById('result');
|
||||
const isNumber = (s) => /^\d+$/.test(s);
|
||||
|
||||
function calculate(el) {
|
||||
if (el.value == '') {
|
||||
|
@ -29,4 +28,6 @@ const cyrb53 = (str, seed = 0) => {
|
|||
h2 ^= Math.imul(h1 ^ (h1 >>> 13), 3266489909);
|
||||
|
||||
return 4294967296 * (2097151 & h2) + (h1 >>> 0);
|
||||
};
|
||||
};
|
||||
|
||||
calculate(result); // this is necessary for parcel
|
Loading…
Reference in a new issue