-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
97 lines (84 loc) · 5.3 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
<!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">
<title>POLLING SITE | LOCAL MACHINE</title>
<link rel="shortcut icon" type="image/png" href="images/vote-icon.png">
<link rel="stylesheet" href="css/s1.css">
<!--Bootstrap-->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<!--Jquery-->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<!--Logos/Vectors-->
<script src="https://kit.fontawesome.com/ccbdc28270.js" crossorigin="anonymous"></script>
</head>
<body>
<section class="home" id="top">
<div id="particles-js"></div>
<header>
<nav class="navbar navbar-expand-lg navbar-dark" >
<a class="navbar-brand" style="font-family:'Yeon Sung';font-size:35px;padding-left:5%;" href="#">
<i class="fas fa-vote-yea"></i></i>Quick Vote
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo01" aria-controls="navbarTogglerDemo01" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarTogglerDemo01">
<ul class="navbar-nav ml-auto">
<li class="nav-item"><a class="nav-link" href="results.html" style="color: rgb(228, 228, 244);">Poll Results</a></li>
<li class="nav-item"><a class="nav-link" href="settings.html" style="color: rgb(207, 207, 219);">Poll settings</a></li>
<li class="nav-item"><a class="nav-link" href="about.html" style="color: rgb(227, 227, 235);">About</a></li>
</ul>
</div>
</nav> </header>
</div>
<h2 class="poll-name">Poll name</h2>
<div class="row rw1">
<div class="col-lg-4">
<h2 id="cn-1" class="cn">Candidate1</h2>
<button type="button" class="btn btn-1">Vote <i class="fas fa-hand-point-up"></i></button>
</div>
<div class="col-lg-4">
<h2 id="cn-2" class="cn">Candidate2</h2>
<button type="button" class="btn btn-2">Vote <i class="fas fa-hand-point-up"></i></button>
</div>
<div class="col-lg-4">
<h2 id="cn-3" class="cn">Candidate3</h2>
<button type="button" class="btn btn-3">Vote <i class="fas fa-hand-point-up"></i></button>
</div>
</div>
</section>
<section id="footer">
<a class="link-icon" href="https://github.com/AmareshMuddebihal"><i class="fab fa-github"></i></a>
<br>
<em>Amaresh Muddebihal</em><br>
</section>
<div class="theme-btn">
<button type="button" aria-pressed="true" aria-controls="edit-site:global-styles" aria-expanded="true" aria-disabled="false" class="theme-btn" aria-label="Styles"><svg width=" 24" height=" 24" xmlns=" " viewBox="0 0 24 24 " aria-hidden="true" focusable="false"><path d="M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"></path></svg></button>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script type="text/javascript" src="index.js"></script>
<script src="app.js"></script>
<script src="particles.min.js"></script>
<script src="app.js"></script>
<script>
(function () {
[...document.querySelectorAll(".control")].forEach(button => {
button.addEventListener("click", function() {
document.querySelector(".active-btn").classList.remove("active-btn");
this.classList.add("active-btn");
document.querySelector(".active").classList.remove("active");
document.getElementById(button.dataset.id).classList.add("active");
})
});
document.querySelector(".theme-btn").addEventListener("click", () => {
document.body.classList.toggle("dark-mode");
})
})();
</script>
</body>
</html>