-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.html
More file actions
246 lines (223 loc) · 8.89 KB
/
options.html
File metadata and controls
246 lines (223 loc) · 8.89 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Leetcode Buddy - Options</title>
<link rel="stylesheet" href="options.css" />
</head>
<body>
<div class="container">
<header>
<h1>🤝 Leetcode Buddy</h1>
<p class="subtitle">Settings & Configuration</p>
</header>
<main>
<section class="option-section">
<h2>Problem Set Selection</h2>
<p class="description">
Choose which problem set you want to work through. More sets coming
soon!
</p>
<div class="form-group">
<label for="problemSetSelect">Active Problem Set:</label>
<select id="problemSetSelect" class="problem-set-select">
<option value="blind75">Blind 75</option>
<option value="neetcode150">NeetCode 150</option>
<option value="neetcode250">NeetCode 250</option>
<option value="neetcodeAll">NeetCode All</option>
</select>
</div>
<div id="setInfo" class="set-info">
<div class="info-item">
<span class="info-label">Total Problems:</span>
<span id="totalProblems" class="info-value">250</span>
</div>
<div class="info-item">
<span class="info-label">Categories:</span>
<span id="totalCategories" class="info-value">18</span>
</div>
<div class="info-item">
<span class="info-label">Your Progress:</span>
<span id="yourProgress" class="info-value">0 / 250</span>
</div>
</div>
</section>
<section class="option-section">
<h2>Display Preferences</h2>
<p class="description">
Customize your experience with Leetcode Buddy.
</p>
<div class="form-group">
<div class="toggle-setting">
<div class="toggle-info">
<label for="celebrationToggle" class="toggle-label">
Celebration Animations
</label>
<p class="toggle-description">
Show confetti and celebration animations when you solve your daily problem
</p>
</div>
<label class="switch">
<input type="checkbox" id="celebrationToggle" checked>
<span class="slider"></span>
</label>
</div>
</div>
<div class="form-group">
<div class="toggle-setting">
<div class="toggle-info">
<label for="sortByDifficultyToggle" class="toggle-label">
Sort Problems by Difficulty
</label>
<p class="toggle-description">
Sort problems within each category by difficulty (Easy → Medium → Hard) instead of the original problemset order
</p>
</div>
<label class="switch">
<input type="checkbox" id="sortByDifficultyToggle">
<span class="slider"></span>
</label>
</div>
</div>
<div class="form-group">
<div class="toggle-setting">
<div class="toggle-info">
<label for="clearEditorOnFirstOpenToggle" class="toggle-label">
Clear Editor on First Open (Experimental)
</label>
<p class="toggle-description">
Clear the code editor content when you first open a problem each day. Subsequent refreshes will preserve your work.
</p>
</div>
<label class="switch">
<input type="checkbox" id="clearEditorOnFirstOpenToggle">
<span class="slider"></span>
</label>
</div>
</div>
<div class="form-group">
<div class="toggle-setting">
<div class="toggle-info">
<label for="randomProblemSelectionToggle" class="toggle-label">
Random Problem Selection
</label>
<p class="toggle-description">
Select problems randomly from unsolved problems instead of going in sequence.
</p>
</div>
<label class="switch">
<input type="checkbox" id="randomProblemSelectionToggle">
<span class="slider"></span>
</label>
</div>
</div>
</section>
<section class="option-section">
<h2>Exclusion List</h2>
<p class="description">
Add up to 10 custom websites to exclude from redirection. System domains (LeetCode, NeetCode, Google OAuth) are always excluded to maintain extension functionality.
</p>
<div class="form-group">
<div class="exclusion-system-section">
<h3 class="exclusion-subtitle">System Domains (Required)</h3>
<p class="exclusion-subtitle-description">These domains are always excluded to maintain extension functionality.</p>
<div id="systemExclusionList" class="exclusion-list-system">
<!-- System domains will be rendered here -->
</div>
</div>
</div>
<div class="form-group">
<div class="exclusion-user-section">
<h3 class="exclusion-subtitle">Your Domains</h3>
<div id="exclusionListContainer" class="exclusion-list-container">
<!-- Dynamically generated exclusion list items will appear here -->
<div class="loading-message">Loading exclusion list...</div>
</div>
</div>
</div>
<div class="form-group">
<div class="exclusion-add-container">
<input
type="text"
id="exclusionDomainInput"
class="exclusion-domain-input"
placeholder="Enter domain (e.g., example.com)"
maxlength="100"
>
<button id="addExclusionButton" class="secondary-button">Add Domain</button>
</div>
<div id="exclusionError" class="exclusion-error" style="display: none;"></div>
<div class="exclusion-counter">
<span id="exclusionCount">0</span> / 10 domains
</div>
</div>
<div class="form-group">
<button id="resetExclusionButton" class="secondary-button">Reset to Defaults</button>
</div>
</section>
<section class="option-section">
<h2>Category Progress</h2>
<p class="description">
View all problems organized by category. Click to expand and see individual problems.
</p>
<div id="categoryAccordion" class="category-accordion">
<!-- Dynamically generated category items will appear here -->
<div class="loading-message">Loading categories...</div>
</div>
</section>
<section class="option-section">
<h2>Reset Progress</h2>
<p class="description">
Clear all solved problems and start fresh. This action cannot be
undone!
</p>
<button id="resetButton" class="danger-button">
Reset All Progress
</button>
<div id="resetConfirm" class="reset-confirm" style="display: none">
<p class="warning-text">
Are you sure? This will delete all your progress!
</p>
<div class="button-group">
<button id="confirmReset" class="danger-button">
Yes, Reset Everything
</button>
<button id="cancelReset" class="secondary-button">Cancel</button>
</div>
</div>
</section>
<section class="option-section">
<h2>About</h2>
<p class="description">
Leetcode Buddy helps you stay focused on completing the NeetCode 250
problem list in order. After solving one problem per day, all
websites are unblocked until midnight.
</p>
<div class="about-links">
<a
href="https://neetcode.io/practice"
target="_blank"
class="link-button"
>
Visit NeetCode
</a>
<a
href="https://leetcode.com"
target="_blank"
class="link-button"
>
Visit LeetCode
</a>
</div>
</section>
</main>
<footer>
<p class="footer-text">
Keep grinding! 💪 One problem at a time, one day at a time.
</p>
</footer>
</div>
<script type="module" src="options.js"></script>
</body>
</html>