-
Notifications
You must be signed in to change notification settings - Fork 0
/
rubik.html
29 lines (27 loc) · 982 Bytes
/
rubik.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Rubik's cube</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="rubik.css">
</head>
<body>
<h1>Rubik's cube</h1>
<p>
Use the buttons below or the keyboard to move the cube.
Clockwise 90°: [F]ront, [B]ack, [L]eft, [R]ight, [U]p, [D]own.
Anti-clockwise 90°: Shift-[key].
180°: Shift-Ctrl-[key].
</p>
<div id='my-cube' class="rb-cube"></div>
<div id='my-ctrl' class="rb-ctrl"></div>
<div class="rb-moves">
<button onclick="document.getElementById('my-moves').classList.toggle('hide')">Moves</button>
<p id='my-moves'></p>
</div>
<script src="rubik.js"></script>
<script src="script.js"></script>
</body>
</html>