-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
287 lines (248 loc) · 14 KB
/
index.html
File metadata and controls
287 lines (248 loc) · 14 KB
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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Leslie&Victims</title>
<link rel="icon" type="image/png" href="favicon.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preconnect" href="https://----.firebasedatabase.app" crossorigin>
<link rel="preconnect" href="https://www.gstatic.com" crossorigin>
<link rel="preload" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap">
</noscript>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<nav class="nav-bar">
<div class="nav-content">
<div class="nav-logo" onclick="window.location.href='?'">
Leslie<span>&Victims</span>
</div>
<div id="nav-breadcrumb" class="breadcrumb"></div>
<div id="header-live-count" class="header-live-count">
<span class="live-dot"></span>
<span id="live-count-text">...</span>
</div>
<button class="btn-theme-toggle" onclick="toggleTheme()" title="Switch Theme">
<svg class="icon-sun" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2">
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
<svg class="icon-moon hidden" width="20" height="20" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
</button>
</div>
</nav>
<div class="container">
<div id="error-box" class="error-msg hidden"></div>
<section id="view-home">
<div class="section-header">
<div class="section-header-left">
<div class="section-header-accent"></div>
<h2>Library</h2>
</div>
<span class="section-subtitle" id="series-count"></span>
</div>
<div id="series-list" class="grid-series"></div>
</section>
<section id="view-chapters" class="hidden">
<div class="section-header">
<div class="section-header-left">
<div class="section-header-accent"></div>
<h2 id="series-title">Chapters</h2>
</div>
<div class="flex-center-gap">
<button id="btn-sort-chapters" class="sort-toggle" onclick="toggleChapterSort()">
Sort
<svg width="18" height="18" fill="none" stroke="currentColor" stroke-width="2.5"
viewBox="0 0 24 24">
<path d="M7 15l5 5 5-5M7 9l5-5 5 5" />
</svg>
</button>
<span class="section-subtitle" id="chapter-count"></span>
</div>
</div>
<div id="chapter-list" class="grid-chapters"></div>
<div class="comments-wrapper">
<h3>Comments</h3>
<div class="comment-tools">
<div class="tool-group">
<button class="tool-btn" onclick="copyToComment('**bold**')" title="Bold"><svg width="16"
height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
<path d="M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path>
<path d="M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path>
</svg></button>
<button class="tool-btn" onclick="copyToComment('*italic*')" title="Italic"><svg width="16"
height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
<line x1="19" y1="4" x2="10" y2="4"></line>
<line x1="14" y1="20" x2="5" y2="20"></line>
<line x1="15" y1="4" x2="9" y2="20"></line>
</svg></button>
<button class="tool-btn" onclick="copySpoiler()" title="Spoiler"><svg width="16" height="16"
viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
<path d="M2 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" />
<path d="M2 12l20 0" />
</svg></button>
</div>
<div class="tool-sep"></div>
<button class="tool-btn" id="btn-upload-image" title="Upload Image">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2" />
<circle cx="8.5" cy="8.5" r="1.5" />
<polyline points="21 15 16 10 5 21" />
</svg>
<span>Image</span>
</button>
<input type="file" accept="image/*" class="sr-only">
<div class="upload-status-toast hidden" id="upload-toast"></div>
<div class="tool-sep"></div>
<button class="tool-btn help-btn" onclick="toggleCommentHelp()" title="View guide">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" class="icon-mr">
<circle cx="12" cy="12" r="10"></circle>
<path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path>
<line x1="12" y1="17" x2="12.01" y2="17"></line>
</svg>
<span>Formatting Help</span>
</button>
</div>
<div id="comment-help-panel" class="comment-help-panel hidden">
<h4><span class="emoji">💡</span> Commenting Tips</h4>
<ul>
<li>
<strong>Uploading Images:</strong>
Click the "Image" button or Drag & Drop. <br>
<span class="highlight">The link is copied to your clipboard automatically.</span> <br>
Just paste (Ctrl+V) it into the text box!
</li>
<li>
<strong>Formatting:</strong>
Use the <b>Bold</b>, <i>Italic</i>, or <span class="spoiler-demo">Spoiler</span> buttons to
copy syntax.
</li>
<li>
<strong>Preview:</strong>
Click the "Preview" tab in the comment box to see how your images and spoilers will look
before posting.
</li>
</ul>
</div>
<div class="comments-container"></div>
</div>
</section>
<section id="view-reader" class="hidden">
<div id="reader-container"></div>
<div class="reader-controls">
<div class="reader-controls-inner">
<button id="btn-prev-chapter" class="btn btn-secondary">
<svg width="16" height="16" fill="none" stroke="currentColor" stroke-width="2"
viewBox="0 0 24 24">
<path d="M15 18l-6-6 6-6" />
</svg>
Previous
</button>
<button id="btn-next-chapter" class="btn btn-secondary">
Next
<svg width="16" height="16" fill="none" stroke="currentColor" stroke-width="2"
viewBox="0 0 24 24">
<path d="M9 18l6-6-6-6" />
</svg>
</button>
</div>
</div>
<button id="btn-scroll-top" class="btn btn-secondary floating-top-btn hidden"
onclick="window.scrollTo({top: 0, behavior: 'smooth'})">
<svg width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24">
<path d="M18 15l-6-6-6 6" />
</svg>
Top
</button>
<div class="comments-wrapper">
<h3>Comments</h3>
<div class="comment-tools">
<div class="tool-group">
<button class="tool-btn" onclick="copyToComment('**bold**')" title="Bold"><svg width="16"
height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
<path d="M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path>
<path d="M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path>
</svg></button>
<button class="tool-btn" onclick="copyToComment('*italic*')" title="Italic"><svg width="16"
height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
<line x1="19" y1="4" x2="10" y2="4"></line>
<line x1="14" y1="20" x2="5" y2="20"></line>
<line x1="15" y1="4" x2="9" y2="20"></line>
</svg></button>
<button class="tool-btn" onclick="copySpoiler()" title="Spoiler"><svg width="16" height="16"
viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
<path d="M2 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" />
<path d="M2 12l20 0" />
</svg></button>
</div>
<div class="tool-sep"></div>
<button class="tool-btn" id="btn-upload-image-reader" title="Upload Image">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2" />
<circle cx="8.5" cy="8.5" r="1.5" />
<polyline points="21 15 16 10 5 21" />
</svg>
<span>Image</span>
</button>
<input type="file" accept="image/*" class="sr-only">
<div class="upload-status-toast hidden" id="upload-toast-reader"></div>
<div class="tool-sep"></div>
<button class="tool-btn help-btn" onclick="toggleCommentHelp()" title="View guide">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" class="icon-mr">
<circle cx="12" cy="12" r="10"></circle>
<path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path>
<line x1="12" y1="17" x2="12.01" y2="17"></line>
</svg>
<span>Formatting Help</span>
</button>
</div>
<div class="comment-help-panel hidden">
<h4><span class="emoji">💡</span> Commenting Tips</h4>
<ul>
<li>
<strong>Uploading Images:</strong>
Click the "Image" button or Drag & Drop. <br>
<span class="highlight">The link is copied to your clipboard automatically.</span> <br>
Just paste (Ctrl+V) it into the text box!
</li>
<li>
<strong>Formatting:</strong>
Use the <b>Bold</b>, <i>Italic</i>, or <span class="spoiler-demo">Spoiler</span> buttons to
copy syntax.
</li>
<li>
<strong>Preview:</strong>
Click the "Preview" tab in the comment box to see how your images and spoilers will look
before posting.
</li>
</ul>
</div>
<div class="comments-container"></div>
</div>
</section>
</div>
<script defer src="https://www.gstatic.com/firebasejs/10.7.1/firebase-app-compat.js"></script>
<script defer src="https://www.gstatic.com/firebasejs/10.7.1/firebase-database-compat.js"></script>
<script src="dist/app.bundle.js" defer></script>
</body>
</html>