-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtimer.html
134 lines (120 loc) · 4.8 KB
/
timer.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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!-- timer.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HACube Timer</title>
<link rel="icon" href="static/icon.png">
<link rel="stylesheet" href="css/timer.css">
<script src="js/scramble/mathlib.js"></script>
<script src="js/scramble/scramble.js"></script>
<script src="js/scramble/1x3x3.js"></script>
<script src="js/scramble/2x2x2.js"></script>
<script src="js/scramble/2x2x3.js"></script>
<script src="js/scramble/cross.js"></script>
<script src="js/scramble/fto.js"></script>
<script src="js/scramble/megascramble.js"></script>
<script src="js/scramble/pyraminx.js"></script>
<script src="js/scramble/scramble_333_edit.js"></script>
<script src="js/scramble/scramble_444.js"></script>
<script src="js/scramble/scramble_sq1.js"></script>
<script src="js/scramble/skewb.js"></script>
<script src="js/scramble/utilscramble.js"></script>
<script src="https://cdn.cubing.net/js/cubing/twisty" type="module"></script>
<script src="js/lib/json2.js"></script>
<script defer src="https://cdn.jsdelivr.net/gh/GhostShadow0316/HacTags/hactags.js"></script>
</head>
<body>
<p id="kbstatus">status</p>
<div id="kbctrl">
<input type="text" placeholder='use "help" for helps' maxlength="50" id="kbinput">
<!-- <p>use `help` to show all commands</p> -->
</div>
<div id="top">
<!-- <button id="menu-btn">☰</button> -->
<div class="center">
<p id="change-scramble">
<select id="cube-select"></select>
<l class="click"
clickA="setScramble();">next</l>
scramble
</p>
</div>
<scramble clickA="copyB(scramble.value, 'scramble');"><a></a></scramble>
</div>
<twisty-player id="sc-display" visualization="2D" background="none" control-panel="none"></twisty-player>
<div id="side">
<h1 id="title">HACube Timer</h1>
<br>
<table id="staticLog">
<tr>
<!-- <th class="th-idx" > - </th> -->
<th class="th-time">time</th>
<th class="th-ao5" >Ao5</th>
<th class="th-ao12">Ao12</th>
</tr>
<tr>
<!-- <td> BEST </td> -->
<td id="static-time"> - </td>
<td id="static-ao5"> - </td>
<td id="static-ao12"> - </td>
</tr>
</table>
<div id="sessionStatic">
<h2>Solves: 20</h2>
<h2>Mean: 17.5</h2>
<select id="session-select"></select>
</div>
<table id="head">
<tr style="width: 100%;">
<th style="width: 16%;">idx</th>
<th style="width: 28%;">time</th>
<th style="width: 28%;">Ao5</th>
<th style="width: 28%;">Ao12</th>
</tr>
</table>
<div id="timeLogDiv">
<table id="timeLog">
<tr style="width: 100%">
<td class="idx"> - </td>
<td class=""> - </td>
<td > - </td>
<td > - </td>
</tr>
</table>
</div>
</div>
<div id="center">
<h1 id="timer"
clickA="copyB(timer.value, 'current time');"
hoverB="var(--main-hover)"
clickB="var(--main-click)">0:00.000</h1>
<div id="punishDiv">
<button class="punishBtn" id="+2" clickA="punish(PLUS2);">+2</button>
<button class="punishBtn" id="DNF" clickA="punish(DNF);">DNF</button>
<!-- <button class="punishment">Delete</button> -->
</div>
</div>
<div id="TMD">
<button id="TMD-Close">✕</button>
<h1 id="TMD-SolveN">No. 1</h1>
<h1 id="TMD-SolveT"
clickA="copyB(TMD_SolveT.value, 'solve time');">0:00.000</h1>
<div id="TMD-Punishes">
<button class="TMD-PunishB" id="TMD-PLUS2" clickA="edit_punish(TMD_idx, PLUS2);">+2</button>
<button class="TMD-PunishB" id="TMD-DNF" clickA="edit_punish(TMD_idx, DNF);" >DNF</button>
</div>
<p id="TMD-Cube" clickA="copyB(TMD_Cube.value, 'cube');" >Cube: <a>3x3</a></p>
<p id="TMD-Scramble" clickA="copyB(TMD_Scramble.value, 'scramble');">Scramble: <a>placeholder</a></p>
<p id="TMD-Date" clickA="copyB(TMD_Date.value, 'date');" >Date: <a>2023/10/9 16:57:56</a></p>
<br><br>
<button id="TMD-Delete">Delete</button>
</div>
<script src="js/cubes.js"></script>
<script src="js/hactool.js"></script>
<script src="js/timer.js"></script>
<script src="js/commands.js"></script>
<script src="js/kbctrl.js"></script>
</body>
</html>