-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path031 kelimebul.html
42 lines (37 loc) · 1.09 KB
/
031 kelimebul.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kelime Bul</title>
<style>
#kelimeler{
width: 700px;
height: 80px;
text-align: center;
background-color: brown;
color:bisque;
margin: 50px auto;
font-size: 50px;
padding:10px;
}
</style>
</head>
<body>
<div id="kelimeler"></div>
<script>
const words =["Teacher=Öğretmen",
"Driver=Sürücü",
"Swimmer=Yüzücü",
"Cooker=Aşçı",
"Clerk=Tezgahtar",
"Officer=Memur",
"Academician=Akademisyen"];
var index=0;
setInterval(() => {
document.getElementById("kelimeler").textContent = words[index];
index = (index+1) % words.length;
}, 2000); // 1000 ms = 1 s
</script>
</body>
</html>