Added a bunch of new stuff

This commit is contained in:
2022-02-18 02:27:27 +00:00
parent 12986c296b
commit 0498157def
17 changed files with 318 additions and 39 deletions

View File

@ -1,5 +1,5 @@
///makes IsAdult equal to whatever is on the local storage
let IsAdult = localStorage.getItem("adult")
let IsAdult = localStorage.getItem("adult");
///sends you to the redirect page if it's not 1
@ -11,4 +11,4 @@ window.location.replace("Redirect URL");
/// on each page put: <script src="adultcheck.js"></script>
/// on redirect page: <Button onclick="localStorage.setItem("adult", "1")">Yes</button> (also a hyperlink back to the main page.)
/// on redirect page: <Button onclick="localStorage.setItem("adult", "1")"; history.back();>Yes</button>