diff --git a/index.html b/index.html index f135ad8..a465a29 100644 --- a/index.html +++ b/index.html @@ -230,6 +230,7 @@ diff --git a/js/addons/utils.js b/js/addons/utils.js index d82a0d2..61c918d 100644 --- a/js/addons/utils.js +++ b/js/addons/utils.js @@ -35,4 +35,18 @@ function highlight_event_in_calendar() { corresponding_td.style = "background-color: none; border-color: none;"; }); }); +} + +function init_anim() { + var parvas_dom = document.getElementById("parvas").childNodes; + var parvas_span_events = [].filter.call(parvas_dom, function(el) { + return el.id.includes('events'); + }); + + parvas_span_events.forEach(function (event, index) { + setTimeout(() => { + event.dispatchEvent(new Event("mouseover")); + event.dispatchEvent(new Event("mouseout")); + }, index * 75); + }); } \ No newline at end of file