From 2709b070c5fde766c0e9fe98ade169a865e6c9ad Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Tue, 3 May 2022 21:55:21 -0700 Subject: web: oi from c --- web/static/dartboat.js | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'web/static/dartboat.js') diff --git a/web/static/dartboat.js b/web/static/dartboat.js index 4edba8a..eaf76da 100644 --- a/web/static/dartboat.js +++ b/web/static/dartboat.js @@ -1,25 +1,9 @@ const $ = document.querySelector.bind(document); const $$ = document.querySelectorAll.bind(document); -let oi_timeout; -function oi() { - $('#oi').style.visibility = 'visible'; - - oi_timeout = setTimeout(() => { oi_timeout = null; clearOi(); }, 3000); -} - -function clearOi() { - $('#oi').style.visibility = 'hidden'; - - if (oi_timeout) { - clearTimeout(oi_timeout); - oi_timeout = null; - } -} - function scheduleCCall(f, ms, ...args) { const func = UTF8ToString(f); - setTimeout(() => Module[`_${func}`](...args), ms); + return setTimeout(() => Module[`_${func}`](...args), ms); } function toCString(str) { // caller must free -- cgit v1.2.3-70-g09d2