-
Notifications
You must be signed in to change notification settings - Fork 0
/
end_card.html
81 lines (65 loc) · 1.44 KB
/
end_card.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
<script>
function go_back(){
a = document.createElement("a")
a.href = "./index.html"
a.click()
}
</script>
<body id = "body">
<div>
<h3 id = "h3">THANK YOU</h3>
</div>
<div>
<span id = "h51">Score</span>
</div>
<br></br>
<div>
<span id = "h52">Question</span>
</div>
<br></br>
<div>
<span id = "h53">Correct</span>
</div>
<div>
<button id = "bttn2" onclick = "go_back()" >Back to home</button>
</div>
</body>
<head>
<script>
var score = sessionStorage.getItem("score");
var l1 = sessionStorage.getItem("questions");
var correct_list1 = sessionStorage.getItem("cor_list");
document.getElementById("h51").innerHTML = "Score : " + score;
document.getElementById("h52").innerHTML = "Number of questions answered : " + l1;
document.getElementById("h53").innerHTML = "Incorrect : " + correct_list1;
btn = document.getElementById("bttn2");
sessionStorage.clear();
</script>
<style>
#body{
background-color: white;
}
#h51, #h52{
font-size: 4rem;
}
#h53{
font-size: 2rem;
color: red;
}
#h3{
font-size: 5rem;
z-index: 1;
}
#bttn2{
height:5rem;
width:15rem;
position:relative;
top:10rem;
left:40rem;
font-size:2rem;
background-color: blue;
border-radius: 3rem;
color:white;
}
</style>
</head>