Quellcode durchsuchen

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

dev
Bryan Miller vor 5 Jahren
Ursprung
Commit
df3c2830bb
2 geänderte Dateien mit 19 neuen und 0 gelöschten Zeilen
  1. +18
    -0
      app/js/main.js
  2. +1
    -0
      views/index.html

+ 18
- 0
app/js/main.js Datei anzeigen

@@ -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 Datei anzeigen

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

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


Laden…
Abbrechen
Speichern