mirror of
https://github.com/JonasunderscoreJones/Website-v1.git
synced 2025-10-25 11:39:18 +02:00
Update index.html
This commit is contained in:
parent
824a34b970
commit
1d18b7b7f0
1 changed files with 2 additions and 4 deletions
|
|
@ -334,12 +334,10 @@ function getCookie(cname) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkCookie() {
|
function checkCookie() {
|
||||||
let user = getCookie("username");
|
let user = getCookie("firstvis");
|
||||||
if (user != "") {
|
if (user != "") {
|
||||||
alert("bruh");
|
|
||||||
alert("Welcome again " + user);
|
|
||||||
} else {
|
} else {
|
||||||
user = prompt("Please enter your name:","");
|
user = 0
|
||||||
modal.style.display = "block";
|
modal.style.display = "block";
|
||||||
if (user != "" && user != null) {
|
if (user != "" && user != null) {
|
||||||
setCookie("username", user, 30);
|
setCookie("username", user, 30);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue