1jQuery(document).ready(function($) { 2 jQuery(".search-field").click(function() { 3 jQuery(".search-field").val(""); 4 }); 5 6 jQuery('body').hasClass('no-touch') ? event = 'mouseenter mouseleave' : event = 'click'; 7 8 $(".spoiler-title").each(function(){ 9 $(this).click( function() { 10 $(this).siblings(".mc_spoiler .content").slideToggle(1000); 11 $(this).toggleClass("active"); 12 }); 13 }); 14 15 jQuery( "a.scrollLink" ).click(function( event ) { 16 event.preventDefault(); 17 jQuery("html, body").animate({ scrollTop: jQuery(jQuery(this).attr("href")).offset().top -36}, 500); 18 }); 19 20 if(location.hash!="") { 21 jQuery("SECTION"+location.hash+ " DIV.content").show(); 22 } 23 24 //jQuery( ".responsive-menu a" ).click(function( event ) { 25 // showmobilemenu(); 26 //}); 27 28}); 29 30function showmobilemenu() { 31 //jQuery(".responsive-menu").animate({ 32 // width: "toggle" 33 //}); 34 35 if(!jQuery('.responsive-menu').is(':visible')) jQuery('.responsive-menu').slideDown( "slow", function() { }); 36 else jQuery('.responsive-menu').slideUp( "slow", function() { }); 37} 38 39function showmobilesubmenu(menu) { 40 if(!jQuery('.responsive-menu-'+menu).is(':visible')) jQuery('.responsive-menu-'+menu).slideDown( "slow", function() { }); 41 else jQuery('.responsive-menu-'+menu).slideUp( "slow", function() { }); 42} 43 44 45jQuery(document).ready(function(){ 46 jQuery('.mobilemenu li.menu-item-has-children').each(function(){ // Each menu item with children 47 jQuery(this).on('click',function(){ // ...When clicked 48 jQuery(this).find('.sub-menu').slideToggle(); 49 }).children('.sub-menu').click(function (event) { 50 event.stopPropagation(); 51 }); 52 }); 53 54}); 55 56 57jQuery(document).ready(function(){ 58 jQuery(".slide-toggle").click(function(){ 59 jQuery(".responsive-menu").animate({ 60 width: "toggle" 61 }); 62 }); 63});
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.