-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.es6
50 lines (33 loc) · 1.2 KB
/
index.es6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
window.performance && performance.mark && performance.mark('index.html');
let Polymer = {
lazyRegister: true,
dom: 'shadow'
};
(function() {
if ('registerElement' in document &&
'import' in document.createElement('link') &&
'content' in document.createElement('template')) {
// platform is good!
} else {
// polyfill the platform!
var e = document.createElement('script');
e.src = '/bower_components/webcomponentsjs/webcomponents-lite.min.js';
document.body.appendChild(e);
}
document.addEventListener("DOMContentLoaded", function(event) {
var splashText = document.querySelector('.splash .text');
var content = document.querySelector('.content');
setTimeout(function() {
splashText.classList.add('fadeInUp');
}, 200);
window.addEventListener('WebComponentsReady', (e) => {
console.log('WebComponentsReady');
});
setTimeout(function() {
// console.log(splashText);
// splashText.classList.add('ready');
splashText.classList.add('fadeOutUp');
content.classList.add('fadeIn');
}, 3000);
});
})();