1(function($){"use strict";$.fn.avia_sc_tabs=function(options){var defaults={heading:'.tab',content:'.tab_content',active:'active_tab',sidebar:!1};var win=$(window),options=$.extend(defaults,options);return this.each(function(){var container=$(this),tab_titles=$('<div class="tab_titles" role="tablist"></div>').prependTo(container),tabs=$(options.heading,container),content=$(options.content,container),newtabs=!1,oldtabs=!1;newtabs=tabs.clone();oldtabs=tabs.addClass('fullsize-tab').attr({'aria-hidden':!0,'aria-selected':!1,id:'',role:'','aria-controls':'',tabindex:0});tabs=newtabs;tabs.prependTo(tab_titles).each(function(i){var tab=$(this),the_oldtab=!1;if(newtabs){the_oldtab=oldtabs.eq(i)} 2tab.addClass('tab_counter_'+i).attr({tab_counter:i}).on('click',function(){open_content(tab,i,the_oldtab);return!1});tab.on('keydown',function(objEvent){if(objEvent.keyCode===13){tab.trigger('click')}});if(newtabs){the_oldtab.on('click',function(){open_content(the_oldtab,i,tab);return!1});the_oldtab.on('keydown',function(objEvent){if(objEvent.keyCode===13){the_oldtab.trigger('click')}})}});set_size();trigger_default_open(!1);win.on("debouncedresize",set_size);$('a').on('click',function(){var hash=$(this).attr('href');if(typeof hash!="undefined"&&hash){hash=hash.replace(/^.*?#/,'');trigger_default_open('#'+hash)}});function set_size(){if(!options.sidebar){return} 3content.css({'min-height':tab_titles.outerHeight()+1})} 4function open_content(tab,i,alternate_tab){if(!tab.is('.'+options.active)){$('.'+options.active,container).removeClass(options.active).attr({'aria-selected':!1,tabindex:0});$('.'+options.active+'_content',container).removeClass(options.active+'_content').attr('aria-hidden',!0);tab.addClass(options.active).attr({'aria-selected':!0,tabindex:0});var new_loc=tab.data('fake-id');if(typeof new_loc=='string'){window.location.replace(new_loc)} 5if(alternate_tab){alternate_tab.addClass(options.active)} 6var active_c=content.eq(i).addClass(options.active+'_content').attr('aria-hidden',!1);if(typeof click_container!='undefined'&&click_container.length){sidebar_shadow.height(active_c.outerHeight())} 7var el_offset=active_c.offset().top,scoll_target=el_offset-50-parseInt($('html').css('margin-top'),10);if(win.scrollTop()>el_offset){$('html:not(:animated),body:not(:animated)').scrollTop(scoll_target)}} 8win.trigger('av-content-el-height-changed',tab)} 9function trigger_default_open(hash){if(!hash&&window.location.hash){hash=window.location.hash} 10if(!hash){return} 11var open=tabs.filter('[data-fake-id="'+hash+'"]');if(open.length){if(!open.is('.active_tab')){open.trigger('click')} 12window.scrollTo(0,container.offset().top-70)}}})}}(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.