-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
67 lines (54 loc) · 2.82 KB
/
index.html
File metadata and controls
67 lines (54 loc) · 2.82 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Colors</title>
<link rel="Shortcut Icon" href="favicon.ico">
<!-- jquery -->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>
<!-- bootstrap v5.0 -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js" integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.0/font/bootstrap-icons.css">
<!-- custom styles -->
<link rel="stylesheet" href="style.css">
<!-- colorpicker -->
<script src="https://cdn.jsdelivr.net/npm/@jaames/iro@5"></script>
</head>
<body style="background: #111111;">
<img src="img/2.png" alt="colors" style="display:none;">
<div class="color-background custom"></div>
<div class="color-background transition"></div>
<div class="container h-100">
<div class="row h-100 justify-content-center align-items-center">
<div class="card">
<h1 class="title">Choose your favourite color</h1>
<div id="picker"></div>
<div class="colors">
<ball data-set="0" style="background: #fff;"><span></span></ball>
<ball data-set="1" style="background: #f00;"><span></span></ball>
<ball data-set="2" style="background: #0f0;"><span></span></ball>
<ball data-set="3" style="background: #00f;"><span></span></ball>
<ball onclick="getColor();" style="background: #ffffff;">
<i class="bi bi-arrow-right-short"></i>
</ball>
</div>
</div>
<p style="z-index: 1;">
<button type="button" class="btn btn-secondary" onclick="window.location.href = 'view_result.php';">Result Page</button>
</p>
</div>
</div>
<form class="colors" action="result.php" method="post" style="display: none;">
<input type="color" name="color" value="#ffffff">
<input type="color" name="red" value="#ff0000">
<input type="color" name="green" value="#00ff00">
<input type="color" name="blue" value="#0000ff">
<input type="submit" name="" value="Submit">
</form>
<!-- custom code -->
<script src="codes/index.js" charset="utf-8"></script>
<script src="codes/github-link.js" charset="utf-8"></script>
</body>
</html>