-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathChoice_Picker.html
286 lines (250 loc) · 11 KB
/
Choice_Picker.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
<!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 choice picker</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');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Titillium Web', sans-serif;
}
#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);
border-bottom: 1px solid rgb(0, 195, 255);
}
.navbar-brand {
color: white;
font-weight: 600;
font-size: 20px;
}
.nav-item {
margin-right: 20px;
}
.center {
width: 100vw;
height: 100vh;
background-color: #f9c1b1;
background-image: linear-gradient(315deg, #f9c1b1 0%, #fb8085 74%);
}
.box {
width: 60%;
height: 85%;
padding: 15px 30px;
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: 10vh;
}
.box2 {
margin-top: -10px;
}
#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;
}
</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 active" aria-current="page" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Contact Us</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">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 Choice Picker</h1>
<h2>Enter choices</h2>
<p>Enter each value on a new line. Blank lines will be ignored.</p>
<textarea id="values" class="form-control" rows="7"
placeholder="choice 1 choice 2 choice 3"></textarea>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12 md-6 text-center mt-2">
<h2>Your choice is</h2>
<p id="instructions"><span class="label label-warning">You have to enter some values first!</span>
</p>
<div id="results"></div>
<div id="chooser" class="text-center">
<hr>
<button type="button" class="btn gbtn btn-dark bg-dark text-white">Pick from list</button>
<button class="btn gbtn btn-dark bg-dark text-white" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasWithBothOptions" aria-controls="offcanvasWithBothOptions">more info</button>
</div>
<div class="offcanvas offcanvas-start" data-bs-scroll="false" data-bs-backdrop="false" tabindex="-1" id="offcanvasWithBothOptions" aria-labelledby="offcanvasWithBothOptionsLabel">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="offcanvasWithBothOptionsLabel">Use & information</h5>
<button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<div class="p">
<p> ➡Have a tough choice to make? Can't make up your mind between multiple choices?
<br><BR>
➡Let the random choice generator make a quick decision for you by picking a choice from a selection list of items you provide. It's a quick and easy decision maker.
<br><br>
➡This tool is great for making a decision in trivial matters (should I continue building a mobile app or take a nap or etc). When you have many things to do at once, let this tool pick a random choice for you.
<br><BR>
<u> <h5>Note:</h5> </u>
➡Your list items can be on separate lines, separated by commas or etc. Just paste all the choices you have and click the button below to display a randomly picked selection from the list.
enter each choice in new line
<br> <br>
<u><h5> Example of use </h5></u>
➡Random choice Picker is a free tool to quickly draw a random name or to pick multiple random winners by submitting a list of names. This tool can be used in classroom by teachers to select a random student or for lotteries to draw a random winner. Drawing a random name is never been so easy.
<br> <br>
➡This tool can be very useful to choose random winners for your online contest. Get all the names of the participants that entered the contest and which comply with the rules of your contest or giveaway. Enter the names in the Name Picker tool, select raffle options and start the draw to pick a random winner for your contest and contact the winner of your raffle and share the results via social media.
<br> <br>
➡You can use random name selector for any contest, giveaway, raffle, drawing, promotion or competitions. The tool is also used for families to decide who has to do the dishes or by teachers to select random students for activities or assignments in school classes.
<br><br>
➡Random choice Picker is a free tool to draw a random name for a contest, giveaway, promotion or competition. It can also be used to just pick a random item from a list of items. The tool support names, teams, emails, numbers, songs, usernames and more.
</div>
</p>
</div>
</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 src="Script.js/Choice_Picker.js"></script>
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init({
offset: 150,
duration: 500,
});
</script>
</html>
<style>
.p {
text-align: left;
font-size: 15px;
background-color: rgb(227, 238, 197);
}
.row h1 {
color: #fff;
font-weight: 900;
margin: 0 0 0.5em;
letter-spacing: 3px;
color: #505050;
text-shadow: 2px 4px 3px rgba(0, 0, 0, 0.3)
}
#results {
border: 1px solid #cccccc;
border-radius: 5px;
height: 80px;
padding: 20px;
display: none;
text-align: center;
font-size: 30px;
overflow: hidden;
}
#results ul {
margin: 50px 0 0 0;
padding: 0;
list-style: none;
}
#results li {
margin-top: 20px;
}
#chooser {
margin-top: 20px;
display: none;
}
#reminder {
float: right;
padding: 0.2rem 0.5rem;
font-weight: bold
}
</style>