1jQuery(function($){ 2 $(document).ready(function(){ 3 4 // Responsive videos 5 $(".fitvids").fitVids(); 6 7 // Superfish dropdowns 8 $("ul.sf-menu").superfish({ 9 cssArrows: false, 10 delay: 200, 11 animation: {opacity:'show', height:'show'}, 12 speed: 'fast', 13 disableHI: true 14 }); 15 16 // back to top 17 $('a[href=#toplink]').click(function(){ 18 $('html, body').animate({scrollTop:0}, 200); 19 return false; 20 }); 21 22 // Comment scroll 23 $("li.comments-scroll a").click(function(event){ 24 event.preventDefault(); 25 $('html,body').animate({ scrollTop:$(this.hash).offset().top}, 'normal' ); 26 }); 27 28 // Lightbox 29 $(".prettyphoto-link").prettyPhoto({ 30 theme: 'pp_default', 31 animation_speed:'fast', 32 allow_resize: true, 33 keyboard_shortcuts: true, 34 show_title: false, 35 social_tools: false, 36 autoplay_slideshow: false 37 }); 38 39 $("a[rel^='prettyphoto']").prettyPhoto({ 40 theme: 'pp_default', 41 animation_speed:'fast', 42 allow_resize: true, 43 keyboard_shortcuts: true, 44 show_title: false, 45 slideshow:3000, 46 social_tools: false, 47 autoplay_slideshow: false, 48 overlay_gallery: true 49 }); 50 51 // Mobile menu 52 $("<select />").appendTo("#masternav"); 53 $("<option />", { 54 "selected": "selected", 55 "value" : "", 56 "text" : wpexLocalize.responsiveMenuText 57 }).appendTo("#masternav select"); 58 59 $("#masternav a").each(function() { 60 var el = $(this); 61 if(el.parents('.sub-menu').length >= 1) { 62 $('<option />', { 63 'value' : el.attr("href"), 64 'text' : '- ' + el.text() 65 }).appendTo("#masternav select"); 66 } 67 else if(el.parents('.sub-menu .sub-menu').length >= 1) { 68 $('<option />', { 69 'value' : el.attr('href'), 70 'text' : '-- ' + el.text() 71 }).appendTo("#masternav select"); 72 } 73 else { 74 $('<option />', { 75 'value' : el.attr('href'), 76 'text' : el.text() 77 }).appendTo("#masternav select"); 78 } 79 }); 80 $("#masternav select").change(function() { 81 window.location = $(this).find("option:selected").val(); 82 }); 83 84 $("#masternav select").uniform(); 85 86 }); 87});
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.