-
Notifications
You must be signed in to change notification settings - Fork 0
/
color_flipper.html
57 lines (57 loc) · 1.87 KB
/
color_flipper.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Color Flipper</title>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"
integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link rel="stylesheet" href="color_flipper.css" />
</head>
<body id="background-randomise">
<nav class="navbar navbar-expand-lg bg-light">
<div class="container-fluid justify-content-center">
<a class="navbar-brand" href="#">Color Flipper</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>
</nav>
<main>
<div class="middle-section">
<p id="bgtext">Background Color: #</p>
<p id="countdown">00:10</p>
<button
type="button"
id="copybutton"
onclick="copyText()"
class="btn btn-dark my-3 p-3"
>
<i class="fa-solid fa-copy"> Copy</i>
</button>
<button type="button" id="button" class="btn btn-outline-dark">
Randomize
</button>
</div>
</main>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
<script src="color_flipper.js"></script>
</body>
</html>