jQuery(document).ready(TabbedDisplay); function TabbedDisplay() { jQuery('.tabbed-items').children().addClass('tabbed-item'); jQuery('.tabbed-item').eq(0).addClass('selectedTab'); jQuery('.onnet-tabs-nav li').eq(0).addClass('selectedTab'); jQuery('.onnet-tabs-nav li').on('click',function() { var tabindex = jQuery(this).index(); jQuery('.onnet-tabs-nav li').removeClass('selectedTab'); jQuery('.tabbed-item').removeClass('selectedTab'); jQuery(this).addClass('selectedTab'); jQuery('.tabbed-item').eq(tabindex).addClass('selectedTab'); }); } /* playback timings (ms): LoadShardBlock: 145.779 (3) esindex: 0.008 captures_list: 168.816 CDXLines.iter: 14.044 (3) PetaboxLoader3.datanode: 1276.01 (5) exclusion.robots: 0.166 exclusion.robots.policy: 0.154 RedisCDXSource: 4.504 PetaboxLoader3.resolve: 420.431 (2) load_resource: 1569.254 */