1// JavaScript Document 2(function ($) { 3 $.fn.selftabs = function (options) { 4 var defaults = { 5 titclass: 'titdiv', 6 conclass: 'condiv', 7 subdiv: 'subdiv', 8 hoverclass: 'onli', 9 movestyle: 'click' 10 }; 11 var opts = $.extend({}, defaults, options); 12 var titdiv = $('.' + opts.titclass); 13 var condiv = $('.' + opts.conclass); 14 titdiv.find('ul:first').find('li').bind(opts.movestyle, function () { 15 var parentul = $(this).parent(); 16 var tab_index_li = parentul.find('li').index($(this)); 17 var parentdiv = parentul.parent(); 18 var tab_index_div = titdiv.index(parentdiv); 19 parentul.find('li').siblings().removeClass(opts.hoverclass).eq(tab_index_li).addClass(opts.hoverclass); 20 condiv.eq(tab_index_div).find('.' + opts.subdiv).siblings().hide().eq(tab_index_li).show(); 21 }); 22 } 23 $(function(){ 24 $(".ondiv,.ondiv1").show(); 25 }); 26})(jQuery);
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.