-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjotunheim.html
174 lines (170 loc) · 5.97 KB
/
jotunheim.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=,, initial-scale=1.0">
<title>Crossword-Game-V2</title>
<link rel="stylesheet" href="./style/style.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css" integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous">
<style>
.logIn{
width: 100%;
height: 100%;
z-index: 99999;
position: absolute;
background-color: rgb(53, 53, 53);
}
label{
font-size: 20px;
color: rgb(22, 156, 123);
z-index: 10000;
}
#inp:focus{
border: 2px solid rgb(22, 152, 156);
}
#inp, #think{
width: 85%;
height: 50px;
z-index: 10000;
padding: 10px;
font-size: 20px;
margin: 20px auto;
outline: none;
color: rgb(22, 156, 123);
border: 2px solid rgb(22, 156, 123);
background: none;
}
#gir, #chkAnswer{
width: 85%;
height: 50px;
cursor: pointer;
z-index: 10000;
color: #fff;
border: none;
outline: none;
background: rgb(22, 156, 123);
}
.answer-check-box{
width: 100%;
height: 100%;
z-index: 99999;
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
position: absolute;
left: -100%;
transition: left .4s ease-in-out;
background: rgba(0, 0, 0, 0.603);
}
#think{
width: 65%;
height: 50px;
padding: 10px;
color: #ffff;
box-shadow: 0 0 5px 1px rgb(22, 156, 123);
border-color: rgb(22, 156, 123);
margin: 20px auto;
}
#chkAnswer{
width: 65%;
}
#clo:hover{
color: #fff;
background: rgb(22, 156, 123);
}
#clo{
top: 25px;
right: 25px;
padding: 10px;
width: 50px;
height: 50px;
font-size: 20px;
cursor: pointer;
position: absolute;
}
.que, .place, #nameBox, .takeble-point{
color: rgb(22, 156, 123);
text-shadow: 1px 0 5px rgb(22, 156, 123);
}
</style>
</head>
<body style="background-image: url('https://i.pinimg.com/originals/5f/c6/9a/5fc69ae45fc9e117dc6ab10cc6a43580.jpg');">
<div class="taken-point">
<i style="margin: 15px;" class="fas fa-coins"></i>
<div style="width: 30%; text-align: center;" id="takenPoint"></div>
</div>
<div class="place">JOTUNHEIM</div>
<div class="answer-check-box" id="anwChkBx">
<button id="clo" style="background: none; outline: none; border: 2px solid rgb(22, 156, 123); color: rgb(22, 156, 123);">X</button>
<label for="think">Tahmininizi Yazın</label>
<input id="think" type="text" placeholder="Tahmin">
<button id="chkAnswer">
GÖNDER
</button>
</div>
<div class="welcome-window" id="welcomeWindowF">
<div class="f-welcome" style="display: flex; align-items: center; justify-content: center;">
<label for="inp">
Kullanıcı Adı
</label>
<input type="text" id="inp">
<button id="gir">GİRİŞ YAP</button>
</div>
<div class="filter">
</div>
</div>
<div class="takeble-point" id="tpBox"></div>
<div class="xp-box" id="nameBox" style="text-align: center; font-size: 25px; text-transform: uppercase; color: rgb(22, 156, 123); display: flex; align-items: center; justify-content: center;"></div>
<div class="filter"></div>
<div class="question-box box">
<!-- <div class="que">SORU</div> -->
<h1 id="questionBox" style="color: #fff;"></h1>
</div>
<div class="tip-box box" id="anwBox">
<div class="que">CEVAP</div>
</div>
<div class="answer-box box" id="tip">
<div class="que">İPUCU</div>
</div>
<div class="box" style="padding: 0; display: flex; align-items: center; justify-content: center;">
<div class="get-letter" id="getLetter">HARF AL</div>
<div class="get-letter" id="predict">TAHMİN ET</div>
</div>
<script>
let check = document.getElementById('welcomeWindowF')
let checkUser = localStorage.getItem('username')
let nameBox = document.getElementById('nameBox')
if (checkUser == null) {
check.style.display = 'flex'
}else{
check.style.display = 'none'
nameBox.textContent = localStorage.getItem('username')
}
let btn = document.getElementById('gir')
btn.addEventListener('click', () =>{
let input = document.getElementById('inp')
if (input.value == '') {
alert('Lütfen Kullanıcı Adı Giriniz')
}else{
localStorage.setItem('username', input.value)
console.log(localStorage.getItem('username'))
check.style.display = 'none'
nameBox.textContent = localStorage.getItem('username')
}
})
let clo = document.getElementById('clo')
clo.addEventListener('click', () => {
callBox.style.left = '-100%'
})
let predict = document.getElementById('predict')
let callBox = document.getElementById('anwChkBx')
predict.addEventListener('click', () =>{
callBox.style.left = '0'
})
</script>
<script src="./script/jotunheim.js"></script>
<script src="./script/methods.js"></script>
</body>
</html>