This commit is contained in:
LinlyBoi
2023-12-04 13:22:22 +02:00
parent 1db3ca64f2
commit d567ad928f
2 changed files with 3 additions and 2 deletions

View File

@@ -24,7 +24,7 @@
your experience. your experience.
</p> </p>
<![endif]--> <![endif]-->
<h1 class="container p-4 text-center"> Quiz App </h1> <h1 class="container p-4 text-center"> Sample Quiz </h1>
<div class="container p-4" id="privacyViolation"> <div class="container p-4" id="privacyViolation">
<!-- Name ID etc --> <!-- Name ID etc -->
<form action="javascript:;"> <form action="javascript:;">
@@ -70,6 +70,7 @@
<!-- the things for submit and previous questions --> <!-- the things for submit and previous questions -->
<button onclick="prevQ()" class="btn btn-primary">Previous</button> <button onclick="prevQ()" class="btn btn-primary">Previous</button>
<button onclick="nextQ()" class="btn btn-primary">Next</button> <button onclick="nextQ()" class="btn btn-primary">Next</button>
<button onclick="initScore()" class="btn btn-primary">View Score</button>
</div> </div>

View File

@@ -42,7 +42,7 @@ function initScore() {
var start_time = new Date(user.startTime); var start_time = new Date(user.startTime);
console.log(start_time); console.log(start_time);
time_elapsed = time_elapsed.getSeconds() - start_time.getSeconds(); time_elapsed = time_elapsed.getSeconds() - start_time.getSeconds();
sInfoTime.innerText = "Time elapsed: " + time_elapsed; sInfoTime.innerText = "Time elapsed: " + time_elapsed + " seconds";
var scoreScreen = document.getElementById("scoreScreen"); var scoreScreen = document.getElementById("scoreScreen");
// console.log(user.name); // console.log(user.name);
// console.log(sInfoId.innerText); // console.log(sInfoId.innerText);