-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrandom_grp.html
328 lines (275 loc) · 10 KB
/
random_grp.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
<!DOCTYPE html>
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
<link href="https://cdn.jsdelivr.net/gh/gitbrent/[email protected]/css/bootstrap-switch-button.min.css"
rel="stylesheet">
<title>Random Group Maker</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@200;300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Nunito Sans', sans-serif;
}
/* ---------------------NAVBAR---------------------------- */
#button:hover {
color: white;
background-color: black;
}
.navbar {
background-color: black;
z-index: 999;
}
.navbar::before {
content: "";
position: absolute;
top: 0%;
bottom: 0%;
left: 0;
right: 0;
z-index: -1;
}
.nav-item a {
color: white;
font-weight: 500;
font-size: 17px;
transition: 0.5s ease;
}
.nav-item a:hover {
color: rgb(0, 195, 255);
font-weight: bold;
}
.navbar-brand {
color: white;
font-weight: 600;
font-size: 20px;
}
.nav-item {
margin-right: 20px;
}
/* ----------------------------------------Topic Div-------------------------------- */
.center {
width: 100vw;
height: 100vh;
background-color: #045de9;
background-image: linear-gradient(315deg, #045de9 0%, #09c6f9 74%);
}
.box {
width: 60%;
height: 85%;
padding: 15px 20px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background: #fff;
box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.5);
border-radius: 5px;
margin-top: 5vh;
overflow-y: scroll;
-ms-overflow-style: none;
/* IE and Edge */
scrollbar-width: none;
/* Firefox */
}
@media screen and (max-width: 543px) {
.box {
width: 75%;
}
}
.box2 {
margin-top: 32px;
}
#toast {
position: absolute;
bottom: 0;
border-radius: 5px;
padding: 15px 50px;
background: black;
opacity: 0;
color: white;
font-weight: 500;
visibility: hidden;
box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
transition: 0.3s;
}
#toast.show {
visibility: visible;
opacity: 1;
z-index: 1000;
bottom: 50px;
}
.gbtn {
margin: 10px 25px;
font-size: 1.2rem;
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
.gbtn:hover {
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
.toggle-wrap a {
display: inline-block;
background: #444;
border-radius: 1000px;
position: relative;
width: 3em;
height: 1.25em;
vertical-align: middle;
margin: 0 0.5em;
}
.toggle-wrap a strong {
display: none;
}
.switch {
position: absolute;
top: 0.1em;
left: 0.15em;
height: 1em;
width: 1.5em;
background: #fff;
border-radius: 1000px;
transition: 0.3s;
}
.alt .switch {
left: calc(100% - 1.6em);
}
.numgroups-wrap {
display: none;
}
.alt .numgroups-wrap {
display: inherit;
}
.alt .pergroup-wrap {
display: none;
}
.groups {
visibility: hidden;
padding: 5px;
/* background: #ddd; */
margin: 2px 0;
overflow-y: scroll;
overflow-x: scroll;
-ms-overflow-style: none;
/* IE and Edge */
scrollbar-width: none;
/* Firefox */
}
.group {
margin: 2px 5px;
display: inline-block;
vertical-align: top;
background: black;
color: white;
padding: 5px;
width: fit-content;
border-radius: 3px;
overflow-y: scroll;
-ms-overflow-style: none;
/* IE and Edge */
scrollbar-width: none;
/* Firefox */
box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px;
}
.group h3 {
padding: 0;
margin: 0;
}
/* Hide scrollbar for IE, Edge and Firefox */
.box::-webkit-scrollbar,
.box2::-webkit-scrollbar,
.group::-webkit-scrollbar,
.groups::-webkit-scrollbar {
display: none;
}
</style>
</head>
<header>
<nav class="navbar fixed-top navbar-expand-lg navbar-dark" data-aos="fade-in">
<div class="container">
<a class="navbar-brand" href="#">Random Script</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" style="margin-right: 30px;" id="navbarSupportedContent">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" aria-current="page" href="Menu.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="About.html">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="Contact.html">Contact Us</a>
</li>
<li class="nav-item">
<a class="nav-link" href="Menu.html">Exit</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
<section class="center d-flex align-items-center justify-content-center">
<div class="box bg-light" data-aos="zoom-in-down">
<div class="box2">
<div class="row">
<div class="col-lg-12 md-6 text-center">
<h1>Random Group Maker</h1>
<div class="wrap alt">
<p class="toggle-wrap">Number of People per group <a class="choice"
href="#choice"><strong>TOGGLE</strong><span class="switch"></span></a> Number of Groups
</p>
<p class="pergroup-wrap">Number of students per group: <input class="pergroup" type="integer"
value="" /></p>
<p class="numgroups-wrap">Number of groups: <input class="numgroups" type="integer" value="" />
</p>
<textarea name="students" id="students" class="form-control"
placeholder="choice 1 choice 2...etc many choices you want to add"></textarea>
</p>
<button type="button" class="btn gbtn btn-dark bg-dark text-white">Make Groups</button>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12 md-6 text-center mt-2">
<h2>Your choice is</h2>
<div class="groups" id="grp" data-aos="zoom-in-down"></div>
</div>
</div>
</div>
</div>
<div id="toast" data-aos="fade-in">Successfully Generated</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"></script>
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init({
offset: 150,
duration: 500,
});
</script>
</section>
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init({
offset: 150,
duration: 500,
});
</script>
<script src="Script.js/random_grp.js"></script>
</html>