-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
34 lines (32 loc) · 888 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tic Tac Toe</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h1>TIC TAC TOE</h1><hr>
</header>
<main>
<img id="xo" src="won-tic-rac-toe-game.webp">
<div id="menu">
<b>PLAYER MODE</b>
<a href="/MULTIPLAYER/multiplayer.html" class="box1">MULTI PLAYER</a>
<a href="/PLAY WITH AI/playwithAI.html" class="box1">PLAY WITH AI</a>
</div>
</main>
<footer></footer>
</body>
<script>
let buttonaudio=new Audio('/AUDIO/button.wav');
let buttons=document.querySelectorAll('a');
buttons.forEach(function(x){
x.addEventListener('click',function(){
buttonaudio.play();
});
});
</script>
</html>