From 6fb1750b923b97a377d6ef8ad4a25b501e65b39d Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Fri, 20 May 2022 15:03:44 -0700 Subject: 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. --- web/web_dom.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'web/web_dom.c') 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); -- cgit v1.2.3-70-g09d2