1// Custom JS for Cliff Valley Signature Theme 2// Schoolsite/Faithwebsites 3 4$('.search_button').click(function(){ 5 $(this).parent().toggleClass('active'); 6}); 7 8// Mobile Toggle Nav 9$('.togglemenu').click(function(){ 10 $('#mainnav').slideToggle(); 11 $('html').toggleClass('open_nav'); 12}); 13 14// Mobile Sub nav toggle 15$('.subnav_toggle').click(function(){ 16 $(this).toggleClass('open'); 17 $(this).parent().children('.drop_level2_wrapper').slideToggle(); 18 19 $(this).parent().siblings().children('.drop_level2_wrapper').slideUp(); 20 $(this).parent().siblings().children('.subnav_toggle').removeClass('open'); 21 22}); 23 24// Mobile Only 25if ( $(window).width() < 640 ){ 26 27 //Set max height for mobile nav 28 var utilitynavheight = $('.mobile_utility').outerHeight(); 29 var windowheight = $(window).innerHeight(); 30 var navmaxheight = windowheight - utilitynavheight - 96 - 128; 31 $('#topnav').css('max-height', navmaxheight); 32 33}
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.