function highlightReferencedFlag() {
  if (window.location.hash) {
    var el = document.querySelector(window.location.hash);
    if (el && !el.classList.contains('referenced')) {
      // Unhighlight whatever's highlighted.
      if (document.querySelector('.referenced'))
        document.querySelector('.referenced').classList.remove('referenced');
      // Highlight the referenced element.
      el.classList.add('referenced');

      // Switch to unavailable tab if the flag is in this section.
      if ($('tab-content-unavailable').contains(el)) {
        $('tab-available').parentNode.classList.remove('selected');
        $('tab-unavailable').parentNode.classList.add('selected');
      }
      el.scrollIntoView();
    }
  }
}
/**
 * Highlight an element associated with the page's location's hash. We need to
 * fake fragment navigation with '.scrollIntoView()', since the fragment IDs
 * don't actually exist until after the template code runs; normal navigation
 * therefore doesn't work.
 */
Highlight an element associated with the page's location's hash. We need to
fake fragment navigation with '.scrollIntoView()', since the fragment IDs
don't actually exist until after the template code runs; normal navigation
therefore doesn't work.
Highlight an element associated with the page ' s location ' s hash . We need to fake fragment navigation with ' . scrollIntoView () ' since the fragment IDs don ' t actually exist until after the template code runs ; normal navigation therefore doesn ' t work .
function highlightReferencedFlag() {
  if (window.location.hash) {
    var el = document.querySelector(window.location.hash);
    if (el && !el.classList.contains('referenced')) {
      if (document.querySelector('.referenced'))
        document.querySelector('.referenced').classList.remove('referenced');
      el.classList.add('referenced');
      if ($('tab-content-unavailable').contains(el)) {
        $('tab-available').parentNode.classList.remove('selected');
        $('tab-unavailable').parentNode.classList.add('selected');
      }
      el.scrollIntoView();
    }
  }
}
function highlightReferencedFlag ( ) { if ( window . location . hash ) { var el = document . querySelector ( window . location . hash ) ; if ( el && ! el . classList . contains ( 'referenced' ) ) { if ( document . querySelector ( '.referenced' ) ) document . querySelector ( '.referenced' ) . classList . remove ( 'referenced' ) ; el . classList . add ( 'referenced' ) ; if ( $ ( 'tab-content-unavailable' ) . contains ( el ) ) { $ ( 'tab-available' ) . parentNode . classList . remove ( 'selected' ) ; $ ( 'tab-unavailable' ) . parentNode . classList . add ( 'selected' ) ; } el . scrollIntoView ( ) ; } } }
Highlight an element associated with the page's location's hash.
Highlight an element associated with the page ' s location ' s hash .
// Unhighlight whatever's highlighted. // Highlight the referenced element. // Switch to unavailable tab if the flag is in this section.