From 3feb8f5af835f2dac403760bbb7bedb895c45954 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Mon, 25 Apr 2022 03:21:23 -0700 Subject: web: better separate match control and display logic --- web/static/dartboat.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'web/static') diff --git a/web/static/dartboat.js b/web/static/dartboat.js index 4299dd3..cb84fe3 100644 --- a/web/static/dartboat.js +++ b/web/static/dartboat.js @@ -93,13 +93,13 @@ prompt_handlers.visit = { submit() { let pts = this._get_and_clear(); if (pts) - Module.ccall('user_visit', 'number', ['number'], [pts]); + Module.ccall('user_visit', null, ['number'], [pts]); }, submit_rem() { let rem = this._get_and_clear(); if (rem) - Module.ccall('user_visit_to_rem', 'number', ['number'], [rem]); + Module.ccall('user_visit_to_rem', null, ['number'], [rem]); } }; @@ -109,7 +109,7 @@ prompt_handlers.num_darts = { submit() { let n = this._get_and_clear(); if (n) - Module.ccall('resp_numdarts', null, ['number'], [n]); + Module.ccall('user_num_darts', null, ['number'], [n]); } }; @@ -236,7 +236,7 @@ function updateStdev(val) { document.getElementById('stdev').value = val; } -function read_opts() { +function readOpts() { let val; if ((val = localStorage.getItem('dartboat_delay'))) -- cgit v1.2.3-70-g09d2