From 7580085e2a94bf91a4bb0152daca378b1d36ced2 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Fri, 11 Oct 2024 16:25:05 +0200 Subject: [PATCH] fix port calculator --- src/calculator/script.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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