1(function($){ 2 "use strict"; 3 4 $(document).ready(function(){ 5 6 $('select#display_name').wrap('<div class="kingster-lp-combobox" ></div>'); 7 8 $('#learn-press-course-tabs').each(function(){ 9 var tab_head = $(this).find('.learn-press-nav-tabs'); 10 var tab_slide_bar = $(this).find('.kingster-tab-slidebar'); 11 12 // init 13 var slide_bar_width = tab_head.children('.active').outerWidth(); 14 var slide_bar_pos = tab_head.children('.active').position().left; 15 tab_slide_bar.css({ 'width': slide_bar_width, 'margin-left': slide_bar_pos }); 16 17 $(window).on('load, resize', function(){ 18 slide_bar_width = tab_head.children('.active').outerWidth(); 19 slide_bar_pos = tab_head.children('.active').position().left; 20 tab_slide_bar.css({ 'width': slide_bar_width, 'margin-left': slide_bar_pos }); 21 }); 22 23 // hover 24 tab_head.children().hover(function(){ 25 tab_slide_bar.animate({ 'width': $(this).outerWidth(), 'margin-left': $(this).position().left }, { duration: 200, queue: false }); 26 }, function(){ 27 tab_slide_bar.animate({ 'width': slide_bar_width, 'margin-left': slide_bar_pos }, { duration: 200, queue: false }); 28 }); 29 30 31 //click 32 tab_head.children().click(function(){ 33 slide_bar_width = $(this).outerWidth(); 34 slide_bar_pos = $(this).position().left; 35 tab_slide_bar.animate({ 'width': slide_bar_width, 'margin-left': slide_bar_pos }, { duration: 200, queue: false }); 36 }); 37 }); 38 }); 39 40 41})(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.