1"use strict"; 2 3$j(document).ready(function () { 4 5 // Is it a main navigation click or should it be closed 6 $j(document).click(function (event) { 7 8 var clickover = $j(event.target); 9 //console.log(clickover); 10 var _opened = $j("header").hasClass("open"); 11 12 if (!clickover.is("#btn-nav")) { 13 if (clickover.closest('#navigation').length || clickover.closest('.search-container').length) {} else { 14 if (_opened) { 15 // Menu is open and its outside of the main naigation - needs to close 16 $j("#navigation").slideToggle("fast", function () { 17 $j('header').removeClass('open').addClass('closed'); 18 }); 19 } 20 } 21 } 22 }); 23 24 // Toggles the Menu Open status 25 26 $j("#btn-nav").click(function () { 27 if ($j("header").hasClass("open")) { 28 29 $j("#navigation").slideToggle("fast", function () { 30 $j('header').removeClass('open').addClass('closed'); 31 }); 32 } else { 33 34 $j("#navigation").slideToggle("fast", function () { 35 $j('header').removeClass('closed').addClass('open'); 36 }); 37 } 38 }); 39 40 // Added functionality for the icon nav 41 $j(".icon-nav-control").click(function () { 42 $j(".icon-nav").toggleClass("open"); 43 $j(".icon-nav-control").toggleClass("open"); 44 }); 45}); 46
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.