-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy paththeme.html
362 lines (321 loc) · 17 KB
/
theme.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
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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
---
permalink: /theme
---
<!DOCTYPE html>
<html>
<head>
<title>Theme Customiser</title>
<link rel="stylesheet" href="./assets/common.css" type="text/css">
<link rel="stylesheet" href="./assets/customiser.css" type="text/css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;0,900;1,400;1,700&display=swap" rel="stylesheet">
<script src="https://kit.fontawesome.com/6dbb1e5ab5.js" crossorigin="anonymous"></script>
<link rel="icon" type="image/png" href="./assets/favicon_16.png" sizes="16x16">
<link rel="icon" type="image/png" href="./assets/favicon_32.png" sizes="32x32">
<link rel="icon" type="image/png" href="./assets/favicon_128.png" sizes="128x128">
<link rel="icon" type="image/png" href="./assets/favicon_256.png" sizes="256x256">
</head>
<body>
<main class="content customiser" id="js-content">
<div class="topbar">
<div class="topbar__section">
<nav class="top-nav">
<a href="./" class="top-nav__link" id="js-back">
<div class="top-nav__link-inner">
<i class="top-nav__icon fa fa-arrow-left"></i>
<span class="top-nav__text">Browse</span>
</div>
</a>
<a class="top-nav__link js-tutorial-import" onclick="toggleEle('#js-pp-import')">
<div class="top-nav__link-inner">
<i class="top-nav__icon fa-solid fa-file-import"></i>
<span class="top-nav__text">Import Settings</span>
</div>
</a>
<a class="top-nav__link js-tutorial-export" onclick="toggleEle('#js-pp-export')">
<div class="top-nav__link-inner">
<i class="top-nav__icon fa-solid fa-file-arrow-down"></i>
<span class="top-nav__text">Export Settings</span>
</div>
</a>
<a class="top-nav__link o-hidden js-help js-help-href" target="_blank">
<div class="top-nav__link-inner">
<i class="top-nav__icon fa-solid fa-question"></i>
<span class="top-nav__text">Theme Help</span>
</div>
</a>
<a class="top-nav__link o-hidden" id="js-sponsor" target="_blank">
<div class="top-nav__link-inner">
<i class="top-nav__icon fa-solid fa-heart"></i>
<span class="top-nav__text">Support the Author</span>
</div>
</a>
</nav>
</div>
<div class="topbar__section topbar__section--right">
<div class="discrepancy-notice">
<div class="discrepancy-notice__title">
Preview will differ from the final outcome.
</div>
<div class="discrepancy-notice__body">
This preview provides a close approximation of the actual MyAnimeList page. However, due to limitations, certain elements may display differently. Please install and test the layout even if there are errors in the preview.
</div>
</div>
<div class="options" id="js-preview-options">
<a class="top-nav__link" onclick="toggleEle('#js-preview-options-container')">
<div class="top-nav__link-inner">
<i class="top-nav__icon fa-solid fa-gear"></i>
<span class="top-nav__text">Preview Options</span>
</div>
</a>
<div id="js-preview-options-container" class="options__container is-hidden">
<div class="options__item">
<b class="options__title">Cover Image</b>
<input id="js-preview__cover" type="checkbox" class="o-hidden" checked="checked">
<label class="toggle" for="js-preview__cover" onclick="postToPreview(['cover', !document.getElementById('js-preview__cover').checked])" data-info="This option is not editable due to the recommended theme settings."></label>
</div>
<div class="options__item">
<b class="options__title">Cover URL</b>
<input id="js-preview__cover-url" type="text" class="input" placeholder="https://example.com/yourimage.jpg" oninput="postToPreview(['cover_url', this.value])">
</div>
<div class="options__item">
<b class="options__title">Background URL</b>
<input id="js-preview__background-url" type="text" class="input" placeholder="https://example.com/yourimage.jpg" oninput="postToPreview(['background_url', this.value])">
</div>
<div class="options__item">
<b class="options__title">Select View</b>
<select id="js-preview__view" class="select" onchange="postToPreview(['view', this.value])">
<option value="owner">List Owner</option>
<option value="visitor:user">List Visitor (Logged-in)</option>
<option value="visitor:guest">List Visitor (Logged-out)</option>
</select>
</div>
</div>
</div>
</div>
</div>
<div class="sidebar" id="js-sidebar">
<form class="sidebar__inner" id="js-theme" method="dialog" novalidate="novalidate" target="_self">
<div class="rounds rounds--right"></div>
<div class="sidebar__section sidebar__section--top">
<h1 class="sub-title">Customise your theme</h1>
<h2 class="title o-clear"><span id="js-title">Loading theme...</span> <span class="theme-tag o-hidden js-theme-tag"></span></h2>
<h3 class="sub-sub-title">By <a class="js-author">unknown author</a></h3>
<i class="theme-desc o-italic o-hidden js-theme-wip">The author has indicated this theme is in a WIP state. Expect more issues than normal and/or drastic changes in future updates.</i>
</div>
<div class="sidebar__section js-options-deletion-point">
<div class="js-make-expando js-options-anchor" data-expando-limit="400" data-expando-margin="16">
<h3 class="sidebar__header">Change theme options</h3>
<!-- options gets put here by customiser.js -->
</div>
</div>
<div class="sidebar__section js-mods-deletion-point">
<div class="js-make-expando js-mods-anchor" data-expando-limit="400" data-expando-margin="16">
<h3 class="sidebar__header">
Choose theme modifications
<div class="sidebar__header-aside">
<button type="button" class="button o-hidden" id="js-tags__button" onclick="toggleEle('#js-tags__cloud', undefined, this)">
<i class="fa-solid fa-tags"></i> Filters
</button>
</div>
</h3>
<div class="tag-cloud is-hidden" id="js-tags__cloud">
<small class="tag-cloud__blurb">Select a subject that interests you to narrow results.</small>
</div>
<!-- mods gets put here by customiser.js -->
</div>
</div>
<div class="sidebar__section">
<h3 class="sidebar__header">Use your customised theme</h3>
<button type="button" onclick="toggleEle('#js-pp-config')" class="alert-button o-hidden" id="js-intended-config">
<div class="alert-button__icon">
<i class="fa-solid fa-circle-exclamation"></i>
</div>
<div class="alert-button__body">
<b class="alert-button__title">This theme has a recommended configuration.</b>
<p class="alert-button__subtext">Using other configurations may cause issues.</p>
</div>
</button>
<div class="code">
<b class="code__title">CSS to Install</b>
<!-- code gets put here by customiser.js -->
<textarea class="code__preview input input--code" id="js-output" readonly="readonly"></textarea>
<p class="info-box info-box--indented info-box--error o-hidden" id="js-output-notice"></p>
<button type="button" class="button button--highlighted js-swappable-text" id="js-copy-output" onclick="navigator.clipboard.writeText(document.getElementById('js-output').textContent);">
<div class="swappable-text">
<div class="swappable-text__text">
Copy CSS
<br />
Copied!
</div>
</div>
</button>
<a class="hyperlink js-installation-btn">How do I install this?</a>
</div>
</div>
<div class="sidebar__section">
<button type="button" class="button" onclick="toggleEle('#js-pp-export')">Export settings</button>
<button type="button" class="button js-tutorial-reset" onclick="resetSettings()">Reset settings</button>
<button type="button" class="button" onclick="clearCache()">Clear cache</button>
</div>
<footer class="sidebar__section sidebar__section--no-border">
<div class="footer">
<div class="footer__row footer__row--vertical">
<a href="https://myanimelist.net/forum/?topicid=2036380" class="hyperlink"><i class="fa-solid fa-link"></i> Feedback and help</a>
<br />
<a href="https://github.com/ValerioLyndon/Theme-Customiser" class="hyperlink"><i class="fa-solid fa-link"></i> Source code</a>
<br />
<a href="https://github.com/ValerioLyndon/Theme-Customiser/wiki" class="hyperlink"><i class="fa-solid fa-link"></i> Use this with your design</a>
<br />
<a href="./dev" class="hyperlink"><i class="fa-solid fa-link"></i> Developer mode</a>
</div>
</div>
</footer>
</form>
</div>
<div class="preview">
<div class="rounds rounds--left"></div>
<a class="slider" id="js-toggle-drawer" onclick="splitSlide()">
<i class="slider__icon fa-solid fa-chevron-left"></i>
<span class="slider__text">
Expand/Contract Sidebar
</span>
</a>
<div class="preview__window-wrapper" id="js-preview"></div>
</div>
</main>
<div class="popup is-hidden" id="js-pp-config">
<div class="popup__inner">
<div class="popup__invisibutton" onclick="toggleEle('#js-pp-config')"></div>
<div class="popup__content" id="js-theme-config">
<h4 class="popup__header">Recommended list configuration.</h4>
<p class="popup__paragraph">Using non-supported configurations may cause visual errors not intended by the designer. Sometimes extra configurations are supported through the use of mods.</p>
<!-- configuration options get placed here by customiser.js -->
</div>
</div>
</div>
<div class="popup is-hidden" id="js-pp-installation-modern">
<div class="popup__inner">
<div class="popup__invisibutton" onclick="toggleEle('#js-pp-installation-modern')"></div>
<div class="popup__content popup__content--wide">
<h4 class="popup__header">How to install list CSS.</h4>
<ol class="steps">
<li class="steps__step">
<p class="popup__paragraph">Navigate to your <a class="hyperlink" href="https://myanimelist.net/ownlist/style" target="_blank">style settings</a> on MyAnimeList.</p>
<img src="./images/style-page.jpg" class="popup__image popup__image--thumb popup__image--expand" />
<p class="info-box">If your page does not look like this, double check you have the "Modern" option selected. This option is found near the top, where it says "Switch Template".</p>
</li>
<li class="steps__step" id="js-install-style">
<p class="popup__paragraph">Open your currently selected style by clicking on it. The selected style will be highlighted on your page.</p>
<img src="./images/selected-style.jpg" class="popup__image" />
</li>
<li class="steps__step" id="js-install-cover"></li>
<li class="steps__step" id="js-install-background"></li>
<li class="steps__step">
<p class="popup__paragraph">In the sidebar, navigate down to the "Add Custom CSS" area. Click to expand it if necessary.</p>
<img src="./images/custom-css.jpg" class="popup__image popup__image--thumb popup__image--expand" />
</li>
<li class="steps__step">
<p class="popup__paragraph">Copy the CSS from the theme customiser and paste it into the "Add Custom CSS" text box on MyAnimeList.</p>
<img src="./images/copy-css.jpg" class="popup__image" />
</li>
<li class="steps__step">
<p class="popup__paragraph">Click "Save" and your theme should be applied!</p>
<img src="./images/save.jpg" class="popup__image" />
</li>
<li class="steps__step steps__step--blank o-hidden js-help">
<p class="info-box">
If this guide did not work for you or you have further questions, please check the theme-specific help page provided by the theme author.
<a class="hyperlink js-help-href">Get help</a>.
</p>
</li>
</ol>
</div>
</div>
</div>
<div class="popup is-hidden" id="js-pp-installation-classic">
<div class="popup__inner">
<div class="popup__invisibutton" onclick="toggleEle('#js-pp-installation-classic')"></div>
<div class="popup__content popup__content--wide">
<h4 class="popup__header">How to install classic list CSS.</h4>
<ol class="steps">
<li class="steps__step">
<p class="popup__paragraph">Navigate to your <a class="hyperlink" href="https://myanimelist.net/ownlist/style">style settings</a> on MyAnimeList.</p>
<img src="./images/style-page-classic.jpg" class="popup__image" />
<p class="info-box">If your page does not look like this, double check you have the "Classic" option selected. This option is found near the top, where it says "Switch Template".</p>
</li>
<li class="steps__step">
<p class="popup__paragraph">Open the <a href="https://myanimelist.net/editprofile.php?go=stylepref&do=cssadv" target="_blank" class="hyperlink">"Advanced CSS List Design"</a> link. On this page, open either style.</p>
<img src="./images/advanced-css.jpg" class="popup__image" />
</li>
<li class="steps__step">
<p class="popup__paragraph">Copy the CSS from the theme customiser and paste it into the text box on MyAnimeList.</p>
<img src="./images/copy-css-classic.jpg" class="popup__image" />
</li>
<li class="steps__step">
<p class="popup__paragraph">Click "Update CSS" to apply your changes.</p>
<img src="./images/save-classic.jpg" class="popup__image" />
</li>
<li class="steps__step">
<p class="popup__paragraph">Go back to your <a class="hyperlink" href="https://myanimelist.net/ownlist/style">style settings</a>, then to <a href="https://myanimelist.net/editprofile.php?go=stylepref&do=changestyle" target="_blank" class="hyperlink">"Change My List Style"</a>.</p>
<p class="popup__paragraph">On this page, double check you have the same style number selected as the one you copied the CSS to. If they mismatch, change it to the correct number and click "Submit".</p>
<img src="./images/selected-style-classic.jpg" class="popup__image" />
<p class="popup__paragraph">And with that, you should be done! Check the changes on your anime or manga list.</p>
</li>
<li class="steps__step steps__step--blank o-hidden js-help">
<p class="info-box">
If this guide did not work for you or you have further questions, please check the theme-specific help page provided by the theme author.
<a class="hyperlink js-help-href">Get help</a>.
</p>
</li>
</ol>
</div>
</div>
</div>
<div class="popup is-hidden" id="js-pp-import">
<div class="popup__inner">
<div class="popup__invisibutton" onclick="toggleEle('#js-pp-import')"></div>
<div class="popup__content">
<h4 class="popup__header">Import previous settings.</h4>
<p class="popup__paragraph">
Place a customiser settings object or your full theme CSS into this textbox and then click "Import Settings".
</p>
<textarea id="js-pp-import-code" class="input input--textarea" autocomplete="off" autocorrect="off" spellcheck="false" placeholder="{"data":"https://example.com/theme.json"}"></textarea>
<button type="button" class="button button--highlighted" onclick="importPreviousSettings()">Import Settings</button>
</div>
</div>
</div>
<div class="popup is-hidden" id="js-pp-export">
<div class="popup__inner">
<div class="popup__invisibutton" onclick="toggleEle('#js-pp-export')"></div>
<div class="popup__content">
<h4 class="popup__header">Export current settings.</h4>
<p class="popup__paragraph">
You can store this text for later use or share it with others. Be sure to keep the text in its entirety. Losing even one letter would require repairing before import.
</p>
<textarea id="js-export-code" class="input input--textarea-tall input--code" readonly="readonly"></textarea>
<button type="button" class="button button--highlighted js-swappable-text" onclick="navigator.clipboard.writeText(document.getElementById('js-export-code').textContent);">
<div class="swappable-text">
<div class="swappable-text__text">
Copy settings
<br />
Copied!
</div>
</div>
</button>
</div>
</div>
</div>
<noscript>
<div class="loading-screen">
<div class="loading-screen__cross"></div>
<div class="loading-screen__item loading-screen__title" id="js-loader-text">Unable to load.</div>
<div class="loading-screen__item loading-screen__description" id="js-loader-subtext">JavaScript must be enabled.</div>
<a class="loading-screen__item hyperlink" href="https://valeriolyndon.github.io/Theme-Customiser/">Project page.</a>
</div>
</noscript>
</body>
<script src="./assets/common.js" type="text/javascript"></script>
<script src="./assets/customiser.js" type="text/javascript"></script>
</html>