This repository has been archived by the owner on Aug 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
410 lines (402 loc) · 13.4 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
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Quotes. Random Quotes: A fantastic website for finding random quotes and inspiration in vibrant colors. Happy Quoting!"
/>
<!-- start -->
<link rel="shortcut icon" type="image/ico" href="/Icon.svg" />
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"
/>
<!-- Bootstrap CDN -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous"
/>
<!-- redux CDN -->
<script
src="https://cdnjs.cloudflare.com/ajax/libs/redux/5.0.0-alpha.0/redux.js"
integrity="sha512-rrwKW9q7MLeNxl6R7SHb2DjciTUBoCFCdbTwMQWdfJ1uqT22lKR5YWdbKoRuBLFGk3XoEZ7jRwWjiCGLopwW1g=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<!-- Jquery -->
<script
src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
crossorigin="anonymous"
></script>
<!-- Font Awesome -->
<script
src="https://kit.fontawesome.com/7cc1bf722a.js"
crossorigin="anonymous"
></script>
<!-- My Scripts & CSS -->
<script src="./index.js"></script>
<!-- <script src="./minify.js"></script> -->
<!-- <link rel="stylesheet" href="style.css" /> -->
<link rel="stylesheet" href="style.min.css" />
<title>Random Quoter</title>
</head>
<body>
<!-- Nav Bar -->
<nav class="navbar sticky-top navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="#Top" target="_self"
><img src="./Icon.svg" alt="" width="30" height="24" /> MOACONCEPT</a
>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarNav"
aria-controls="navbarNav"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div
class="collapse navbar-collapse justify-content-end"
id="navbarNav"
>
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="#Dynamic_Quotes">Dynamic Quotes</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#Static_Unit">Static Quotes</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#Search_Unit">Search Quotes</a>
</li>
</ul>
<section id="NavBtn">
<!-- Light/Dark Theme Options -->
<button
aria-label="Turn on dark mode"
type="button"
class="btn light"
>
<i class="fa-solid fa-sun"></i>
</button>
<button
aria-label="Turn off dark mode"
type="button"
class="btn dark"
>
<i class="fa-solid fa-moon"></i>
</button>
<!-- Change Colors Button -->
<button
type="button"
class="btn change_col"
aria-label="Change Colors"
>
<i class="fa fa-circle-half-stroke" aria-hidden="true"></i>
</button>
</section>
</div>
</div>
</nav>
<!-- End of Nav Bar -->
<div id="body_section">
<!-- How To Button -->
<section id="welcome">
<div>
<button type="button" class="btn" id="liveToastBtn">
How To Use
</button>
</div>
<div class="position-fixed p-4" style="z-index: 11">
<div
id="liveToast"
class="toast hide"
role="alert"
aria-live="assertive"
aria-atomic="true"
>
<div class="toast-header">
<strong class="me-auto">How To:</strong>
<div class="toclose">
<button
type="button"
class="btn-close toclose"
data-bs-autohide="false"
data-bs-animation="true"
data-bs-dismiss="toast"
aria-label="Close"
></button>
</div>
</div>
<div class="toast-body">
<ul>
<li>
Copy & Share with <i class="fa fa-copy"></i> ,
<i class="fa fa-twitter"></i>
&
<i class="fa-brands fa-whatsapp"></i>
</li>
<li>Search for a quote by the author's name</li>
<li>
Change Colors by pressing
<i class="fa-solid fa-circle-half-stroke"></i>
</li>
<li>
Change Theme with <i class="fa-solid fa-sun"></i> &
<i class="fa-solid fa-moon"></i>
</li>
<li>Just Click Next Quote!</li>
</ul>
</div>
</div>
</div>
</section>
<!-- End Changes Button -->
<!-- We'll be changing this at interval -->
<section id="Top">
<h1 class="text-center fs-1">Random Quote Generator</h1>
</section>
<!-- We'll be changing this at interval -->
<!-- Dynamic Quotes -->
<section id="Dynamic_Quotes">
<h2 class="text-center">Dynamic Random Quotes</h2>
<div id="DynamicQuotes" class="card text-center shadowed">
<div class="card-header">Quote</div>
<div class="card-body">
<blockquote class="blockquote mb-0">
<h3>...Loading Quotes...</h3>
<!-- <p>
A well-known quote, contained in a blockquote element.
</p>
<footer class="blockquote-footer">
Someone famous in <cite title="Source Title">Source Title</cite>
</footer> -->
</blockquote>
</div>
</div>
</section>
<!-- End Dynamic Quotes -->
<!-- The Beginning -->
<section id="Static_Unit">
<!-- Quote Body -->
<h2 class="text-center">Static Random Quotes</h2>
<div id="quote-box" class="card mb-2 mx-auto shadowed">
<div class="row g-0">
<div class="col-md-8">
<div class="card-body Dqoute">
<h5 id="author" class="card-title"></h5>
<div id="text" class=""></div>
</div>
</div>
<div class="d-flex justify-content-center">
<div class="spinner-border" role="status">
<span class="sr-only"></span>
</div>
</div>
<!-- End of Quote Body -->
<!-- Buttons and rest -->
<!-- Twitter Button -->
<div
class="tweet"
data-bs-toggle="tooltip"
data-bs-placement="bottom"
title="Tweet this quote!"
target="_top"
>
<a
id="tweet-quote"
aria-label="'Tweet' this quote"
target="_blank"
>
<i class="fa fa-twitter"></i>
</a>
</div>
<!-- Copy Button -->
<div
id="copy-quote"
data-bs-toggle="tooltip"
data-bs-placement="bottom"
title="Copy this quote!"
target="_top"
class="copy"
>
<a>
<i class="fa fa-copy"></i>
</a>
</div>
<!-- Whatsapp Button -->
<div
data-bs-toggle="tooltip"
data-bs-placement="bottom"
title="Send on Whatsapp!"
target="_top"
class="whatsapp"
>
<a
aria-label="Share on Whatsapp"
id="whatsapp-quote"
data-action="share/whatsapp/share"
>
<i class="fa fa-whatsapp"></i>
</a>
</div>
</div>
<div class="justify-content-start smallText">
<p class="card-text"><small class="text-muted dater"></small></p>
</div>
<div class="d-grid gap-2 d-flex justify-content-end">
<button
id="new-quote"
class="btn btn-primary btn-lg"
title="Get another Quote!"
>
Next Quote
</button>
</div>
</div>
</section>
<!-- End of the Whole Quote Body-->
<!-- Search Part -->
<section id="Search_Unit">
<h2 class="text-center">Search Quotes</h2>
<div class="card mx-auto shadowed say">
<div class="card-body">
<h5 class="card-title text-capitalize">
Find a quote by the author's name!
</h5>
<!-- <h6 class="card-subtitle mb-2 text-muted">Card subtitle</h6> -->
<p class="card-text">
You can find a full quote by searching for the author's name.
Simply enter it in the space below.
</p>
<p>
Don't worry if you don't find a match. You may still see their
name, which will be generated at random. Just keep clicking
“ Next Quote ” .
</p>
</div>
</div>
<div class="position-relative">
<div class="searchQ mx-auto row position-relative top-50 start-50">
<div class="col-auto">
<input
class="form-control"
id="data"
list="datalistOptions"
placeholder="Type to search..."
/>
<datalist id="datalistOptions"> </datalist>
</div>
<div class="col-auto">
<button id="searchBtn" type="submit" class="btn mb-3">
Search
</button>
</div>
</div>
</div>
<div class="card deSearch">
<div class="card-header">Search Result</div>
<div class="search_container">
<ul class="list-group list-group-flush deList">
<li
class="list-group-item d-flex justify-content-between align-items-start"
>
<div class="ms-2 me-auto tag">Search Something...</div>
</li>
</ul>
</div>
</div>
</section>
</div>
<!-- <footer class="footer mt-auto py-3 bg-light">
</footer> -->
<!-- Footer Unit -->
<footer
class="footer mt-auto bg-light text-center text-white"
style="background-color: #f1f1f1"
>
<!-- Twitter -->
<a
class="btn btn-link btn-floating btn-lg text-dark m-1"
href="https://twitter.com/Dev_Obele"
role="button"
aria-label="Twitter Link"
data-mdb-ripple-color="dark"
><i class="fa fa-twitter"></i
></a>
<!-- Google -->
<a
class="btn btn-link btn-floating btn-lg text-dark m-1"
href="mailto:amachree9630@gmail.com"
role="button"
data-mdb-ripple-color="dark"
aria-label="Email Link"
><i class="fa fa-google"></i
></a>
<!-- Instagram -->
<a
class="btn btn-link btn-floating btn-lg text-dark m-1"
href="https://www.instagram.com/moa_concepts/"
role="button"
data-mdb-ripple-color="dark"
aria-label="Instagram Link"
><i class="fa fa-instagram"></i
></a>
<!-- Linkedin -->
<a
class="btn btn-link btn-floating btn-lg text-dark m-1"
href="https://www.linkedin.com/in/michael-amachree-1b71b8210/"
role="button"
data-mdb-ripple-color="dark"
aria-label="Linkedin Link"
><i class="fa fa-linkedin"></i
></a>
<!-- Github -->
<a
class="btn btn-link btn-floating btn-lg text-dark m-1"
href="https://github.com/Michael-Obele"
role="button"
data-mdb-ripple-color="dark"
aria-label="Github Link"
><i class="fa fa-github"></i
></a>
<!-- Whatsapp -->
<a
class="btn btn-link btn-floating btn-lg text-dark m-1"
href="https://wa.me/2349069170098?text=Hey,I%20love%20your%20App!"
role="button"
data-mdb-ripple-color="dark"
aria-label="Whatsapp Link"
><i class="fa fa-whatsapp"></i
></a>
<!-- Copyright -->
<div
class="text-center text-dark p-3"
style="background-color: rgba(0, 0, 0, 0.2)"
>
©
<script>
document.write(new Date().getFullYear());
</script>
Copyright:
<a class="text-dark" href="https://moaconcept.xyz">MOACONCEPT</a>
</div>
<!-- Copyright -->
</footer>
<!-- Bootstrap JS CDN -->
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"
></script>
</body>
</html>