-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
157 lines (135 loc) · 5.73 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
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
<!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>Quiz APP</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="app.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script>
</head>
<body onload="typeWriter()">
<div class="navbar">
<a href="#home" class="home_btn">Home</a>
<div class="subnav">
<button class="subnavbtn"> Content <i class="fa fa-caret-down"></i></button>
<div class="subnav-content">
<div id="h">
<ul>
<li class="dev_btn">Developer</li>
<li class="course_btn">Courses</li>
<li class="start_btn">Quiz</li>
<li class="book_btn">Books</li>
</ul>
</div>
</div>
</div>
</div>
<section class="all">
<!-- start Quiz button -->
<section id="one"><p id="demo"></p></section>
<script>
var i = 0;
var txt = 'This simple website was designed for 100 level students of Lautech to get acess to numerous texbooks , over 300 past questions to prepare ahead of your various tests. Click on the content button the navbar to get acess to the afforementioned stuffs';
var speed = 100;
function typeWriter() {
if (i < txt.length) {
document.getElementById("demo").innerHTML += txt.charAt(i);
i++;
setTimeout(typeWriter, speed);
}
}
</script>
<section class="d-none" id="four">
<div id="card">
<img src="me.png" alt="sala">
<p id="name" style="word-spacing: 1rem; font-size: 12px;">Abdulrahmon solahudeen is a 300level student of computer Engineering, Ladoke Akintola University of Technology ,
he's a web developer ,Budding programmer.Abdulrahmon solahudeen is a 300level student of computer Engineering, Ladoke Akintola University of Technology ,
he's a web developer ,Budding programmer.Abdulrahmon solahudeen is a 300level student of computer Engineering, Ladoke Akintola University of Technology ,
he's a web developer ,Budding programmer.Abdulrahmon solahudeen is a 300level student of computer Engineering, Ladoke Akintola University of Technology ,
he's a web developer ,Budding programmer.
</p>
<div id="bn">
<button> <a href="https://web.facebook.com/solahudeen.abdrahmon/">
<i class="fa fa-facebook" aria-hidden="true"></i>
</a></button>
<button><a href="https://www.instagram.com/sala_tech/">
<i class="fa fa-instagram" aria-hidden="true"></i>
</a></button>
<button><a href="https://twitter.com/salatech_01">
<i class="fa fa-twitter" aria-hidden="true"></i>
</a></button>
<button><a href="">
<i class="fa fa-linkedin" aria-hidden="true"></i>
</a></i></button>
</div>
</div>
</section>
<section id="two" class="d-none"> Hi sala</section>
<section id="three" class="d-none"> Boss</section>
<section>
<!-- Info Box -->
<div class="info_box">
<div class="info-title"><span>Some Rules of this Quiz</span></div>
<div class="info-list">
<div class="info">1. You will have only <span>30 seconds</span> per each question.</div>
<div class="info">2. Once you select your answer, it can't be undone.</div>
<div class="info">3. You can't select any option once time goes off.</div>
<div class="info">4. You can't exit from the Quiz while you're playing.</div>
<div class="info">5. You'll get points on the basis of your correct answers.</div>
</div>
<div class="buttons">
<button class="quit">Exit Quiz</button>
<button class="restart">Continue</button>
</div>
</div>
<!-- Quiz Box -->
<div class="quiz_box">
<header>
<div class="title">Questions</div>
<div class="timer">
<div class="time_left_txt">Time Left</div>
<div class="timer_sec">30</div>
</div>
</header>
<section>
<div class="que_text">
<!-- Here I've inserted question from JavaScript -->
</div>
<div class="option_list">
<!-- Here I've inserted options from JavaScript -->
</div>
</section>
<!-- footer of Quiz Box -->
<footer>
<div class="total_que">
<!-- Here I've inserted Question Count Number from JavaScript -->
</div>
<button class="next_btn">Next Que</button>
</footer>
</div>
<!-- Result Box -->
<div class="result_box">
<div class="icon">
<i class="fas fa-crown"></i>
</div>
<div class="complete_text">You've completed the Quiz!</div>
<div class="score_text">
<!-- Here I've inserted Score Result from JavaScript -->
</div>
<div class="buttons">
<button class="restart">Replay Quiz</button>
<button class="quit">Quit Quiz</button>
</div>
</div>
<!-- Inside this JavaScript file I've inserted Questions and Options only -->
<script src="questions.js"></script>
<!-- Inside this JavaScript file I've coded all Quiz Codes -->
<script src="script.js"></script>
</section>
</section>
</body>
</html>