-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
111 lines (96 loc) · 3.36 KB
/
index.html
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
<title data-key="title"></title>
<script>
const script = document.createElement('script');
script.src = "engine/autoloader.js" + '?v=' + new Date().getTime();
script.async = true;
document.head.appendChild(script);
</script>
<style>
.sequence {
position: relative;
text-align: center;
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.fade-item {
position: absolute;
opacity: 0;
transition: opacity 2s;
}
.visible {
opacity: 1;
}
.img-responsive {
width: 33%;
height: auto;
}
@media (max-width: 768px) {
.img-responsive {
width: 77%;
}
}
</style>
</head>
<body class="visible">
<div id="background" class="d-flex justify-content-center align-items-center vh-100">
<div class="sequence">
<div class="fs-2 fade-item">
<span style="" class="fs-1 fw-bold">Niner Games</span><br />
<span data-text="proudly presents..."></span>
</div>
<img src="data/company.png" class="img-responsive fade-item" alt="Logo">
<span class="fade-item fw-bold fs-1" style="" data-key="title"></span>
<img src="data/logo.png" class="img-responsive fade-item" alt="Logo">
<div class="fs-2 fade-item">
<span data-text="Made with"></span>
<i class="fa fa-heart" aria-hidden="true"></i><br />
<span data-text="in Upper Silesia!"></span>
</div>
</div>
</div>
<script>
window.addEventListener("load", function() {
let currentIndex = 0;
let items = document.querySelectorAll('.fade-item');
function showNextItem() {
if (currentIndex > 0) {
items[currentIndex - 1].classList.remove('visible');
}
setTimeout(() => {
if (currentIndex < items.length) {
items[currentIndex].classList.add('visible');
setTimeout(() => {
items[currentIndex].classList.remove('visible');
currentIndex++;
setTimeout(showNextItem, 1000);
}, 3000);
} else {
gotoMenu();
}
}, 1000);
}
function goToMenu() {
window.location.href = 'menu.html';
}
setTimeout(showNextItem, 1000);
document.getElementById('background').addEventListener('click', function() {
goToMenu();
});
document.addEventListener('keydown', function() {
goToMenu();
});
});
</script>
</body>
</html>