瀏覽代碼

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

dev
Bryan Miller 6 年之前
父節點
當前提交
df3c2830bb
共有 2 個文件被更改,包括 19 次插入0 次删除
  1. +18
    -0
      app/js/main.js
  2. +1
    -0
      views/index.html

+ 18
- 0
app/js/main.js 查看文件

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 查看文件

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


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



Loading…
取消
儲存