-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
246 lines (220 loc) · 8.37 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
<!DOCTYPE html>
<html lang="en">
<!-- Thanks for using CTTab v3.0 - By darcy :) -->
<head>
<title>CTTab</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Styles -->
<link rel="stylesheet" href="./css/index.min.css">
<link rel="stylesheet" href="./css/header.min.css">
<link rel="stylesheet" href="./css/shortcuts.min.css">
<link rel="stylesheet" href="./css/garf.min.css">
<link rel="stylesheet" href="./css/notes.min.css">
<link rel="stylesheet" href="./css//font-awesome.min.css">
<!-- Imported scripts -->
<script src="./js/imported/jquery.min.js"></script>
<script src="./js/imported/confetti.min.js"></script>
<!-- Local scripts -->
<script src="./js/main.js"></script>
<script src="./js/ls.js"></script>
<script src="./js/language.js"></script>
<script src="./js/sc.js"></script>
<script src="./js/bg.js"></script>
<script src="./js/garf.js"></script>
<!-- Language files -->
<script src="./lang/en.js"></script>
<script src="./lang/eo.js"></script>
<link
rel="shortcut icon"
type="image/png"
href="./image/icon/256.png"
>
</head>
<body onload="init()">
<header>
<div class="left">
<div class="separated">
<div class="item">
<button
onclick="garf.edit()"
title="[top_garf_title]"
class="lang-tofill"
>
[top_garf]
</button>
</div>
<div class="item">
<button
onclick="notes.add()"
title="[top_note_title]"
class="lang-tofill"
>
[top_note]
</button>
</div>
<div class="item">
<button
onclick="bg.edit()"
title="[top_bg_title]"
class="lang-tofill"
>
[top_bg]
</button>
</div>
<div class="item">
<button
onclick="sc.editAmount()"
title="[top_sc_title]"
class="lang-tofill"
>
[top_sc]
</button>
</div>
</div>
</div>
<button
id="header"
title="[header_title]"
class="lang-tofill"
onclick="header.edit(event)"
></button>
<div class="right">
<div class="separated">
<div class="item">
<button
onclick="language.switch()"
title="[top_lang_title]"
class="lang-tofill lang-ignore-text"
>
🌐<span id="lang_display">--</span>
</button>
</div>
<div class="item">
<button
onclick="ls.export()"
title="[top_export_title]"
class="lang-tofill"
>
[top_export]
</button>
</div>
<div class="item">
<button tabindex="-1">
<input
type="file"
id="ls-file"
onchange="ls.import()"
>
<span
title="[top_import_title]"
class="lang-tofill focus"
>
[top_import]
</span>
</button>
</div>
<div class="item">
<button
onclick="ls.resetConfirm()"
title="[top_reset_title]"
class="lang-tofill"
>
[top_reset]
</button>
</div>
<div class="item">
<a
href="https://github.com/dxrcy/cttab#cttab"
title='[top_about_title {"link": "https://github.com/dxrcy/cttab"}]'
class="lang-tofill bruh"
>[top_about]
</a>
</div>
</div>
<div class="item">
<button
onclick="confettiHandler.start()"
class="icon hidden"
id="confetti"
title="🎉"
>
🎉
</button>
</div>
</div>
<button onclick="notes.focus()" class="lang-tofill skip">
[skip_focus]
</button>
</header>
<main>
<div id="shortcuts"></div>
<div id="garf" style="display: none">
<img id="garf_img" src="#" alt="Garfield comic" onclick="garf.copyDate()">
</div>
</main>
<footer>
<div class="bgInfo">
<button
id="bgInfoButton"
onclick="bg.showInfo()"
class="lang-tofill"
title="[bg_info_button_title]"
>
[bg_info_button]
</button>
</div>
<div>
<a href="https://github.com/dxrcy">
<span class="lang-tofill">[footer_main]</span>
<span title="[footer_name_title]" class="lang-tofill"
>[footer_name]</span
>
</a>
</div>
</footer>
<div class="contain" style="display: none; visibility: hidden">
<template name="shortcut">
<article class="shortcut {empty}" number="{number}">
<a
href="{href}"
title='[sc_title {"name": "{title}", "href": "{href}"}]'
class="lang-canfill lang-ignore-text"
>
<img
{src}="{iconHref}"
alt="Shortcut icon"
class="{className}"
onerror="sc.imageError({number})"
>
<span class="lang-canfill">{name}</span>
</a>
<button
onclick="sc.edit({number})"
title="[sc_edit_title]"
class="lang-canfill"
>
<icon class="fa fa-edit"></icon>
</button>
</article>
</template>
<template name="note">
<article class="note" number="{number}">
<textarea
placeholder="[note_placeholder]"
title="[note_title]"
oninput="notes.edit({number})"
class="lang-canfill"
spellcheck="false"
>{text}</textarea>
<button onclick="notes.delete({number})">
<icon
class="fa fa-trash lang-canfill"
title="[note_delete_title]"
></icon>
</button>
</article>
</template>
</div>
</body>
</html>