names
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
your experience.
|
||||
</p>
|
||||
<![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">
|
||||
<!-- Name ID etc -->
|
||||
<form action="javascript:;">
|
||||
@@ -70,6 +70,7 @@
|
||||
<!-- the things for submit and previous questions -->
|
||||
<button onclick="prevQ()" class="btn btn-primary">Previous</button>
|
||||
<button onclick="nextQ()" class="btn btn-primary">Next</button>
|
||||
<button onclick="initScore()" class="btn btn-primary">View Score</button>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
2
index.js
2
index.js
@@ -42,7 +42,7 @@ function initScore() {
|
||||
var start_time = new Date(user.startTime);
|
||||
console.log(start_time);
|
||||
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");
|
||||
// console.log(user.name);
|
||||
// console.log(sInfoId.innerText);
|
||||
|
||||
Reference in New Issue
Block a user