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

import Utils from "/app/js/common/Utils.js";
import GlobalEvents from "/app/js/common/EventCaller.js"; import GlobalEvents from "/app/js/common/EventCaller.js";
import EmitterElements from "/app/js/ui/Emitters.js"; import EmitterElements from "/app/js/ui/Emitters.js";
import Input from "/app/js/ui/Input.js"; import Input from "/app/js/ui/Input.js";
CTRLBanksStore.initialize(); CTRLBanksStore.initialize();


CTRLIO.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

<%- include('head.html'); %> <%- include('head.html'); %>


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



Loading…
Cancel
Save