summaryrefslogtreecommitdiff
path: root/web/web_dom.c
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-20 15:03:44 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-20 15:03:44 -0700
commit6fb1750b923b97a377d6ef8ad4a25b501e65b39d (patch)
tree07fd49ffd6ea14b528725c99f511136a1ea54fb3 /web/web_dom.c
parent7433d87aef18955468027a79edd9bb50c4db8275 (diff)
downloaddartboat-6fb1750b923b97a377d6ef8ad4a25b501e65b39d.tar.gz
dartboat-6fb1750b923b97a377d6ef8ad4a25b501e65b39d.tar.xz
web: support visit log for 3+ player matches
The new match modes are for testing. They'll eventually be removed in favour of true configurability.
Diffstat (limited to 'web/web_dom.c')
-rw-r--r--web/web_dom.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/web/web_dom.c b/web/web_dom.c
index 162684a..54a6c8d 100644
--- a/web/web_dom.c
+++ b/web/web_dom.c
@@ -144,6 +144,11 @@ inline void dom_set_uniq_class(char *sel, char *class, char *sel_set)
EM_ASM({elemSetUniqClass($0, $1, $2)}, sel, class, sel_set);
}
+inline void dom_set_style_property_int(char *prop, int val)
+{
+ EM_ASM({rootSetStylePropertyInt($0, $1)}, prop, val);
+}
+
inline void dom_scroll_to_bottom(char *sel)
{
EM_ASM({elemScrollToBottom($0)}, sel);