forked from Shariar-Hasan/QuoteVerse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
94 lines (90 loc) · 3.28 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
<!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="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"
integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link rel="stylesheet" href="./assets/css/style.css" />
<title>QuoteVerse</title>
</head>
<body>
<div class="container">
<!-- Quote Section -->
<section>
<div class="quote">
<h1 class="quote-text" id="quoteTextTag">
"The only way to do great work is to love what you do."
</h1>
<h5 class="quote-author" id="quoteAuthorTag">- Steve Jobs</h5>
</div>
</section>
<!-- Control Section Section -->
<section>
<div class="controller">
<span class="clip-box added-by-box" id="addedByTag"></span
><span class="clip-box contribute"
><i class="fab fa-github" aria-hidden="true"></i>
<a
href="https://github.com/Shariar-Hasan/QuoteVerse"
target="_blank"
rel="noopener noreferrer"
>
contribute on this repository</a
></span
>
<div class="controller-wrapper">
<div class="controller-group">
<button class="btn-generator" id="generateQuoteBtn">
Generate Quote <i class="fa-solid fa-rotate"></i>
</button>
<select
name="selectedCategoryTag"
id="selectedCategoryTag"
class="capitalise"
></select>
</div>
</div>
</div>
<div class="theme_changer_button">
<div>
<input type="radio" name="color" id="blue">
<label for="blue" class="select_color" data-number="1"></label>
</div>
<div>
<input type="radio" name="color" id="red">
<label for="red" class="select_color" data-number="2"></label>
</div>
<div>
<input type="radio" name="color" id="green">
<label for="green" class="select_color" data-number="3"></label>
</div>
<div>
<input type="radio" name="color" id="yellow">
<label for="yellow" class="select_color" data-number="4"></label>
</div>
</div>
</section>
</div>
<script src="./Quotes.js"></script>
<script src="./assets/js/others.js"></script>
<script src="./assets/js/main.js"></script>
<script>
var color_selection=document.querySelectorAll('.select_color')
var color_array=['rgb(25 116 122 / 50%)','rgb(154 72 89/ 50%)','rgb(95 190 97 / 50%)','rgb(255 255 0 / 50%)'];
var container=document.querySelector('.container');
color_selection.forEach(item =>{
item.addEventListener('click',()=>{
var getItemNumber=item.getAttribute('data-number');
// document.body.style.background=color_array[getItemNumber-1];
container.style.background=color_array[getItemNumber-1];
})
})
</script>
</body>
</html>