summaryrefslogtreecommitdiff
path: root/web/web_dom.c
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-19 15:24:06 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-19 15:24:06 -0700
commit2886add52aeed172289f3bddd995eda0b0c92a67 (patch)
tree27a9802c0364f5e98a12fdfe2155a85d7ec5f5e8 /web/web_dom.c
parent8956650dccfe1707005ef8be3655a4d986805312 (diff)
downloaddartboat-2886add52aeed172289f3bddd995eda0b0c92a67.tar.gz
dartboat-2886add52aeed172289f3bddd995eda0b0c92a67.tar.xz
web: display darts for comp as player 1
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 07602f8..162684a 100644
--- a/web/web_dom.c
+++ b/web/web_dom.c
@@ -149,6 +149,11 @@ inline void dom_scroll_to_bottom(char *sel)
EM_ASM({elemScrollToBottom($0)}, sel);
}
+inline void dom_scroll_to_center_child(char *sel, char *sel_child)
+{
+ EM_ASM({elemScrollToCenterChild($0, $1)}, sel, sel_child);
+}
+
inline void dom_enable_exit_dialogue(bool enable)
{
EM_ASM({enableExitDialogue($0)}, enable);