diff --git a/src/calculator/script.js b/src/calculator/script.js index 8f47950..b00de48 100644 --- a/src/calculator/script.js +++ b/src/calculator/script.js @@ -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); -}; \ No newline at end of file +}; + +calculate(result); // this is necessary for parcel \ No newline at end of file