-
Notifications
You must be signed in to change notification settings - Fork 0
/
debug.html
120 lines (112 loc) · 2.77 KB
/
debug.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" type="text/css" href="style/animations.css" />
<link rel="stylesheet" type="text/css" href="style/style.css" />
<link rel="stylesheet" type="text/css" href="style/switch.css" />
<link rel="icon" type="image/png" href="favicon.png" />
<title>TERMINAL v0.01-alpha</title>
<script src="./components/dial.js"></script>
<script src="terminal.js" type="module"></script>
<script src="https://unpkg.com/[email protected]/dist/rot.js"></script>
<svg style="display: none;">
<style>
.handle {
cursor: grab;
}
</style>
<!-- Most of the colors are from Tango palette -->
<defs id="sample_gfx">
<symbol id="circle-with-dot" viewBox="-6 -6 12 12">
<circle
cx="0"
cy="0"
r="5.875"
stroke="#2e3436"
fill="#babdb6"
stroke-width="0.25"
/>
<circle
class="handle"
cx="0"
cy="-3.75"
r="0.75"
stroke="none"
fill="#2e3436"
/>
</symbol>
</defs>
</svg>
</head>
<body class="theme-green" onload="debug()">
<div id="monitor">
<div id="screen">
<div id="crt" class="off" onClick="handleClick(event)">
<div class="scanline"></div>
<div class="terminal"></div>
</div>
</div>
<div id="slider">
<label class="switch">
<input
type="checkbox"
onclick="togglePower(this.checked)"
/>
<span class="slider"></span>
</label>
</div>
<div id="controls">
<div class="post-it" onClick="fly(event)">DEBUG</div>
<div id="themes">
<button
class="theme"
data-theme="red"
onClick="theme(event)"
></button>
<button
class="theme active"
data-theme="green"
onClick="theme(event)"
></button>
<button
class="theme"
data-theme="blue"
onClick="theme(event)"
></button>
</div>
<div id="volume">
<span>min</span>
<div id="dial-container">
<x-dial
id="dial"
min="0"
max="0.75"
value="0"
svgsymbolid="circle-with-dot"
>
</x-dial>
</div>
<span>max</span>
</div>
<div id="power">
<button id="fullscreen" onClick="fullscreen(event)">
⏏
</button>
<label class="rocker rocker-small">
<input
id="switch"
type="checkbox"
onclick="debug()"
checked
/>
<span class="switch-left">O</span>
<span class="switch-right">I</span>
</label>
</div>
</div>
</div>
</body>
</html>