diff --git a/static/main.html b/static/main.html
index 13d7436..f95e902 100644
--- a/static/main.html
+++ b/static/main.html
@@ -6,11 +6,46 @@
-
+
@@ -118,6 +153,20 @@
secs = (secs < 10) ? '0' + secs : secs;
let demidiemity = (hours / 12)|0 ? 'PM' : 'AM';
$('#last_ring').text(`${hours12}:${mins}:${secs} ${demidiemity}`);
+
+ // CSS Animations don't provide a way to restart them.
+ // Instead, we can temporarily override the animation property to 'none' then the
+ // animation will restart when we re-inheirit from the stylesheet.
+ let flashers = $('.flash').each((_, e) => {
+ e.style.animation = '';
+ e.style.animationPlayState = 'running';
+
+ let end_count = 0; // Each sub-animation fires its own event
+ let $e = $(e);
+ $e.off();
+ $e.on('animationend',
+ ev => { if (++end_count == 3 ) ev.target.style.animation = 'none paused'});
+ });
});
};
@@ -142,7 +191,6 @@
status_line.append(template);
}
-