init score and hide form on submit
This commit is contained in:
6
index.js
6
index.js
@@ -7,4 +7,10 @@ function nameSubmit() {
|
|||||||
startTime: Date.now(),
|
startTime: Date.now(),
|
||||||
};
|
};
|
||||||
localStorage.setItem(studData, JSON.stringify(studData));
|
localStorage.setItem(studData, JSON.stringify(studData));
|
||||||
|
var privacy-violation = document.getElementById("privacy-violation");
|
||||||
|
privacy-violation.style.display = "none";
|
||||||
|
}
|
||||||
|
|
||||||
|
function initScore() {
|
||||||
|
const user = JSON.parse(localStorage.getItem("studData"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user