diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-03 05:56:04 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-03 05:56:04 -0700 |
commit | 50f5ce01c543ef2e4d780f3aed8a565b142865ea (patch) | |
tree | 7cb81afb6a334d95f6751aa5b823eb7377d38c1c /web/web_opts.c | |
parent | f4c0da6517e3a5bf4e87d2ac0acf474fbc75d62c (diff) | |
download | dartboat-50f5ce01c543ef2e4d780f3aed8a565b142865ea.tar.gz dartboat-50f5ce01c543ef2e4d780f3aed8a565b142865ea.tar.xz |
web: move reading opts to opts file
Diffstat (limited to 'web/web_opts.c')
-rw-r--r-- | web/web_opts.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/web/web_opts.c b/web/web_opts.c index 1188232..0f37bba 100644 --- a/web/web_opts.c +++ b/web/web_opts.c @@ -8,6 +8,13 @@ int delay_ms = 1000; +void opts_init() +{ + EM_ASM(readOpts()); + EM_ASM({updateDelay($0)}, delay_ms); + EM_ASM({updateStdev($0)}, horizontal_stdev); +} + EMSCRIPTEN_KEEPALIVE void set_delay(int delay) { |