Changed logo size, added admin panel, added log in text, added robots.txt, added link to main site

This commit is contained in:
Thomas G 2022-06-19 20:15:18 +10:00
parent 2d72996d80
commit 49963119e8
12 changed files with 110 additions and 11 deletions

View File

@ -18,7 +18,7 @@
<body> <body>
<header class="navbar"> <header class="navbar">
<a id="logo_full" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogo.png" width="200" height="40"/></a> <a id="logo_full" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogo.png" width="200" height="40"/></a>
<a id="logo_small" class="invisible" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogoshort.png" width="40" height="40"/></a> <a id="logo_small" class="invisible" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogoshort.png" width="45" height="40"/></a>
<div class="navbarbuttoncontainer"> <div class="navbarbuttoncontainer">
<a class="navbarbutton" href="home.html">Home</a> <a class="navbarbutton" href="home.html">Home</a>
<a class="navbarbutton" href="games.html">Games</a> <a class="navbarbutton" href="games.html">Games</a>

View File

@ -18,7 +18,7 @@
<body> <body>
<header class="navbar"> <header class="navbar">
<a id="logo_full" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogo.png" width="200" height="40"/></a> <a id="logo_full" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogo.png" width="200" height="40"/></a>
<a id="logo_small" class="invisible" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogoshort.png" width="40" height="40"/></a> <a id="logo_small" class="invisible" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogoshort.png" width="45" height="40"/></a>
<div class="navbarbuttoncontainer"> <div class="navbarbuttoncontainer">
<a class="navbarbutton" href="home.html">Home</a> <a class="navbarbutton" href="home.html">Home</a>
<a class="navbarbutton" href="games.html">Games</a> <a class="navbarbutton" href="games.html">Games</a>

View File

@ -14,11 +14,12 @@
<link rel="icon" type="image/x-icon" href="MORBLOX.ico"> <link rel="icon" type="image/x-icon" href="MORBLOX.ico">
<link rel="stylesheet" href="main.css"> <link rel="stylesheet" href="main.css">
<script src="main.js"></script> <script src="main.js"></script>
<script src="index.html"></script>
</head> </head>
<body> <body>
<header class="navbar"> <header class="navbar">
<a id="logo_full" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogo.png" width="200" height="40"/></a> <a id="logo_full" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogo.png" width="200" height="40"/></a>
<a id="logo_small" class="invisible" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogoshort.png" width="40" height="40"/></a> <a id="logo_small" class="invisible" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogoshort.png" width="45" height="40"/></a>
<div class="navbarbuttoncontainer"> <div class="navbarbuttoncontainer">
<a class="navbarbutton" href="home.html">Home</a> <a class="navbarbutton" href="home.html">Home</a>
<a class="navbarbutton" href="games.html">Games</a> <a class="navbarbutton" href="games.html">Games</a>
@ -45,6 +46,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><a href="https://morblox.us" id="morblox" class="invisible">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>

38
index.js Normal file
View File

@ -0,0 +1,38 @@
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() {
var alert = document.getElementById("alert")
var alerttext = document.getElementById("alerttext")
var morblox = document.getElementById("morblox")
if (window.location.hostname == "") {
alerttext.innerHTML = "You are using this locally.";
alert.className = "";
morblox.className = "";
} else if (window.location.hostname == "thomasluigi07.github.io") {
alerttext.innerHTML = "You are using this on the github pages site.";
alert.className = "";
morblox.className = "";
} else if (window.location.hostname == "MORBLOX.com") {
alerttext.innerHTML = "You are using MORBLOX.com";
alert.className = "";
morblox.className = "";
} else if (window.location.hostname == "morblox.us") {
alerttext.innerHTML = "You are using morblox.us";
alert.className = "";
morblox.className = "invisible";
} else {
alerttext.innerHTML = `You are using an unknown site (${window.location.hostname})`;
alert.className = "";
morblox.className = "";
}
};

View File

@ -18,7 +18,7 @@
<body> <body>
<header class="navbar"> <header class="navbar">
<a id="logo_full" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogo.png" width="200" height="40"/></a> <a id="logo_full" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogo.png" width="200" height="40"/></a>
<a id="logo_small" class="invisible" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogoshort.png" width="40" height="40"/></a> <a id="logo_small" class="invisible" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogoshort.png" width="45" height="40"/></a>
<div class="navbarbuttoncontainer"> <div class="navbarbuttoncontainer">
<a class="navbarbutton" href="home.html">Home</a> <a class="navbarbutton" href="home.html">Home</a>
<a class="navbarbutton" href="games.html">Games</a> <a class="navbarbutton" href="games.html">Games</a>

View File

@ -27,7 +27,7 @@
} }
.navbarlogincontainer { .navbarlogincontainer {
position: relative; position: relative;
padding-right: 5px; padding-right: 10px;
margin-right: 0px; margin-right: 0px;
margin-left: auto; margin-left: auto;
float: right; float: right;
@ -63,6 +63,7 @@
display: none !important; display: none !important;
} }
html { html {
margin: 0px;
font-family: "Helvetica"; font-family: "Helvetica";
src: url('Helvetica.ttf') format('truetype'),; src: url('Helvetica.ttf') format('truetype'),;
font-style: normal; font-style: normal;
@ -70,8 +71,8 @@ html {
color: white; color: white;
} }
body { body {
margin-left: 10px; margin-left: 0px;
margin-right: 10px; margin-right: 0px;
margin-top: 0px; margin-top: 0px;
} }
.content { .content {

View File

@ -2,7 +2,7 @@ window.addEventListener('resize', function() {
var logo_full = document.getElementById("logo_full") var logo_full = document.getElementById("logo_full")
var logo_small = document.getElementById("logo_small") var logo_small = document.getElementById("logo_small")
var viewport_width = window.innerWidth; var viewport_width = window.innerWidth;
if (viewport_width < 700) { if (viewport_width < 900) {
logo_full.className = "invisible"; logo_full.className = "invisible";
logo_small.className = ""; logo_small.className = "";
} else { } else {
@ -13,20 +13,26 @@ window.addEventListener('resize', function() {
window.onload = function() { window.onload = function() {
var alert = document.getElementById("alert") var alert = document.getElementById("alert")
var alerttext = document.getElementById("alerttext") var alerttext = document.getElementById("alerttext")
var morblox = document.getElementById("morblox")
if (window.location.hostname == "") { if (window.location.hostname == "") {
alerttext.innerHTML = "You are using this locally."; alerttext.innerHTML = "You are using this locally.";
alert.className = ""; alert.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."; alerttext.innerHTML = "You are using this on the github pages site.";
alert.className = ""; alert.className = "";
morblox.className = "";
} else if (window.location.hostname == "MORBLOX.com") { } else if (window.location.hostname == "MORBLOX.com") {
alerttext.innerHTML = "You are using MORBLOX.com"; alerttext.innerHTML = "You are using MORBLOX.com";
alert.className = ""; alert.className = "";
morblox.className = "";
} else if (window.location.hostname == "morblox.us") { } else if (window.location.hostname == "morblox.us") {
alerttext.innerHTML = "You are using morblox.us"; alerttext.innerHTML = "You are using morblox.us";
alert.className = ""; alert.className = "";
morblox.className = "invisible";
} else { } else {
alerttext.innerHTML = `You are using an unknown site (${window.location.hostname})`; alerttext.innerHTML = `You are using an unknown site (${window.location.hostname})`;
alert.className = ""; alert.className = "";
morblox.className = "";
} }
}; };

52
nimda/panel.html Normal file
View File

@ -0,0 +1,52 @@
<!DOCTYPE html>
<html lang="en-us">
<head>
<title>morblox.us</title>
<meta content="morblox.us" property="og:title"/>
<meta content="MORBLOX is a work in progress revival." property="og:description"/>
<meta content="https://thomasluigi07.github.io/MORBLOX-WEBSITE/" property="og:url"/>
<meta content="https://thomasluigi07.github.io/MORBLOX-WEBSITE/MORBLOXlogo.png" property="og:image"/>
<meta content="#4b4b4b" data-react-helmet="true" name="theme-color"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<link rel="apple-touch-icon" href="MORBLOX.png"/>
<link rel="apple-touch-startup-image" href="MORBLOXSplash.png"/>
<link rel="icon" type="image/x-icon" href="MORBLOX.ico">
<link rel="stylesheet" href="main.css">
<script src="main.js"></script>
</head>
<body>
<header class="navbar">
<a id="logo_full" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogo.png" width="200" height="40"/></a>
<a id="logo_small" class="invisible" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogoshort.png" width="45" height="40"/></a>
<div class="navbarbuttoncontainer">
<a class="navbarbutton" href="home.html">Home</a>
<a class="navbarbutton" href="games.html">Games</a>
<a class="navbarbutton" href="catalog.html">Catalog</a>
<a class="navbarbutton" href="build.html">Build</a>
<a class="navbarbutton" href="upgrade.html">Upgrade</a>
<a class="navbarbutton" href="forum.html">Forum</a>
</div>
<div class="navbarlogincontainer">
<p><a href="signup.html">Sign Up</a> or <a href="login.html">Log In</a>
</div>
</header>
<header class="smallnav">
<div class="smallnavbarbuttoncontainer">
<a class="smallnavbarbutton" href="profile.html">Profile</a>
<a class="smallnavbarbutton" href="avatar.html">Avatar</a>
<a class="smallnavbarbutton" href="Settings.html">Settings</a>
</div>
</header>
<header class="invisible" id="alert">
<p class="alerttext" id="alerttext">ALERT TEXT</p>
</header>
<div class="content">
<p>404 unauthorized</p>
</div>
<footer>
<a href="privacy.html">Privacy Policy</a>
<a href="tos.html">Terms of Service</a>
</footer>
</body>
</html>

View File

@ -18,7 +18,7 @@
<body> <body>
<header class="navbar"> <header class="navbar">
<a id="logo_full" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogo.png" width="200" height="40"/></a> <a id="logo_full" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogo.png" width="200" height="40"/></a>
<a id="logo_small" class="invisible" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogoshort.png" width="40" height="40"/></a> <a id="logo_small" class="invisible" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogoshort.png" width="45" height="40"/></a>
<div class="navbarbuttoncontainer"> <div class="navbarbuttoncontainer">
<a class="navbarbutton" href="home.html">Home</a> <a class="navbarbutton" href="home.html">Home</a>
<a class="navbarbutton" href="games.html">Games</a> <a class="navbarbutton" href="games.html">Games</a>

0
robots.txt Normal file
View File

View File

@ -18,7 +18,7 @@
<body> <body>
<header class="navbar"> <header class="navbar">
<a id="logo_full" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogo.png" width="200" height="40"/></a> <a id="logo_full" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogo.png" width="200" height="40"/></a>
<a id="logo_small" class="invisible" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogoshort.png" width="40" height="40"/></a> <a id="logo_small" class="invisible" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogoshort.png" width="45" height="40"/></a>
<div class="navbarbuttoncontainer"> <div class="navbarbuttoncontainer">
<a class="navbarbutton" href="home.html">Home</a> <a class="navbarbutton" href="home.html">Home</a>
<a class="navbarbutton" href="games.html">Games</a> <a class="navbarbutton" href="games.html">Games</a>

View File

@ -18,7 +18,7 @@
<body> <body>
<header class="navbar"> <header class="navbar">
<a id="logo_full" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogo.png" width="200" height="40"/></a> <a id="logo_full" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogo.png" width="200" height="40"/></a>
<a id="logo_small" class="invisible" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogoshort.png" width="40" height="40"/></a> <a id="logo_small" class="invisible" href="index.html"><img alt="MORBLOX Logo" src="MORBLOXlogoshort.png" width="45" height="40"/></a>
<div class="navbarbuttoncontainer"> <div class="navbarbuttoncontainer">
<a class="navbarbutton" href="home.html">Home</a> <a class="navbarbutton" href="home.html">Home</a>
<a class="navbarbutton" href="games.html">Games</a> <a class="navbarbutton" href="games.html">Games</a>