Update index.html

This commit is contained in:
Jonas_Jones 2021-11-08 01:45:09 +01:00 committed by GitHub
parent 824a34b970
commit 1d18b7b7f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -334,12 +334,10 @@ function getCookie(cname) {
}
function checkCookie() {
let user = getCookie("username");
let user = getCookie("firstvis");
if (user != "") {
alert("bruh");
alert("Welcome again " + user);
} else {
user = prompt("Please enter your name:","");
user = 0
modal.style.display = "block";
if (user != "" && user != null) {
setCookie("username", user, 30);