1define(['jquery','fc/utils','slabtext','fc/fccarousel'],function($,fc_utils){var slab_config={'noResizeEvent':true,'postTweak':true,'maxFontSize':100};function slab_text(parent){if(document.documentElement.clientWidth<=480){return;} 2if(!parent){parent=$(document);} 3parent.find('h5 > a').slabText(slab_config);} 4function slab_text_initial(){if(document.documentElement.clientWidth<=480){return;} 5$('.subsections .bundle h5 a').slabText(slab_config);$('#subsections-slider').trigger('change-size');} 6function slab_text_once(parent){if(document.documentElement.clientWidth<=480){return;} 7if(!parent){parent=$(document);} 8if(parent.find('h5 > a').not('.slabtextdone').length>0){parent.find('h5 > a').not('.slabtextdone').slabText(slab_config);}} 9function more_bundles(subsection,async,callback,anyway){if(subsection.hasClass('more-bundles-complete')||subsection.hasClass('more-bundles-completing')){return false;} 10subsection.addClass('more-bundles-completing');var last_bundle=subsection.find('.bundle').last();data={};if(last_bundle.data('offset')){data['offset']=last_bundle.data('offset');} 11var xhr=$.ajax({url:fc_utils.urls.get('more_bundles_of_subsection',[],{'section_slug':last_bundle.data('section-slug'),'last_bundle_slug':last_bundle.data('last-bundle-slug')}),data:data,async:async,success:function(html){last_bundle.after(html);subsection.addClass('more-bundles-complete').removeClass('more-bundles-completing');if(typeof callback!="undefined"){callback();}}});return true;} 12function real_init(){$.fn.reverse=[].reverse;if(document.fc_fontloaded){slab_text_initial();}else{setTimeout(function(){slab_text_initial();},100);} 13$(function(){$('#subsections-selection span').on('click',function(e){e.preventDefault();var $subsection=$('.subsections .subsection').eq($(this).data('index'));var subsection_index=$(this).data('index');var goToSubsection=function(){$('#subsections-slider').trigger('goTo',[subsection_index]);_gaq.push(['_trackEvent','Section','Go to subsection',""+subsection_index]);} 14if($subsection.hasClass('more-bundles')){var executed=more_bundles($subsection,false,function(){slab_text_once($subsection);$('#subsections-slider').trigger('change-size');goToSubsection();});if(!executed){goToSubsection();}} 15else{goToSubsection();}});$('#subsections-slider').on('changedElement',function(e,index){$('#subsections-selection span').removeClass('active').filter('span[data-index='+index+']').addClass('active');});$('#subsections-slider').fcCarousel({centeredTitle:'h4',shadow:true,wheel:false});$('.subsections .subsection.more-bundles').each(function(){var $subsection=$(this);more_bundles($subsection,true,function(){slab_text_once($subsection);$('#subsections-slider').trigger('change-size');});});});} 16function init(){if(respond.mediaQueriesSupported===false){respond.setAfterFirstApply(function(){real_init();});}else{real_init();}} 17return{'init':init};});
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.