Skip to content

Commit

Permalink
removed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Thedogecraft committed Sep 29, 2024
1 parent 2f1cc67 commit 9626ae6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
1 change: 0 additions & 1 deletion public/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ const texts = [
'Did you know lunaar.used to be a <a href="https://sites.google.com/view/thebestonlinegames/index?authuser=1">google site?</a>',
];

// adds ip to rng text
fetch("https://api.ipify.org?format=json")
.then((response) => response.json())
.then((data) => {
Expand Down
11 changes: 1 addition & 10 deletions public/views/settings.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -128,25 +128,18 @@ function hmm() {
}
loadSettings();
function resetSettings() {
const reset = confirm("Are you sure you want to reset all settings?")
if (reset) {
localStorage.clear();
document.location.reload();
} else {
}
}
function aboutBlank() {
// Open a new about:blank window
const newWindow = window.open();
// Set styles for the body of the new window
newWindow.document.body.style.margin = "0";
newWindow.document.body.style.height = "100vh";
// Create and style the iframe element
const iframe = newWindow.document.createElement("iframe");
iframe.style.border = "none";
iframe.style.width = "100%";
Expand All @@ -156,8 +149,6 @@ function aboutBlank() {
iframe.src = window.location.href;
history.replaceState(null, '', '');
window.location.replace('https://www.google.com/search?q=what+day+is+today')
// Append the iframe to the body of the new window
newWindow.document.body.appendChild(iframe);
}
Expand Down

0 comments on commit 9626ae6

Please sign in to comment.