made link to published site more noticable, and removed unnessasary code from index.js as that only loads on 1 page.
This commit is contained in:
parent
f2934acb8d
commit
41b4cf9170
|
|
@ -47,7 +47,7 @@
|
||||||
<h1>WELCOME TO MORBLOX!!!</h1>
|
<h1>WELCOME TO MORBLOX!!!</h1>
|
||||||
<p>MORBLOX is a new revival of ROBLOX.</p>
|
<p>MORBLOX is a new revival of ROBLOX.</p>
|
||||||
<p><a href="signup.html">Sign Up</a> or <a href="login.html">Log In</a>
|
<p><a href="signup.html">Sign Up</a> or <a href="login.html">Log In</a>
|
||||||
<p id="morblox" class="invisible"><a href="https://morblox.us">Click Here</a> to go to the published site.</p>
|
<p id="morblox" class=""><a href="https://morblox.us">Click Here</a> to go to the published site.</p>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
<a href="privacy.html">Privacy Policy</a>
|
<a href="privacy.html">Privacy Policy</a>
|
||||||
|
|
|
||||||
24
index.js
24
index.js
|
|
@ -1,38 +1,14 @@
|
||||||
window.addEventListener('resize', function() {
|
|
||||||
var logo_full = document.getElementById("logo_full")
|
|
||||||
var logo_small = document.getElementById("logo_small")
|
|
||||||
var viewport_width = window.innerWidth;
|
|
||||||
if (viewport_width < 900) {
|
|
||||||
logo_full.className = "invisible";
|
|
||||||
logo_small.className = "";
|
|
||||||
} else {
|
|
||||||
logo_small.className = "invisible";
|
|
||||||
logo_full.className = "";
|
|
||||||
}
|
|
||||||
});
|
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
var alert = document.getElementById("alert")
|
|
||||||
var alerttext = document.getElementById("alerttext")
|
|
||||||
var morblox = document.getElementById("morblox")
|
var morblox = document.getElementById("morblox")
|
||||||
if (window.location.hostname == "") {
|
if (window.location.hostname == "") {
|
||||||
alerttext.innerHTML = "You are using this locally.";
|
|
||||||
alert.className = "";
|
|
||||||
morblox.className = "";
|
morblox.className = "";
|
||||||
} else if (window.location.hostname == "thomasluigi07.github.io") {
|
} else if (window.location.hostname == "thomasluigi07.github.io") {
|
||||||
alerttext.innerHTML = "You are using this on the github pages site.";
|
|
||||||
alert.className = "";
|
|
||||||
morblox.className = "";
|
morblox.className = "";
|
||||||
} else if (window.location.hostname == "MORBLOX.com") {
|
} else if (window.location.hostname == "MORBLOX.com") {
|
||||||
alerttext.innerHTML = "You are using MORBLOX.com";
|
|
||||||
alert.className = "";
|
|
||||||
morblox.className = "";
|
morblox.className = "";
|
||||||
} else if (window.location.hostname == "morblox.us") {
|
} else if (window.location.hostname == "morblox.us") {
|
||||||
alerttext.innerHTML = "You are using morblox.us";
|
|
||||||
alert.className = "";
|
|
||||||
morblox.className = "invisible";
|
morblox.className = "invisible";
|
||||||
} else {
|
} else {
|
||||||
alerttext.innerHTML = `You are using an unknown site (${window.location.hostname})`;
|
|
||||||
alert.className = "";
|
|
||||||
morblox.className = "";
|
morblox.className = "";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Loading…
Reference in New Issue