1/* 2* Tabs popular posts and latest posts 3* Copyright (C) 2011 - 2019 www.gopiplus.com 4* http://www.gopiplus.com/work/2012/11/24/wordpress-plugin-tabs-widget-popular-posts-and-latest-posts/ 5* License: GPLv2 or later 6*/ 7 8$j = jQuery.noConflict(); 9 10$j(document).ready(function(){ 11 12 // UL = .TabsPostsTabs 13 // Tab contents = .TabsPostsInside 14 15 var tag_cloud_class = '#tag-cloud'; 16 17 var tag_cloud_height = jQuery('#tag-cloud').height(); 18 19 jQuery('.TabsPostsInside ul li:last-child').css('border-bottom','0px') // remove last border-bottom from list in tab conten 20 jQuery('.TabsPostsTabs').each(function(){ 21 jQuery(this).children('li').children('a:first').addClass('selected'); // Add .selected class to first tab on load 22 }); 23 jQuery('.TabsPostsInside > *').hide(); 24 jQuery('.TabsPostsInside > *:first-child').show(); 25 26 27 jQuery('.TabsPostsTabs li a').click(function(evt){ // Init Click funtion on TabsPostsTabs 28 29 var clicked_tab_ref = jQuery(this).attr('href'); // Strore Href value 30 31 jQuery(this).parent().parent().children('li').children('a').removeClass('selected'); //Remove selected from all TabsPostsTabs 32 jQuery(this).addClass('selected'); 33 jQuery(this).parent().parent().parent().children('.TabsPostsInside').children('*').hide(); 34 35 jQuery('.TabsPostsInside ' + clicked_tab_ref).fadeIn(500); 36 37 evt.preventDefault(); 38 39 }) 40 41})
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.