-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathHTML.html
More file actions
137 lines (105 loc) · 4.16 KB
/
HTML.html
File metadata and controls
137 lines (105 loc) · 4.16 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
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
<!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">
<link rel="stylesheet" href="QuizHTML.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Dongle:wght@700&family=Supermercado+One&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"/>
<title>HTML Quiz</title>
</head>
<body>
<section class="header">
<button onclick="topFunction()" id="myBtn" title="Go to top">⌃</button>
<nav>
<a href="index.html"><img src="Images/Academy root LOGO white .png"></a>
<div class="nav-links" id="navLinks">
<i class="fa fa-times" aria-hidden="true" onclick="hidemenu()"></i>
<ul>
<li><a href="index.html">HOME</a></li>
<li><a href="about.html">ABOUT US</a>
<ul>
<li><a href="contributions.html">Contribute Us</a></li>
</ul>
</li>
<li><a href="">QUIZ LAB ▾</a>
<ul>
<li><a href="C.html">Programming in C</a></li>
<li><a href="JAVA.html">Java</a></li>
<li><a href="HTML.html">HTML</a></li>
<li><a href="DBMS.html">DBMS</a></li>
</ul>
</li>
<li><a href="library.html">LIBRARIES</a></li>
<li><a href="contact.html">CONTACT US</a></li>
</ul>
</div>
<i class="fa fa-bars" aria-hidden="true" onclick="showmenu()"></i>
</nav>
<br><br><br><br><br>
<h1>HTML Quiz</h1>
<div class="quiz-wrapper">
<div class="question" id="questionBox">
</div>
<div class="options">
<ul id="ul">
<li id="op1" onclick="button(this)"></li>
<li id="op2" onclick="button(this)"></li>
<li id="op3" onclick="button(this)"></li>
<li id="op4" onclick="button(this)"></li>
</ul>
</div>
<div class="score">
<div class="next">
<button type="button" onclick="next()" id="button">Next</button>
</div>
<div class="score-card">
Your Score : <span id="scoreCard">0</span>
</div>
</div>
</div>
<br><br><br><br><br><br><br><br>
</section>
<!-- footer -->
<section class="footer">
<h1>Academy Root</h1>
<p>A Great Place To Learn</p>
<div class="icons">
<i class="fab fa-facebook" aria-hidden="true"></i>
<i class="fab fa-twitter" aria-hidden="true"></i>
<i class="fab fa-instagram" aria-hidden="true"></i>
<i class="fab fa-linkedin" aria-hidden="true"></i>
</div>
<div class="icon">
<i class="far fa-copyright" aria-hidden="true">copyright 2022</i><p><br>All Rights Reserved </p>
</div>
</section>
<script>
var navLinks = document.getElementById("navLinks")
function showmenu(){
navLinks.style.right = "0";
}
function hidemenu(){
navLinks.style.right = "-200";
}
mybutton = document.getElementById("myBtn");
window.onscroll = function() {scrollFunction()};
function scrollFunction()
{
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
mybutton.style.display = "block";
} else {
mybutton.style.display = "none";
}
}
function topFunction() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
}
</script>
<script src="Quizhtml.js"></script>
</body>
</html>