Browse Source

Added the cover element to the HTML and added code to remove it when the page is ready.

dev
Bryan Miller 5 years ago
parent
commit
df3c2830bb
2 changed files with 19 additions and 0 deletions
  1. +18
    -0
      app/js/main.js
  2. +1
    -0
      views/index.html

+ 18
- 0
app/js/main.js View File

@@ -1,3 +1,4 @@
import Utils from "/app/js/common/Utils.js";
import GlobalEvents from "/app/js/common/EventCaller.js";
import EmitterElements from "/app/js/ui/Emitters.js";
import Input from "/app/js/ui/Input.js";
@@ -39,6 +40,23 @@ function initialize(DOC){
CTRLBanksStore.initialize();

CTRLIO.initialize();

var cover = document.querySelector(".cover");
Utils.addListenerToEvents(
cover,
[
"webkitAnimationEnd",
"oanimationend",
"oAnimationEnd",
"msAnimationEnd",
"animationend"
],
function(){
this.parentNode.removeChild(this);
});
if (cover){
cover.classList.add("coverFadeout");
}
}



+ 1
- 0
views/index.html View File

@@ -1,5 +1,6 @@
<%- include('head.html'); %>

<div class="cover"></div>
<%- include('modal.html'); %>
<%- include('header.html'); %>


Loading…
Cancel
Save