Init Quiz function implemented
This commit is contained in:
@@ -38,7 +38,7 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="quizScreen" class="card container pt-4">
|
<div id="quizScreen" class="card container pt-4" style="display: none;">
|
||||||
<span id="question" class="card-title"> Question </span>
|
<span id="question" class="card-title"> Question </span>
|
||||||
<div id="choices" class="card-body">
|
<div id="choices" class="card-body">
|
||||||
<form action="javascript:;">
|
<form action="javascript:;">
|
||||||
|
|||||||
5
index.js
5
index.js
@@ -9,6 +9,7 @@ function nameSubmit() {
|
|||||||
localStorage.setItem("studData", JSON.stringify(studData));
|
localStorage.setItem("studData", JSON.stringify(studData));
|
||||||
var privacyViolation = document.getElementById("privacyViolation");
|
var privacyViolation = document.getElementById("privacyViolation");
|
||||||
privacyViolation.style.display = "none";
|
privacyViolation.style.display = "none";
|
||||||
|
initQuiz();
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////
|
//////////////////////////////
|
||||||
@@ -21,6 +22,10 @@ function nameSubmit() {
|
|||||||
// correct: true, //
|
// correct: true, //
|
||||||
// }; //
|
// }; //
|
||||||
//////////////////////////////
|
//////////////////////////////
|
||||||
|
function initQuiz() {
|
||||||
|
var quizScreen = document.getElementById("quizScreen");
|
||||||
|
quizScreen.style.display = "block";
|
||||||
|
}
|
||||||
function initScore() {
|
function initScore() {
|
||||||
const user = JSON.parse(localStorage.getItem("studData"));
|
const user = JSON.parse(localStorage.getItem("studData"));
|
||||||
var sInfoName = document.getElementById("sInfoName");
|
var sInfoName = document.getElementById("sInfoName");
|
||||||
|
|||||||
Reference in New Issue
Block a user