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