-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·118 lines (107 loc) · 6.14 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Haidar's Cube</title>
<meta name="description" content="rubik's cube solver.">
<link rel="icon" type="image/png" href="assets/favicon.svg">
<!------ FONT ------>
<link href='https://fonts.googleapis.com/css?family=Audiowide' rel='stylesheet' type='text/css'>
<!------ CSS ------>
<link rel="stylesheet" type="text/css" href="lib/cuber/css/cube.css">
<link rel="stylesheet" type="text/css" href="cube/css/style.css">
<!-- cube source code -->
<script type="text/javascript" src="lib/cuber/js/vendor/tween.min.js"></script>
<!-- Three.js -->
<script type="text/javascript" src="lib/cuber/js/vendor/threejs/src/Three.js"></script>
<script type="text/javascript" src="lib/cuber/js/vendor/threejs/src/core/EventDispatcher.js"></script>
<script type="text/javascript" src="lib/cuber/js/vendor/threejs/src/math/Math.js"></script>
<script type="text/javascript" src="lib/cuber/js/vendor/threejs/src/math/Quaternion.js"></script>
<script type="text/javascript" src="lib/cuber/js/vendor/threejs/src/math/Vector2.js"></script>
<script type="text/javascript" src="lib/cuber/js/vendor/threejs/src/math/Vector3.js"></script>
<script type="text/javascript" src="lib/cuber/js/vendor/threejs/src/math/Box3.js"></script>
<script type="text/javascript" src="lib/cuber/js/vendor/threejs/src/math/Sphere.js"></script>
<script type="text/javascript" src="lib/cuber/js/vendor/threejs/src/math/Euler.js"></script>
<script type="text/javascript" src="lib/cuber/js/vendor/threejs/src/math/Matrix3.js"></script>
<script type="text/javascript" src="lib/cuber/js/vendor/threejs/src/math/Matrix4.js"></script>
<script type="text/javascript" src="lib/cuber/js/vendor/threejs/src/core/Object3D.js"></script>
<script type="text/javascript" src="lib/cuber/js/vendor/threejs/src/cameras/Camera.js"></script>
<script type="text/javascript" src="lib/cuber/js/vendor/threejs/src/cameras/PerspectiveCamera.js"></script>
<script type="text/javascript" src="lib/cuber/js/vendor/threejs/src/math/Ray.js"></script>
<script type="text/javascript" src="lib/cuber/js/vendor/threejs/src/math/Plane.js"></script>
<!-- Here are the Cube guts. Enjoy. -->
<script type="text/javascript" src="lib/cuber/js/ERNO.js"></script>
<script type="text/javascript" src="lib/cuber/js/vendor/CSS3DRenderer.js"></script>
<script type="text/javascript" src="lib/cuber/js/utils/utils.js"></script>
<script type="text/javascript" src="lib/cuber/js/utils/Number.js"></script>
<script type="text/javascript" src="lib/cuber/js/utils/String.js"></script>
<script type="text/javascript" src="lib/cuber/js/utils/Array.js"></script>
<script type="text/javascript" src="lib/cuber/js/colors.js"></script>
<script type="text/javascript" src="lib/cuber/js/directions.js"></script>
<script type="text/javascript" src="lib/cuber/js/queues.js"></script>
<script type="text/javascript" src="lib/cuber/js/twists.js"></script>
<script type="text/javascript" src="lib/cuber/js/cubelets.js"></script>
<script type="text/javascript" src="lib/cuber/js/groups.js"></script>
<script type="text/javascript" src="lib/cuber/js/slices.js"></script>
<script type="text/javascript" src="lib/cuber/js/folds.js"></script>
<script type="text/javascript" src="lib/cuber/js/projector.js"></script>
<script type="text/javascript" src="lib/cuber/js/interaction.js"></script>
<script type="text/javascript" src="lib/cuber/js/controls.js"></script>
<script type="text/javascript" src="lib/cuber/js/cubes.js"></script>
<script type="text/javascript" src="lib/cuber/js/solvers.js"></script>
<script type="text/javascript" src="lib/cuber/js/renderer.js"></script>
<!-- implementation -->
<script type="text/javascript" src="lib/cuber/js/jquery-3.4.0.min.js"></script>
<script type="text/javascript" src="lib/cuber/js/extras/renderers/iecss3d.js"></script>
<script type="text/javascript" src="lib/cuber/js/extras/renderers/ierenderer.js"></script>
<script type="text/javascript" src="lib/cuber/js/extras/controls/locked.js"></script>
<script type="text/javascript" src="lib/cuber/js/extras/deviceMotion.js"></script>
<!-- Two-phase Algorithm -->
<script type="text/javascript" src="lib/cubejs/cube.js"></script>
<script type="text/javascript" src="lib/cubejs/solve.js"></script>
<!-- Typewriting Plugin -->
<script type="text/javascript" src="lib/typewriting/typewriting.js"></script>
<!-- Just a Cube -->
<script type="text/javascript" src="cube/js/initial.js"></script>
<script type="text/javascript" src="cube/js/util.js"></script>
<script type="text/javascript" src="cube/js/lbl.js"></script>
<script type="text/javascript" src="cube/js/two-phase.js"></script>
</head>
<body>
<div id="container"></div>
<div class="type">
<div id="terminal"></div>
</div>
<div class="solve">
<button onclick="cubeGL.solve()">Solve | LBL</button>
<button onclick="solveTwoPhase()">Solve | Two-phase</button>
<button onclick="cubeShuffle()">Shuffle</button>
<button onclick="cubeReset()">Reset</button>
<a href="https://github.com/Renovamen/Just-a-Cube" target="_blank" rel="noreferrer">
<button>Github</button>
</a>
*Use PC/Laptop browser for best experience
</div>
<div class="twist">
<h1>Rotate</h1>
<button onclick="cubeGL.twist('U')">U</button>
<button onclick="cubeGL.twist('u')">u</button><br>
<button onclick="cubeGL.twist('D')">D</button>
<button onclick="cubeGL.twist('d')">d</button><br>
<button onclick="cubeGL.twist('F')">F</button>
<button onclick="cubeGL.twist('f')">f</button><br>
<button onclick="cubeGL.twist('B')">B</button>
<button onclick="cubeGL.twist('b')">b</button><br>
<button onclick="cubeGL.twist('L')">L</button>
<button onclick="cubeGL.twist('l')">l</button><br>
<button onclick="cubeGL.twist('R')">R</button>
<button onclick="cubeGL.twist('r')">r</button>
<button onclick="cubeGL.twist('S')">S</button>
<button onclick="cubeGL.twist('s')">s</button>
<button onclick="cubeGL.twist('E')">E</button>
<button onclick="cubeGL.twist('e')">e</button>
<button onclick="cubeGL.twist('M')">M</button>
<button onclick="cubeGL.twist('m')">m</button>
</div>
</body>
</html>