-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
executable file
·37 lines (35 loc) · 1.34 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>4D Tic Tac Toe</title>
<style>
.color-0 { color: red; }
.color-1 { color: blue; }
#x, #y, #z {
width: 60px;
}
#x { border-bottom: 3px solid #FFFF00; }
#y { border-bottom: 3px solid #00FFFF; }
#z { border-bottom: 3px solid #FF00FF; }
#w { border-bottom: 3px solid #00FF00; }
#move-error { color: red; }
</style>
<script src="js/4dtictactoe.js"></script>
<!-- WebGL made easy with Three.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r70/three.min.js"></script>
<script src="js/OrbitControls.js"></script>
</head>
<body>
<div id="canvas" style="width: 80%"></div>
<span id="curr-player" class="color-0">Player 1</span>,
it's your move.
<br>
<input id="x" placeholder="x-coord" type="number" min="0" max="2">
<input id="y" placeholder="y-coord" type="number" min="0" max="2">
<input id="z" placeholder="z-coord" type="number" min="0" max="2">
<input id="w" placeholder="w-coord" type="number" min="0" max="2">
<input type="button" id="make-move" value="Make move">
<span id="move-error"></span>
</body>
</html>