1$(function(){ 2 initTabs(); 3 4 function initTabs(){ 5 const TRANSITION_DELAY = 0; 6 let $tab = $(".js-section-timeline-tab"), 7 $content = $(".js-section-timeline-content"); 8 9 $tab.on("click", function(){ 10 let $tabItem = $(this); 11 if(!$tabItem.hasClass("active")){ 12 if($tab.hasClass("active")){ 13 $tab.removeClass("active"); 14 } 15 $content.each((index, item) => { 16 let $contentItem = $(item); 17 $contentItem.fadeOut(TRANSITION_DELAY); 18 setTimeout(() => { 19 }, TRANSITION_DELAY); 20 $contentItem.removeClass("active"); 21 if($contentItem.data("tab") === $tabItem.data("tab")){ 22 $contentItem.fadeIn(TRANSITION_DELAY); 23 setTimeout(() => { 24 }, TRANSITION_DELAY); 25 $contentItem.addClass("active"); 26 } 27 }); 28 $tabItem.addClass("active"); 29 $(".js-section-timeline-active-year").html($tabItem.html()); 30 $(".js-section-timeline-detail").attr("href", $tabItem.data("detail")); 31 } 32 }); 33 } 34});
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.