1jQuery(function () { 2 jQuery('.nav-tab').on('click', function () { 3 var id = jQuery(this).data('id'); 4 jQuery('.tab-content').hide(); 5 jQuery('#tab-' + id).show(); 6 7 jQuery('.nav-tab').removeClass('nav-tab-active'); 8 jQuery(this).addClass('nav-tab-active'); 9 10 // change URL hash 11 history.pushState('', '', location.href.split('#')[0] + '#' + id); 12 13 var dialog = jQuery('#contextual-help-columns'); 14 jQuery(dialog).trigger('helptab_focus', { focused: id }); 15 16 }); 17 18 if (location.hash) { 19 // change tab if URL has anchor"#" 20 var targetTab = jQuery('.nav-tab[data-id="' + location.hash.substring(1) + '"]'); 21 if (targetTab.length) { 22 targetTab.click(); 23 24 var dialog = jQuery('#contextual-help-columns'); 25 jQuery(dialog).trigger('helptab_focus', { focused: location.hash.substring(1) }); 26 27 } else { 28 jQuery('.nav-tab').first().click(); 29 } 30 } else { 31 // if not hash and no tab is dsplayed, click first tab 32 var activeTabs = jQuery('.nav.nav-tab-wrapper .nav-tab.nav-tab-active'); 33 if (activeTabs.length == 0) { 34 jQuery('.nav.nav-tab-wrapper a.nav-tab').first().click(); 35 } 36 } 37 38});
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.