-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUntitled-2.php
107 lines (98 loc) · 4.37 KB
/
Untitled-2.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
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
<?php
include'exam2.php';
?>
<!DOCTYPE html>
<html>
<head>
<title>Exam</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="style5.css">
</head>
<body>
<fieldset>
<legend>Exam</legend>
<div id="count-down">
</div>
<br><br><br>
<form action="exam2.php" method="POST">
<label>Qustion (1):-------------------</label><br>
<input type="radio" name="q1" value="Fisrtchoice" >Fisrt choice<br>
<input type="radio" name="q1" value="secondchoice">Second choice<br>
<input type="radio" name="q1" value="Thirdchoice">Third choice<br>
<input type="radio" name="q1" value="Fourthchoice">Fourth choice<br><br><hr><br>
<label>Qustion (2):-------------------</label><br>
<input type="radio" name="q2" value="Fisrtchoice">Fisrt choice<br>
<input type="radio" name="q2" value="secondchoice">Second choice<br>
<input type="radio" name="q2" value="Thirdchoice">Third choice<br>
<input type="radio" name="q2" value="Fourthchoice">Fourth choice<br><br><hr><br>
<label>Qustion (3):-------------------</label><br>
<input type="radio" name="q3" value="Fisrtchoice">Fisrt choice<br>
<input type="radio" name="q3" value="secondchoice">Second choice<br>
<input type="radio" name="q3" value="Thirdchoice">Third choice<br>
<input type="radio" name="q3" value="Fourthchoice">Fourth choice<br><br><hr><br>
<label>Qustion (4):-------------------</label><br>
<input type="radio" name="q4" value="Fisrtchoice">Fisrt choice<br>
<input type="radio" name="q4" value="secondchoice">Second choice<br>
<input type="radio" name="q4" value="Thirdchoice">Third choice<br>
<input type="radio" name="q4" value="Fourthchoice">Fourth choice<br><br><hr><br>
<label>Qustion (5):-------------------</label><br>
<input type="radio" name="q5" value="Fisrtchoice">Fisrt choice<br>
<input type="radio" name="q5" value="secondchoice">Second choice<br>
<input type="radio" name="q5" value="Thirdchoice">Third choice<br>
<input type="radio" name="q5" value="Fourthchoice">Fourth choice<br><br><hr><br>
<label>Qustion (6):-------------------</label><br>
<input type="radio" name="q6" value="Fisrtchoice">Fisrt choice<br>
<input type="radio" name="q6" value="secondchoice">Second choice<br>
<input type="radio" name="q6" value="Thirdchoice">Third choice<br>
<input type="radio" name="q6" value="Fourthchoice">Fourth choice<br><br><hr><br>
<label>Qustion (7):-------------------</label><br>
<input type="radio" name="q7" value="Fisrtchoice">Fisrt choice<br>
<input type="radio" name="q7" value="secondchoice">Second choice<br>
<input type="radio" name="q7" value="Thirdchoice">Third choice<br>
<input type="radio" name="q7" value="Fourthchoice">Fourth choice<br><br><hr><br>
<label>Qustion (8):-------------------</label><br>
<input type="radio" name="q8" value="Fisrtchoice">Fisrt choice<br>
<input type="radio" name="q8" value="secondchoice">Second choice<br>
<input type="radio" name="q8" value="Thirdchoice">Third choice<br>
<input type="radio" name="q8" value="Fourthchoice">Fourth choice<br><br><hr><br>
<label>Qustion (9):-------------------</label><br>
<input type="radio" name="q9" value="Fisrtchoice">Fisrt choice<br>
<input type="radio" name="q9" value="secondchoice">Second choice<br>
<input type="radio" name="q9" value="Thirdchoice">Third choice<br>
<input type="radio" name="q9" value="Fourthchoice">Fourth choice<br><br><hr><br>
<label>Qustion (10):-------------------</label><br>
<input type="radio" name="q10" value="Fisrtchoice">Fisrt choice<br>
<input type="radio" name="q10" value="secondchoice">Second choice<br>
<input type="radio" name="q10" value="Thirdchoice">Third choice<br>
<input type="radio" name="q10" value="Fourthchoice">Fourth choice<br><br>
<input type="submit" value="submit"><br>
<input type="RESET" value="Clear !">
</form>
</fieldset>
<script type="text/javascript">
var seconds=2000,
countDiv=document.getElementById('count-down'),
secondPass,
countDown=setInterval(function (){
"use strict";
secondPass();
},1000);
function secondPass(){
"use strict";
var minutes = Math.floor(seconds/60),
remSeconds =seconds%60;
countDiv.innerHTML=minutes+":"+remSeconds;
if (seconds < 10) {
remSeconds = "0" +remSeconds;
}
if(seconds > 0){
seconds -= 1;
}
else{
clearInterval(countDown);
countDiv.innerHTML="Done";
}
}
</script>
</body>
</html>