-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathColor_1.html
283 lines (242 loc) · 11.3 KB
/
Color_1.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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Random Color Code Generator</title>
<link rel="icon" href="Image/logo.png">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
<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;
}
html,
body {
-moz-box-sizing: border-box;
box-sizing: border-box;
height: 100%;
width: 100%;
background-color: #0beef9;
background-image: linear-gradient(315deg, #0beef9 0%, #48a9fe 74%);
font-family: 'Roboto', sans-serif;
font-weight: 400;
}
.wrapper {
display: table;
height: 100%;
width: 100%;
}
.container-fostrap {
display: table-cell;
padding: 1em;
text-align: center;
vertical-align: middle;
}
.fostrap-logo {
width: 100px;
margin-bottom: 15px
}
.btn2 {
margin-left: 85px
}
#button:hover {
color: white;
background-color: black;
}
.box #note {
font-size: 1.2rem;
font-family: 'Courier New', Courier, monospace;
}
.navbar {
background-color: black;
opacity: 0.9;
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;
}
.max-screen {
min-width: 100vw;
min-height: 100vh;
background: linear-gradient(to top, #48c6ef 0%, #6f86d6 100%);
transition: 0.7s ease;
}
.box {
box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
display: flex;
justify-content: space-around;
align-items: center;
min-height: 10vh;
width: 28vw;
margin: 35px 32vw;
padding: 12px;
border-radius: 10px;
background-color: seashell;
}
#bgc {
font-size: 35px;
}
@media screen and (max-width: 643px) {
.box {
min-height: 15vh;
width: 33vw;
padding: 2px 5px;
margin: 25px 30vw;
font-size: 20px;
}
#bgc {
font-size: 20px;
font-weight: 600;
}
}
.p {
text-align: left;
font-size: 15px;
background-color: rgb(227, 238, 197);
}
.btn {
margin: 25px 25px;
font-size: 1.2rem;
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
.btn:hover {
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
#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;
}
</style>
</head>
<section class="wrapper">
<div class="max-screen">
<div class="container-fostrap">
<nav class="navbar fixed-top navbar-expand-lg navbar-dark">
<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 Us</a>
</li>
<li class="nav-item">
<a class="nav-link" href="index.html">Exit</a>
</li>
</ul>
</div>
</div>
</nav>
</div>
<div class="container">
<h2 class="text-center text-white pt-5">Random Color Picker</h2>
<div class="box">
<span id="bgc">#FFBBGG</span>
</div>
<div class="text-center">
<span><button type="button" class="btn btn-dark bg-dark text-white" onclick="myFuntion()">Change
Color</button></span>
<button type="button" class="btn btn-dark bg-dark m-10" id="copy">Copy Color Code</button>
<button class="btn gbtn btn-dark bg-dark text-white" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasWithBothOptions" aria-controls="offcanvasWithBothOptions">About</button>
<div class="offcanvas offcanvas-start" data-bs-scroll="true" data-bs-backdrop="false" tabindex="-1" id="offcanvasWithBothOptions" aria-labelledby="offcanvasWithBothOptionsLabel">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="offcanvasWithBothOptionsLabel">why you should use</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> ➡If you're painting a room or need to choose a color for a project, it can sometimes be difficult to make the final choice. This is especially true if you have been looking at the same colors for a long period of time. Using this random color tool can help refresh your mind and help you ultimately choose the best color. By having random colors displayed, your mind is able to break away from the colors you've been spending so much time with allowing you to look at them from a fresh perspective. You might even be surprised by the random color picker and find a color that works that you hadn't been considering.
<br><BR>
➡To randomly generate a color simply load this page. Press the "Change color" button if you want the random color generator to produce another color for you. Our software uses a strong random number generator to produce the values of red, green, and blue that comprise each color. The output is the color, visualized, and its unique code in HEX
<br><br>
➡The human eye is pretty good at what it does and can distinguish between about 10 million colors [1]. In theory, we could draw a random color from that infinity.
<br><BR>
➡we can reproduce over 16 million colors and so this is also the range of colors our color generator picks between. 16,777,216 colors, to be precise.
<br> <br>
➡HEX is just a group of six hexadecimal digits and is a representation often used in web design. For example, the HEX code for the color black is #000000 while the HEX code for a color in the purple range is #8f0f8d.
<br> <br>
➡There's something tremendously relaxing about looking at random colors. Don't believe us? Give yourself five minutes to use the random color picker to see how relaxing it can be. It's incredible how relaxing it can be and how far your mind will wander as you do it.
<br><BR>
➡We're quite interested in knowing why you made your way to this random color generator and how exactly you use it. The better we understand how people are using this tool, the more opportunities we have to make improvements to it to make it more useful for everyone who comes by. If you're using the random color picker in a way not mentioned above, please take a few minutes to contact us and explain how you use it so we can share it with others. If you have ideas on how to make it better or have issues that you would like to see changed, we'd love to hear them as well. We hope to make this the best random color generator on the Internet and to do that, we'd love to get your help.
</p>
</div>
</div>
</div>
</div>
<p class="text-center text-white fs-5">Made with ❤️ by <span
style="color: rgb(0, 37, 202); font-weight: 600;">Random Script</span> </p>
<div id="toast">Successfully Generated</div>
</div>
</div>
</section>
<script src="Script.js/Color_1.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"></script>
<!-- AOS -->
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init({
offset: 150,
duration: 500,
});
</script>
</body>
</html>