From d120fa511a0b2f2102d81e1d13ecb690f7a11df7 Mon Sep 17 00:00:00 2001 From: Thomas G <62822072+Thomasluigi07@users.noreply.github.com> Date: Mon, 20 Jun 2022 16:15:50 +1000 Subject: [PATCH] Removed alert site detection --- home.js | 18 ------------------ index.js | 18 ------------------ main.css | 1 + main.js | 18 ------------------ 4 files changed, 1 insertion(+), 54 deletions(-) diff --git a/home.js b/home.js index b8eeff6..4c6d8fd 100644 --- a/home.js +++ b/home.js @@ -84,24 +84,6 @@ window.onload = function() { } else { smallbtn5.className = "navbarbutton"; } - var alert = document.getElementById("alert") - var alerttext = document.getElementById("alerttext") - if (window.location.hostname == "") { - alerttext.innerHTML = "You are using this locally."; - alert.className = ""; - } else if (window.location.hostname == "thomasluigi07.github.io") { - alerttext.innerHTML = "You are using this on the github pages site."; - alert.className = ""; - } else if (window.location.hostname == "MORBLOX.com") { - alerttext.innerHTML = "You are using MORBLOX.com"; - alert.className = ""; - } else if (window.location.hostname == "morblox.us") { - alerttext.innerHTML = "You are using morblox.us"; - alert.className = ""; - } else { - alerttext.innerHTML = `You are using an unknown site (${window.location.hostname})`; - alert.className = ""; - } var username = localStorage.getItem("username"); var navbarsignedincontainer = document.getElementById("navbarsignedincontainer"); var navbarusername = document.getElementById("navbarusername"); diff --git a/index.js b/index.js index d6d9841..1b0f49a 100644 --- a/index.js +++ b/index.js @@ -87,24 +87,6 @@ window.onload = function() { } else { smallbtn5.className = "navbarbutton"; } - var alert = document.getElementById("alert") - var alerttext = document.getElementById("alerttext") - if (window.location.hostname == "") { - alerttext.innerHTML = "You are using this locally."; - alert.className = ""; - } else if (window.location.hostname == "thomasluigi07.github.io") { - alerttext.innerHTML = "You are using this on the github pages site."; - alert.className = ""; - } else if (window.location.hostname == "MORBLOX.com") { - alerttext.innerHTML = "You are using MORBLOX.com"; - alert.className = ""; - } else if (window.location.hostname == "morblox.us") { - alerttext.innerHTML = "You are using morblox.us"; - alert.className = ""; - } else { - alerttext.innerHTML = `You are using an unknown site (${window.location.hostname})`; - alert.className = ""; - } var usernamecontainer = document.getElementById("UsernameContainer"); var username = localStorage.getItem("username"); var navbarsignedincontainer = document.getElementById("navbarsignedincontainer"); diff --git a/main.css b/main.css index 3efb84c..d5389b8 100644 --- a/main.css +++ b/main.css @@ -95,6 +95,7 @@ body { margin-left: 0px; margin-right: 0px; margin-top: 0px; + margin-bottom: 35px; padding-bottom: 0px; } .content { diff --git a/main.js b/main.js index 6599c0a..b3b085f 100644 --- a/main.js +++ b/main.js @@ -75,24 +75,6 @@ window.onload = function() { } else { smallbtn5.className = "navbarbutton"; } - var alert = document.getElementById("alert") - var alerttext = document.getElementById("alerttext") - if (window.location.hostname == "") { - alerttext.innerHTML = "You are using this locally."; - alert.className = ""; - } else if (window.location.hostname == "thomasluigi07.github.io") { - alerttext.innerHTML = "You are using this on the github pages site."; - alert.className = ""; - } else if (window.location.hostname == "MORBLOX.com") { - alerttext.innerHTML = "You are using MORBLOX.com"; - alert.className = ""; - } else if (window.location.hostname == "morblox.us") { - alerttext.innerHTML = "You are using morblox.us"; - alert.className = ""; - } else { - alerttext.innerHTML = `You are using an unknown site (${window.location.hostname})`; - alert.className = ""; - } var username = localStorage.getItem("username"); var navbarsignedincontainer = document.getElementById("navbarsignedincontainer"); var navbarusername = document.getElementById("navbarusername");