From f4c0da6517e3a5bf4e87d2ac0acf474fbc75d62c Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Mon, 2 May 2022 20:03:01 -0700 Subject: web: more renaming --- web/static/dartboat.js | 4 ++-- web/static/index.html | 6 +++--- web/static/style.css | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'web/static') diff --git a/web/static/dartboat.js b/web/static/dartboat.js index 13a5da4..719bd8d 100644 --- a/web/static/dartboat.js +++ b/web/static/dartboat.js @@ -156,12 +156,12 @@ function svgDrawElemv(layer, elemc, elemv, off_name, off_n_attrs, off_attr_names const content = HEAP32[(struct + off_content)>>2]; if (content) e.textContent = UTF8ToString(content); - $(`#dartboard${layer ? '-points' : ''}`).appendChild(e); + $(`#dartboard .${layer ? 'overlay' : 'base'}`).appendChild(e); } } function svgClearPoints() { - $('#dartboard-points').textContent = ''; + $('#dartboard .overlay').textContent = ''; } function updateDelay(val) { diff --git a/web/static/index.html b/web/static/index.html index f583449..1a8d1b5 100644 --- a/web/static/index.html +++ b/web/static/index.html @@ -58,9 +58,9 @@ diff --git a/web/static/style.css b/web/static/style.css index e306177..a7ad76a 100644 --- a/web/static/style.css +++ b/web/static/style.css @@ -64,7 +64,7 @@ div#controls #keypad-dartboard #dartboard-container { justify-content: center; } -div#controls #keypad-dartboard #dartboard-container svg { +div#controls #keypad-dartboard #dartboard { font-family: 'Inter'; height: 100%; } -- cgit v1.2.3-70-g09d2