]> iEval git - gruntmaster-page.git/blobdiff - js/90-mobilenav.js
Merge branch 'master' into newmc
[gruntmaster-page.git] / js / 90-mobilenav.js
index ad354ac9f273932762a934a6de1b7aee78c74c03..abba03e4fd3be93830be82d3d9b081513680f5f2 100644 (file)
@@ -2,11 +2,11 @@
        'use strict';
 
        $( document ).ready(function(){
-               if(document.body.clientWidth >= 768)
+               if(window.innerWidth >= 768)
                        return;
                $('#title').before('<div class="text-center">Tap title to toggle menu</div>');
                $('nav').addClass('hidden');
-               $('#title').on('click', function () {
+               $('#title,#logo').on('click', function () {
                        $('nav').toggleClass('hidden');
                });
        });
This page took 0.024638 seconds and 4 git commands to generate.