summaryrefslogtreecommitdiff
path: root/web/web_svg.c
diff options
context:
space:
mode:
Diffstat (limited to 'web/web_svg.c')
-rw-r--r--web/web_svg.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/web/web_svg.c b/web/web_svg.c
index 470b7ec..485583d 100644
--- a/web/web_svg.c
+++ b/web/web_svg.c
@@ -1,5 +1,6 @@
#include "web_svg.h"
#include "web_dom.h"
+#include "web_opts.h"
#include "board.h"
#include "comp.h"
@@ -224,6 +225,12 @@ void svg_draw_point(double x, double y)
dom_elem_add_attrd(e, "cx", x);
dom_elem_add_attrd(e, "cy", y);
+ if (delay_ms >= SVG_THROW_ANIM_MS) {
+ char buf[64];
+ sprintf(buf, "animation: throw-anim %dms;", SVG_THROW_ANIM_MS);
+ dom_elem_add_attr(e, "style", buf);
+ }
+
dom_append_elemv("#dartboard .overlay", 1, &e);
dom_elem_free(e);
}