Skip to content

Commit

Permalink
init anim
Browse files Browse the repository at this point in the history
  • Loading branch information
brihat-rb committed Aug 16, 2023
1 parent 6827248 commit 3174ef4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ <h4 class="modal-title" id="modal_title">Loading Date ...</h4>
<script>
function loading_anim() {
document.getElementById('loading').style.display = "none";
init_anim();
}
</script>

Expand Down
14 changes: 14 additions & 0 deletions js/addons/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}

0 comments on commit 3174ef4

Please sign in to comment.