resources/www/scripts/explorer.js
function(script) {
      var id = script.id + '-Frame';
      var sibling = script.previousSibling;
      if (!sibling) return;
      var math = sibling.id !== id ? sibling.firstElementChild : sibling;
      Explorer.AddAria(math);
      Explorer.AddMouseEvents(math);
      if (math.className === 'MathJax_MathML') {
        math = math.firstElementChild;
      }
      if (!math) return;
      math.onkeydown = Explorer.Keydown;
      Explorer.Flame(math);
      math.addEventListener(
          Explorer.focusinEvent,
          function(event) {
            if (!Assistive.hook) return;
            if (!LiveRegion.announced) LiveRegion.Announce();
          });
      math.addEventListener(
          Explorer.focusoutEvent,
          function(event) {
            if (!Assistive.hook) return;
            // A fix for Edge.
            if (Explorer.ignoreFocusOut) {
              Explorer.ignoreFocusOut = false;
              if (Explorer.walker.moved === 'enter') {
                event.target.focus();
                return;
              }
            }
            if (Explorer.walker) Explorer.DeactivateWalker();
          });
      //
      if (Assistive.getOption('speech')) {
        Explorer.AddSpeech(math);
      }
      //
    }
function(script) {
      var id = script.id + '-Frame';
      var sibling = script.previousSibling;
      if (!sibling) return;
      var math = sibling.id !== id ? sibling.firstElementChild : sibling;
      Explorer.AddAria(math);
      Explorer.AddMouseEvents(math);
      if (math.className === 'MathJax_MathML') {
        math = math.firstElementChild;
      }
      if (!math) return;
      math.onkeydown = Explorer.Keydown;
      Explorer.Flame(math);
      math.addEventListener(
          Explorer.focusinEvent,
          function(event) {
            if (!Assistive.hook) return;
            if (!LiveRegion.announced) LiveRegion.Announce();
          });
      math.addEventListener(
          Explorer.focusoutEvent,
          function(event) {
            if (!Assistive.hook) return;
            // A fix for Edge.
            if (Explorer.ignoreFocusOut) {
              Explorer.ignoreFocusOut = false;
              if (Explorer.walker.moved === 'enter') {
                event.target.focus();
                return;
              }
            }
            if (Explorer.walker) Explorer.DeactivateWalker();
          });
      //
      if (Assistive.getOption('speech')) {
        Explorer.AddSpeech(math);
      }
      //
    }
function ( script ) { var id = script . id + '-Frame' ; var sibling = script . previousSibling ; if ( ! sibling ) return ; var math = sibling . id !== id ? sibling . firstElementChild : sibling ; Explorer . AddAria ( math ) ; Explorer . AddMouseEvents ( math ) ; if ( math . className === 'MathJax_MathML' ) { math = math . firstElementChild ; } if ( ! math ) return ; math . onkeydown = Explorer . Keydown ; Explorer . Flame ( math ) ; math . addEventListener ( Explorer . focusinEvent , function ( event ) { if ( ! Assistive . hook ) return ; if ( ! LiveRegion . announced ) LiveRegion . Announce ( ) ; } ) ; math . addEventListener ( Explorer . focusoutEvent , function ( event ) { if ( ! Assistive . hook ) return ; // A fix for Edge. if ( Explorer . ignoreFocusOut ) { Explorer . ignoreFocusOut = false ; if ( Explorer . walker . moved === 'enter' ) { event . target . focus ( ) ; return ; } } if ( Explorer . walker ) Explorer . DeactivateWalker ( ) ; } ) ; // if ( Assistive . getOption ( 'speech' ) ) { Explorer . AddSpeech ( math ) ; } // }
Adds a key event to an enriched jax.
Adds a key event to an enriched jax .