added invisible tag to small logo so it wont appear until resize
This commit is contained in:
parent
0405f1f6e1
commit
06c1a95604
|
|
@ -18,7 +18,7 @@
|
|||
<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" 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="40" height="40"/></a>
|
||||
<div class="navbarbuttoncontainer">
|
||||
<a class="navbarbutton" href="home.html">Home</a>
|
||||
<a class="navbarbutton" href="games.html">Games</a>
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
<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" 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="40" height="40"/></a>
|
||||
<div class="navbarbuttoncontainer">
|
||||
<a class="navbarbutton" href="home.html">Home</a>
|
||||
<a class="navbarbutton" href="games.html">Games</a>
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
<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" 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="40" height="40"/></a>
|
||||
<div class="navbarbuttoncontainer">
|
||||
<a class="navbarbutton" href="home.html">Home</a>
|
||||
<a class="navbarbutton" href="games.html">Games</a>
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
<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" 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="40" height="40"/></a>
|
||||
<div class="navbarbuttoncontainer">
|
||||
<a class="navbarbutton" href="home.html">Home</a>
|
||||
<a class="navbarbutton" href="games.html">Games</a>
|
||||
|
|
|
|||
2
main.js
2
main.js
|
|
@ -2,7 +2,7 @@ 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 < 625) {
|
||||
if (viewport_width < 700) {
|
||||
logo_full.className = "invisible";
|
||||
logo_small.className = "";
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
<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" 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="40" height="40"/></a>
|
||||
<div class="navbarbuttoncontainer">
|
||||
<a class="navbarbutton" href="home.html">Home</a>
|
||||
<a class="navbarbutton" href="games.html">Games</a>
|
||||
|
|
|
|||
Loading…
Reference in New Issue