-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.html
132 lines (113 loc) · 5.95 KB
/
settings.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Music Player</title>
<link rel="stylesheet" href="https://linfindel.github.io/nadircss/nadir.css">
<style>
button:not(#settings, .about, .reset, .debug, #custom-regex, #mode, #keyboard) {
padding: 2.5rem;
}
</style>
</head>
<body>
<div class="navbar-column">
<nav id="navbar">
<h1>Music Player</h1>
</nav>
<div class="row" id="primary-action-row">
<button onclick="location.href = '.'" id="settings">
<span translate="no" class="material-symbols-rounded">arrow_back</span>
Back
</button>
<button id="reset" onclick="localStorage.clear(); document.getElementById('reset-icon').innerText = 'done'; document.getElementById('reset-text').innerText = 'Reset complete'; location.href = '.';" class="reset">
<span translate="no" id="reset-icon" class="material-symbols-rounded">delete</span>
<span id="reset-text">Reset</span>
</button>
</div>
</div>
<div class="column text-center" style="max-width: 100vw;">
<div id="external-pages-row" class="row" style="justify-content: flex-start; width: calc(100% + 5rem);">
<button onclick="location.href = 'mode.html'" id="mode">
<span id="mode-icon" class="material-symbols-rounded">downloading</span>
Change colour mode
</button>
<button id="keyboard" onclick="location.href = 'hotkeys.html'">
<span translate="no" class="material-symbols-rounded">keyboard</span>
<span>Keyboard shortcuts</span>
</button>
<button id="debug" onclick="location.href = 'debug.html'" class="debug">
<span translate="no" class="material-symbols-rounded">code</span>
<span>Developer options</span>
</button>
</div>
<div id="colour" class="column-flat" style="width: 100%; max-width: calc(100vw - 7rem);">
<div class="card-flat-bottom text-center" style="width: 100%;">
<h1>Colour</h1>
</div>
<div class="row-flat" style="border-top-left-radius: 7.5px; border-top-right-radius: 7.5px; width: calc(100% + 5rem);">
<button id="red" style="flex: 1; border-top-left-radius: 7.5px; border-top-right-radius: 7.5px; border-bottom-left-radius: 24px; border-bottom-right-radius: 7.5px;" onclick="setOption('colour', 'rgba(255, 0, 0, 0.25)')" class="button-error nochange-colour">Red</button>
<button style="flex: 1; border-radius: 7.5px;" onclick="setOption('colour', 'rgba(0, 255, 0, 0.25)')" class="button-success nochange-colour">Green</button>
<button style="flex: 1; border-radius: 7.5px;" onclick="setOption('colour', 'rgba(0, 89, 255, 0.25)')" class="nochange-colour">Blue</button>
<button id="pink" style="flex: 1; background-color: rgba(255, 0, 255, 0.25); border-top-left-radius: 7.5px; border-top-right-radius: 7.5px; border-bottom-left-radius: 7.5px; border-bottom-right-radius: 24px;" onclick="setOption('colour', 'rgba(255, 0, 255, 0.25)')" class="nochange-colour" id="pink">Pink</button>
</div>
</div>
<div class="column-flat" style="align-items: flex-start; width: 100%; max-width: calc(100vw - 7rem); margin-left: -5rem;">
<div id="numbering" onclick="setOption('numbering', 'disabled')" class="card card-interactive row" style="gap: 5rem; width: 100%;" tabindex="0" onkeypress="this.click()">
<div class="row">
<h1 translate="no" style="font-size: 5rem;" class="material-symbols-rounded">queue_music</h1>
<div>
<h1 id="numbering-title">Retaining title numbering</h1>
<p>When batch downloading, some software inserts prefix numbers</p>
</div>
</div>
</div>
<button id="custom-regex" onclick="location.href = 'custom-regex.html'">
<span translate="no" class="material-symbols-rounded">regular_expression</span>
Custom regex (advanced)
</button>
</div>
<div id="stop" onclick="setOption('stop-effect', 'disabled')" class="card card-interactive row" style="gap: 5rem; width: 100%; max-width: calc(100vw - 7rem);" tabindex="0" onkeypress="this.click()">
<h1 translate="no" style="font-size: 5rem;" class="material-symbols-rounded">graphic_eq</h1>
<div>
<h1 id="stop-title">Lowpass stop effect enabled</h1>
</div>
</div>
<div class="column-flat">
<div class="card-flat-bottom column" style="width: 100%; max-width: calc(100vw - 7rem);">
<div class="text-center">
<h1 translate="no" style="font-size: 5rem;" class="material-symbols-rounded">license</h1>
<h1>GPL 3.0</h1>
<p>This is free and open-source software. You can contribute to the source code below.</p>
</div>
</div>
<div class="card-flat-top column" style="width: 100%; max-width: calc(100vw - 7rem);">
<div class="text-center">
<h1 translate="no" style="font-size: 5rem;" class="material-symbols-rounded">attribution</h1>
<h1>100% Human Code</h1>
<p>None of this code was AI-generated</p>
</div>
</div>
</div>
<div id="about-card" class="card column" style="opacity: 0; pointer-events: none; width: 100%; max-width: calc(100vw - 7rem);">
<div class="text-center">
<h1 id="version">Loading...</h1>
<p id="whats-new"></p>
</div>
<div class="row">
<button id="about1" onclick="window.open('https://linfindel.github.io', '_blank')" class="about">
<span translate="no" class="material-symbols-rounded">home</span>
More projects
</button>
<button id="about2" onclick="window.open('https://www.github.com/linfindel/music', '_blank')" class="about">
<span translate="no" class="material-symbols-rounded">code</span>
Source code
</button>
</div>
</div>
</div>
<script src="settings.js"></script>
</body>
</html>