-
Notifications
You must be signed in to change notification settings - Fork 1
/
chemistryquiz.php
75 lines (69 loc) · 2.13 KB
/
chemistryquiz.php
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
<?php
session_start();
if(!isset($_SESSION['loggedin'])||$_SESSION['loggedin']!=true){
header("location:login.php");
exit;
}
?>
<!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>Chemistry Quiz</title>
<link rel="stylesheet" href="quizstyles.css" />
</head>
<body>
<header>
<div class="container">
<nav>
<h1 class="brand">
<a href="#"
>Quiz<span style="font-size: 50px"><b>JEE</b></span
></a
>
</h1>
<ul>
<li><a href="quizhome.php">Home</a></li>
<li><a>Welcome <?php
echo $_SESSION['username'];
?></a> </li>
<li><a href="logout.php">Logout</a></li>
</ul>
</nav>
</div>
<div class="main-div">
<div class="inner-div">
<div style="" class="timer">
<h1 id="timer_head">Timer:</h1>
<h1 id="timer">120</h1>
</div>
<h2 class = "question">Question 1</h2>
<ul>
<li>
<input type="radio" name="answer" id="ans1" class="answer">
<label for="ans1" id="option1">Answer option</label>
</li>
<li>
<input type="radio" name="answer" id="ans2" class="answer">
<label for="ans2" id="option2">Answer option</label>
</li>
<li>
<input type="radio" name="answer" id="ans3" class="answer">
<label for="ans3" id="option3">Answer option</label>
</li>
<li>
<input type="radio" name="answer" id="ans4" class="answer">
<label for="ans4" id="option4">Answer option</label>
</li>
</ul>
<button id ="submit">submit</button>
<div id ="showScore" class="scoreArea"></div>
</div>
</div>
</div>
</header>
<script src="chemistryscript.js"></script>
</body>
</html>