-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
170 lines (165 loc) · 5.72 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<title>Codeforces Problem Selector</title>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<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,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
rel="stylesheet"
/>
<link rel="icon" type="image/png" href="./media/icon.png" />
</head>
<body>
<div id="second-body">
<div style="text-align: center; margin-bottom: 5px">
<img src="media/banner.png" alt="banner" id="banner" />
<span id="description"
style="
display: block;
font-family: 'Roboto', sans-serif;
font-weight: 500;
margin-top: 20px;
margin-bottom: 20px;
color: #4a4a4a;
font-size: 25px;
"
>This app assists CPers in the process of choosing problems while
training</span
>
</div>
<div id="help">
<span id="expand-help"
style="
font-size: 25px;
font-weight: 700;
font-family: 'Roboto', sans-serif;
font-style: italic;
cursor: pointer;"
>Getting started</span
>
<ul id="help-list" style="display: none;">
<li>You will get problems with the number you entered.</li>
<li>
The problems you will get will have ratings between the boundaries
you entered.
</li>
<li>
The problems won't be solved by any handle in the handles field.
</li>
<li>
You can enter handles one-by-one, or multiple handles
comma-separated in one shot.
</li>
<li>
The 'Save' button will save your preferences locally and will be
loaded automatically when you open/reload the site.
</li>
<li>The 'Reset' button will remove what is stored locally.</li>
<li>
The problems you will get won't have any tag which is not within
selected tags.
</li>
<li>
If the user selected <code>number theory</code>, <code>math</code>,
and <code>dp</code>, then all these combinations are valid and can
be seen in the outputted problems:
<ul>
<li><code>number theory</code></li>
<li><code>math</code></li>
<li><code>dp</code></li>
<li><code>dp</code>, <code>math</code></li>
<li><code>dp</code>, <code>number theory</code></li>
<li><code>math</code>, <code>number theory</code></li>
<li>
<code>math</code>, <code>number theory</code>, <code>dp</code>
</li>
</ul>
but you wont see any of these:
<ul>
<li><code>binary search</code>, <code>math</code></li>
<li><code>combinatorics</code></li>
<li>etc.</li>
</ul>
</li>
<li>
If no tags are selected, then all tags will be included by default
as if you have selected all of them.
</li>
<li>Only codeforces rated problems will be included.</li>
<li>Any problem with no tags will not be included.</li>
<li>To remove a handle, Click on it</li>
</ul>
</div>
<div class="tags-container"></div>
<div class="temp">
<div class="rating-container">
<label for="" class="rating-label">Rating 800 - 3500</label>
<div style="margin: 4px; margin-left: 30px">
<label for="for" class="some-class">From</label>
<input
id="for"
class="another-class"
type="number"
step="100"
min="800"
max="3500"
/>
</div>
<div style="margin: 4px; margin-left: 30px">
<label for="to" class="some-class">To</label>
<input
id="to"
class="another-class"
type="number"
step="100"
min="800"
max="3500"
style="margin-left: 18px"
/>
</div>
</div>
<div class="prob-num-container">
<label for="prob-num" class="prob-num-label"
>Number of problems (1 - 50)</label
>
<input
id="prob-num"
class="another-class"
type="number"
step="1"
min="1"
max="50"
/>
</div>
<div class="handles-container">
<label for="handles" class="handles-label">Handles </label>
<input
type="text"
id="handles"
placeholder=" Enter codeforces handles"
/>
<button class="add-handle-btn">Add</button>
<div class="accepted-handles"></div>
</div>
</div>
<div class="gen-btn-container">
<button class="gen-btn">Generate</button>
</div>
<div class="storage-btns-container">
<button class="storage-save">Save</button>
<button class="storage-reset">Reset</button>
</div>
<div class="problems-container"></div>
</div>
<div id="github">
<img src="media/github-logo.png" />
<span>MohabYaser</span>
</div>
<script src="main.js"></script>
</body>
</html>