-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
307 lines (292 loc) · 14.1 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta
name="description"
content="A Random Image Picker carousel. This web application picks/selects a random image from batch of images of choice. This web application also provides extra features such as a nice visual carousel which makes it more fun to use."
/>
<meta name="author" content="Manu De Buck"/>
<title>Random Image Picker</title>
<meta property="og:url" content="https://imagepicker.org"/>
<meta property="og:type" content="website"/>
<meta property="og:title" content="Random Image Picker Carousel"/>
<meta
property="og:description"
content="A Random Image Picker carousel. This web application picks/selects a random image from batch of images of choice. This web application also provides extra features such as a nice visual carousel which makes it more fun to use."
/>
<meta property="og:site_name" content="Random Image Picker"/>
<meta
property="keywords"
content="random images, random image, image picker, image carousel, random image carousel, random image picker, pick random image, pick random images"
/>
<meta name="twitter:title" content="Random Image Picker Carousel"/>
<meta
name="twitter:description"
content="A Random Image Picker carousel. This web application picks/selects a random image from batch of images of choice. This web application also provides extra features such as a nice visual carousel which makes it more fun to use."
/>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"url": "https://imagepicker.org",
"headline": "Random Image Picker Carousel",
"description": "A Random Image Picker carousel. This web application picks/selects a random image from batch of images of choice. This web application also provides extra features such as a nice visual carousel which makes it more fun to use."
}
</script>
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet"/>
<link href="style.css" rel="stylesheet"/>
</head>
<body class="d-flex flex-column">
<div class="page-content d-flex flex-column">
<nav class="navbar navbar-expand-lg navbar-dark bg-primary static-top">
<div class="container">
<a class="navbar-brand" href="https://imagepicker.org"
>Random Image Picker</a
>
</div>
</nav>
<div class="container page-content">
<div id="step-1">
<div class="row">
<div class="col-12">
<h1 class="mt-3 mb-3">Select Images</h1>
<div class="col-12 row">
<div class="input-group col-12 col-md-9">
<input
type="file"
class="custom-file-input"
id="imagesInput"
multiple
onchange="loadImages();"
/>
<label class="custom-file-label" for="imagesInput"
>Select Images</label
>
</div>
<button
id="start-button"
type="button"
class="btn btn-success col-12 col-md-2 ml-0 ml-md-1 mt-2 mt-md-0"
onclick="start();"
disabled="disabled"
>
Next
</button>
</div>
<div class="col-12 mt-4">
<div class="custom-control custom-switch">
<input
type="checkbox"
class="custom-control-input"
id="delete-image"
checked="checked"
/>
<label class="custom-control-label" for="delete-image"
>Remove image. If enabled the picked image will be removed
from the batch of images, otherwise it won't.</label
>
</div>
<div class="custom-control custom-switch mt-2">
<input
type="checkbox"
class="custom-control-input"
id="show-directly"
/>
<label class="custom-control-label" for="show-directly"
>Show directly. If enabled no carousel animation will be
shown and a random image will be picked directly.</label
>
</div>
<div class="custom-control custom-switch mt-2">
<input
type="checkbox"
class="custom-control-input"
id="show-history"
/>
<label class="custom-control-label" for="show-history"
>Show history. If enabled the previously picked images will
be shown.</label
>
</div>
</div>
<h1 class="mt-4 step-1-clear" id="yourimagestitle"></h1>
<div id="images" class="step-1-clear"></div>
</div>
<div class="col-12">
<div class="alert alert-warning" role="alert">
<h4 class="alert-heading">
<a href="https://www.buymeacoffee.com/manudebuck"
>Support this application</a
>
</h4>
<hr/>
<p class="mb-0">
<b
>Are you a fan of this web application? Do you appreciate
the fact that it's completely free and doesn't have any
ads?</b
>
By
<a href="https://www.buymeacoffee.com/manudebuck"
>supporting the app</a
>, you can help ensure that it stays that way for everyone.
Your support also enables me to continue improving the app
with updates and new features. Please consider
<a href="https://www.buymeacoffee.com/manudebuck"
>supporting this app</a
>
and helping it continue to grow and succeed.
</p>
</div>
<div class="alert alert-success" role="alert">
<h4 class="alert-heading">
<a href="https://double.imagepicker.org"
>Random Image Picker Double</a
>
</h4>
<hr/>
<p class="mb-0">
Select two random images from two collections of images
instead of a single one. Check it out via
<a href="https://double.imagepicker.org"
>double.imagepicker.org</a
>!
</p>
</div>
<div class="my-4 card border-secondary text-secondary">
<h3 class="card-header">Information</h3>
<div class="card-body">
<h4>How does this application work?</h4>
<p>
This application picks a random image from a batch of images
you select.
</p>
<p>
To start, you can select images to by clicking 'Browse'.
Once selected, a preview of all the images will be shown on
this page. When clicking on 'Next', there will be an option
to pick random images. You will be presented two buttons:
</p>
<div class="my-4">
<button
type="button"
class="btn btn-sm btn-success"
disabled="disabled"
>
Pick Image
</button>
<button
type="button"
class="btn btn-sm btn-danger"
disabled="disabled"
>
Reset Images
</button>
</div>
<p>
The 'Pick Image' button will pick a random image from the
batch you selected earlier. The 'Reset Images' button, will
take you back to the previous page, where you can select new
images.
</p>
<h4>What about my data?</h4>
<p>
You do not need to worry about privacy, as all the pictures
you use on this page will stay on your computer and never
leave. Your images will not be uploaded to the cloud or
whatsoever!
</p>
<h4>Feature request?</h4>
<p>
Do you have an idea to add extra functionality to this
application? Feel free to contact
<a href="https://www.mdebuck.org">me</a>!
</p>
<h4>Open source?</h4>
<p>
Yes, this application is open source and can be found on
<a href="https://github.com/ManuDeBuck/random-image-picker/"
>GitHub</a
>. Feel free to contribute to this application.
</p>
<h4>Want to support this app?</h4>
<a href="https://www.buymeacoffee.com/manudebuck"
>Buy me a pizza</a
>
</div>
</div>
</div>
</div>
</div>
<div id="step-2" class="justify-content-center" style="display: none;">
<div class="row w-100">
<div class="col-lg-8 col-12 mb-4 text-center">
<h1 class="mt-3 mb-3">Random Image Picker</h1>
<p id="information-text" class="step-2-clear text-danger"></p>
<button
id="pick-button"
type="button"
class="btn btn-success"
onclick="pickRandomImage();"
>
Pick Random Image
</button>
<button
id="reset-button"
type="button"
class="btn btn-danger"
onclick="reset();"
>
Reset Images
</button>
<div id="random-image-div" class="h-55 mt-5">
<img
id="random-image"
class="img-thumbnail random-image"
src=""
alt="Randomly picked image."
/>
</div>
</div>
<div
id="history"
class="col-lg-4 col-12 text-center"
style="display: none"
>
<h2 class="mt-4 mb-3">Previous images</h2>
<div id="history-container">No history to show.</div>
</div>
</div>
</div>
</div>
<footer class="sticky-footer py-4 bg-primary text-white-50">
<div class="container text-center">
<small
>Find the project on
<a href="https://github.com/ManuDeBuck/random-image-picker/"
>GitHub</a
>. Created by
<a href="https://www.mdebuck.org">Manu De Buck</a>.</small
>
</div>
</footer>
<!-- Javascript -->
<script src="vendor/jquery/jquery-3.4.1.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script type="text/Javascript" src="actions.js"></script>
<script
data-host="https://microanalytics.io"
data-dnt="false"
src="vendor/microanalytics/script.js"
id="ZwSg9rf6GA"
async
defer
></script>
</div>
</body>
</html>