1jQuery.noConflict()(function($){ 2 3/* =============================================== 4 Mobile menu with Tinynav Plugin 5 =============================================== */ 6 7 if ( $('nav#mainmenu ul:first .current-menu-item').length ) { 8 9 $('nav#mainmenu ul:first').tinyNav({ 10 active: 'current-menu-item', 11 }); 12 13 } else { 14 15 $('nav#mainmenu ul:first').tinyNav({ 16 header: 'Select an item', 17 }); 18 19 } 20 21/* =============================================== 22 Scroll to Top Plugin 23 =============================================== */ 24 25 $(window).scroll(function() { 26 if( $(window).scrollTop() > 500 ) { 27 $('#back-to-top').fadeIn(500); 28 } else { 29 $('#back-to-top').fadeOut(500); 30 } 31 }); 32 33 $('#back-to-top').click(function(){ 34 $('html').animate({ 35 scrollTop: 0 36 }, 0); 37 38 return false; 39 }); 40 41 42/* =============================================== 43 Menu code 44 =============================================== */ 45 46 $('nav#mainmenu li').hover( 47 function () { 48 $(this).children('ul').stop(true, true).fadeIn(100); 49 50 }, 51 function () { 52 $(this).children('ul').stop(true, true).fadeOut(400); 53 } 54 55 56 ); 57 58 $('nav#mainmenu ul > li').each(function(){ 59 if( $('ul', this).length > 0 ) 60 $(this).children('a').append('<span class="sf-sub-indicator"> <i class="icon-angle-down"></i> </span>').removeAttr("href"); 61 }); 62 63 $('nav#widgetmenu ul > li').each(function(){ 64 if( $('ul', this).length > 0 ) 65 $(this).children('a').append('<span class="sf-sub-indicator"> »</span>').removeAttr("href"); 66 }); 67 68 $('nav#widgetmenu ul > li ul').click(function(e){ 69 e.stopPropagation(); 70 }) 71 72 .filter(':not(:first)') 73 .hide(); 74 75 $('nav#widgetmenu ul > li, nav#widgetmenu ul > li > ul > li').click(function(){ 76 77 var selfClick = $(this).find('ul:first').is(':visible'); 78 if(!selfClick) { 79 $(this).parent().find('> li ul:visible').slideToggle('low'); 80 81 82 } 83 84 $(this).find('ul:first').stop(true, true).slideToggle(); 85 86 }); 87 88/* =============================================== 89 Overlay code 90 =============================================== */ 91 92 $('.overlay-image.blog-thumb').hover(function(){ 93 94 var imgwidth = $(this).children('img').width(); 95 var imgheight = $(this).children('img').height(); 96 $(this).children('.link').css({'width':imgwidth,'height':imgheight}); 97 $(this).css({'width':imgwidth}); 98 99 $('.overlay',this).animate({ opacity : 0.4 },{queue:false}); 100 }, 101 function() { 102 $('.overlay',this).animate({ opacity: 0.0 },{queue:false}); 103 104 }); 105 106 $('.gallery img').hover(function(){ 107 $(this).animate({ opacity: 0.50 },{queue:false}); 108 }, 109 function() { 110 $(this).animate({ opacity: 1.00 },{queue:false}); 111 }); 112 113/* =============================================== 114 Prettyphoto code 115 =============================================== */ 116 117 $("a[data-rel^='prettyPhoto']").prettyPhoto({ 118 119 animationSpeed:'fast', 120 slideshow:5000, 121 theme:'pp_default', 122 show_title:false, 123 overlay_gallery: false, 124 social_tools: false 125 }); 126 127});
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.