1(function($) { 2 $(function() { 3 4 $('body').updateAccordions(); 5 6 }); 7 8 $.fn.updateAccordions = function() { 9 10 $('.sc_accordion', this).each(function (index) { 11 12 var $accordion = $(this); 13 14 $accordion.scaliaPreloader(function() { 15 16 var $tabs, 17 interval = $accordion.attr("data-interval"), 18 active_tab = !isNaN($accordion.data('active-tab')) && parseInt($accordion.data('active-tab')) > 0 ? parseInt($accordion.data('active-tab')) - 1 : false, 19 collapsible = $accordion.data('collapsible') === 'yes'; 20 $tabs = $accordion.find('.sc_accordion_wrapper').accordion({ 21 header:"> div > .sc_accordion_header", 22 autoHeight:false, 23 heightStyle:"content", 24 active:active_tab, 25 collapsible: collapsible, 26 navigation:true, 27 activate: function(event, ui) { 28 if (ui.newPanel.size() > 0) { 29 ui.newPanel.trigger('accordion-update'); 30 } 31 }, 32 beforeActivate: function(event, ui) { 33 if (ui.newPanel.size() > 0) { 34 $("html, body").animate({ scrollTop: ui.newPanel.closest('.sc_accordion').offset().top - 200 }, 300); 35 } 36 } 37 }); 38 }); 39 40 }); 41 42 } 43 44})(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.