1jQuery(document).ready(function($) { 2 3 "use strict"; 4 5 // Tabs 6 7 //When page loads... 8 $('.tabs-wrapper').each(function() { 9 $(this).find(".tab_content").hide(); //Hide all content 10 $(this).find("ul.tabs li:first").addClass("active").show(); //Activate first tab 11 $(this).find(".tab_content:first").show(); //Show first tab content 12 }); 13 14 //On Click Event 15 $("ul.tabs li").click(function(e) { 16 $(this).parents('.tabs-wrapper').find("ul.tabs li").removeClass("active"); //Remove any "active" class 17 $(this).addClass("active"); //Add "active" class to selected tab 18 $(this).parents('.tabs-wrapper').find(".tab_content").hide(); //Hide all tab content 19 20 var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content 21 $(this).parents('.tabs-wrapper').find(activeTab).fadeIn(); //Fade in the active ID content 22 23 e.preventDefault(); 24 }); 25 26 $("ul.tabs li a").click(function(e) { 27 e.preventDefault(); 28 }) 29 30 /** Mobile specific */ 31 if( $('body.responsive').length ) { 32 33 // Mobile menu 34 jQuery(document).ready(function () { 35 jQuery('#navigation').meanmenu({ 36 meanScreenWidth: "960", 37 meanRevealPosition: "left" 38 }); 39 }); 40 41 } 42 43 /*** Gallery ***/ 44 jQuery('a.post-gallery').colorbox({rel:"gallery-group"}); 45 46 // Flex Slider 47 jQuery(window).load(function($){ 48 49 if(hick.is_single) { 50 jQuery('.flexslider').flexslider({ 51 animation: "slide", 52 controlNav: 'thumbnails', 53 }); 54 } else { 55 jQuery('.main-slider').flexslider({ 56 animation: "slide", 57 controlNav: false, 58 }); 59 } 60 61 jQuery('.short-slider').flexslider({ 62 animation: "slide", 63 directionNav: true, 64 controlNav: true, 65 }); 66 67 }); 68 69 // Google Plus Button 70 var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; 71 po.src = 'https://apis.google.com/js/plusone.js'; 72 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); 73 74 // Search 75 76 $('#top_search a').on('click', function ( e ) { 77 e.preventDefault(); 78 $('.show-search').slideToggle('fast'); 79 }); 80 81});
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.