Browse Source

added script to end of HTML now reading mobile sidemenu function

master
JoanaChicau 4 years ago
parent
commit
6972bebf93
  1. 5
      index.html
  2. 7
      narrowscripts.js

5
index.html

@ -250,5 +250,10 @@
</div> </div>
<script type="text/javascript" src="narrowscripts.js"></script>
</body> </body>
</html> </html>

7
narrowscripts.js

@ -43,6 +43,10 @@ $(function() {
} }
// SCRIPT MOBILE SIDEMENU HIDE
var x = window.matchMedia("(max-width: 768px)")
function fsidemobile(x) { function fsidemobile(x) {
if (x.matches) { // If media query matches if (x.matches) { // If media query matches
var element = document.getElementById("side"); var element = document.getElementById("side");
@ -52,10 +56,7 @@ $(function() {
} }
} }
var x = window.matchMedia("(max-width: 768px)")
fsidemobile(x) fsidemobile(x)
x.addListener(fsidemobile)
function hideshowWelcome() { function hideshowWelcome() {

Loading…
Cancel
Save