-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
105 lines (97 loc) · 3.94 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bulmaca-Oyunu</title>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css"
integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous">
<link rel="stylesheet" href="./style/index.css">
</head>
<body>
<div class="alert-box" id="opn">
<div class="alert">
<div class="top-side">
MAGAZA
</div>
<div class="al-cont">
Mağazayı ve birçok şeyi yapmaya malesef zamanım yetmedi. <br> Ekleyemediklerim;
<ul>
<li>Mağaza</li>
<li>Level Sistemi</li>
<li>Profil Resmi Ekleme, Değiştirme</li>
<li>Eşzamanlı Oynanış İpuçları</li>
</ul>
</div>
</div>
<div class="filter"></div>
</div>
<div class="box-for-user" id="bfu">
<i title="Çıkış yap" id="logOut" class="fas fa-sign-out-alt"></i>
<i title="Mağazayı Yapmaya Zamanım Yetmedi :(" id="openStore" class="fas fa-store"></i>
</div>
<iframe id="keeper" src="try.html" frameborder="0"></iframe>
<script>
function load() {
let load = localStorage.getItem('map')
let beFore = localStorage.getItem('beFore')
let bfu = document.getElementById('bfu')
if (load == 'Asgard' && beFore != 'true') {
setTimeout(() => {
let doca = document.getElementById('keeper')
doca.src = 'asgard.html'
bfu.style.display = 'flex'
}, 5000);
clearInterval(myInterval)
} else if (load == 'Asgard' && beFore == 'true') {
let doca = document.getElementById('keeper')
doca.src = 'asgard.html'
bfu.style.display = 'flex'
clearInterval(myInterval)
} else if (load == 'Jotunheim' && beFore != 'true') {
setTimeout(() => {
let doca = document.getElementById('keeper')
doca.src = 'jotunheim.html'
bfu.style.display = 'flex'
}, 5000);
clearInterval(myInterval)
} else if (load == 'Jotunheim' && beFore == 'true') {
let doca = document.getElementById('keeper')
doca.src = 'jotunheim.html'
bfu.style.display = 'flex'
clearInterval(myInterval)
} else if (load == 'Midgard' && beFore != 'true') {
setTimeout(() => {
let doca = document.getElementById('keeper')
doca.src = 'midgard.html'
bfu.style.display = 'flex'
}, 5000);
clearInterval(myInterval)
} else if (load == 'Midgard' && beFore == 'true') {
let doca = document.getElementById('keeper')
doca.src = 'midgard.html'
bfu.style.display = 'flex'
clearInterval(myInterval)
}
}
console.log('inter')
load()
let myInterval = setInterval(load, 1000)
let openStore = document.getElementById('openStore')
let logOut = document.getElementById('logOut')
logOut.addEventListener('click', () => {
localStorage.clear()
bfu.style.display = 'none'
location.reload()
})
openStore.addEventListener('click', () => {
let opn = document.getElementById('opn')
opn.style.display = 'flex'
opn.addEventListener('click', () => {
opn.style.display = 'none'
})
})
</script>
</body>
</html>