Removed alert site detection
This commit is contained in:
parent
e07defdabb
commit
d120fa511a
18
home.js
18
home.js
|
|
@ -84,24 +84,6 @@ window.onload = function() {
|
||||||
} else {
|
} else {
|
||||||
smallbtn5.className = "navbarbutton";
|
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 username = localStorage.getItem("username");
|
||||||
var navbarsignedincontainer = document.getElementById("navbarsignedincontainer");
|
var navbarsignedincontainer = document.getElementById("navbarsignedincontainer");
|
||||||
var navbarusername = document.getElementById("navbarusername");
|
var navbarusername = document.getElementById("navbarusername");
|
||||||
|
|
|
||||||
18
index.js
18
index.js
|
|
@ -87,24 +87,6 @@ window.onload = function() {
|
||||||
} else {
|
} else {
|
||||||
smallbtn5.className = "navbarbutton";
|
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 usernamecontainer = document.getElementById("UsernameContainer");
|
||||||
var username = localStorage.getItem("username");
|
var username = localStorage.getItem("username");
|
||||||
var navbarsignedincontainer = document.getElementById("navbarsignedincontainer");
|
var navbarsignedincontainer = document.getElementById("navbarsignedincontainer");
|
||||||
|
|
|
||||||
1
main.css
1
main.css
|
|
@ -95,6 +95,7 @@ body {
|
||||||
margin-left: 0px;
|
margin-left: 0px;
|
||||||
margin-right: 0px;
|
margin-right: 0px;
|
||||||
margin-top: 0px;
|
margin-top: 0px;
|
||||||
|
margin-bottom: 35px;
|
||||||
padding-bottom: 0px;
|
padding-bottom: 0px;
|
||||||
}
|
}
|
||||||
.content {
|
.content {
|
||||||
|
|
|
||||||
18
main.js
18
main.js
|
|
@ -75,24 +75,6 @@ window.onload = function() {
|
||||||
} else {
|
} else {
|
||||||
smallbtn5.className = "navbarbutton";
|
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 username = localStorage.getItem("username");
|
||||||
var navbarsignedincontainer = document.getElementById("navbarsignedincontainer");
|
var navbarsignedincontainer = document.getElementById("navbarsignedincontainer");
|
||||||
var navbarusername = document.getElementById("navbarusername");
|
var navbarusername = document.getElementById("navbarusername");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue