Lines Matching +refs:u +refs:e
24 addMenuOption: function(e, t) { argument
25 s[h.prefix + e] = t;
28 …e, t = MathJax.Hub.CombineConfig("explorer", h.defaults), a = Object.keys(t), i = 0; e = a[i]; i++…
29 h.setSpeechOption(), u.Reset();
31 setOption: function(e, t) { argument
32 s[h.prefix + e] !== t && (h.addMenuOption(e, t), u.Reset());
34 getOption: function(e) { argument
35 return s[h.prefix + e];
37 speechOption: function(e) { argument
38 h.oldrules !== e.value && (h.setSpeechOption(), u.Regenerate());
41 var e = s[h.prefix + "ruleset"], t = e.split("-");
46 }), h.oldrules = e;
48 Domain: function(e) { argument
49 switch (e) {
61 Enable: function(e, t) { argument
66 e && MathJax.Hub.Queue([ "Reprocess", MathJax.Hub ]);
68 Disable: function(e, t) { argument
76 DisableMenus: function(e) { argument
80 for (var a, i = (t = t.submenu).items, n = 2; a = i[n]; n++) a.disabled = e;
81 … e || !t.FindId("SpeechOutput") || s[h.prefix + "speech"] || (t.FindId("Subtitles").disabled = !0);
85 Dependent: function(e) { argument
86 this.dependents.push(e);
97 Show: function(e, t) { argument
99 …var a = e.getBoundingClientRect(), i = a.bottom + 10 + window.pageYOffset, n = a.left + window.pag…
104 Hide: function(e) { argument
110 Update: function(e) { argument
111 h.getOption("speech") && n.Update(this.inner, e);
142 Create: function(e) { argument
146 return t.setAttribute("aria-live", e), t;
148 Update: MathJax.Hub.Browser.isPC ? function(e, t) {
149 e.textContent = "", setTimeout(function() { field
150 e.textContent = t;
152 } : function(e, t) { argument
153 e.textContent = "", e.textContent = t;
156 var e;
157 …h.getOption("speech") && (n.announced = !0, MathJax.Ajax.Styles(n.styles), e = n.Create("polite"),
158 document.body.appendChild(e), n.Update(e, n.ANNOUNCE), setTimeout(function() {
159 document.body.removeChild(e);
164 …var e = MathJax.Ajax.fileURL(MathJax.Ajax.config.path.a11y), u = MathJax.Extension.explorer.Explor…
171 …earconFile: e + "/invalid_keypress" + (-1 !== [ "Firefox", "Chrome", "Opera" ].indexOf(MathJax.Hub…
179 u.FlameEnriched();
181 Register: function(e) { argument
183 …!h.hook || (t = document.getElementById(e[1])) && t.id && ((a = MathJax.Hub.getJaxFor(t.id)) && a.…
184 u.liveRegion.Add(), u.AddEvent(t)));
186 StateChange: function(e, t) { argument
187 u.GetHighlighter(.2);
188 var a = u.jaxCache[e];
189 a && a === t.root || (a && sre.Walker.resetState(e + "-Frame"), u.jaxCache[e] = t.root);
191 AddAria: function(e) { argument
192 e.setAttribute("role", "application"), e.setAttribute("aria-label", "Math");
195 u.RemoveHook(), u.hook = MathJax.Hub.Register.MessageHook("End Math", function(e) { argument
196 var t = e[1].id + "-Frame", a = document.getElementById(t);
197 i && t === u.expanded && (u.ActivateWalker(a, i), a.focus(), u.expanded = !1);
201 u.hook && (MathJax.Hub.UnRegister.MessageHook(u.hook), u.hook = null);
206 RemoveMessage: function(e) { argument
207 e && MathJax.Message.Clear(e);
209 AddEvent: function(e) { argument
210 var t, a = e.id + "-Frame", i = e.previousSibling;
211 i && (t = i.id !== a ? i.firstElementChild : i, u.AddAria(t), u.AddMouseEvents(t),
212 … "MathJax_MathML" === t.className && (t = t.firstElementChild), t && (t.onkeydown = u.Keydown,
213 u.Flame(t), t.addEventListener(u.focusinEvent, function(e) { argument
215 }), t.addEventListener(u.focusoutEvent, function(e) { argument
216 …h.hook && (u.ignoreFocusOut && (u.ignoreFocusOut = !1, "enter" === u.walker.moved) ? e.target.focu…
217 }), h.getOption("speech") && u.AddSpeech(t)));
219 AddSpeech: function(e) { argument
220 var t = e.id, a = MathJax.Hub.getJaxFor(t).root.toMathML();
221 …if (e.getAttribute("haslabel") || u.AddMathLabel(a, t), !e.getAttribute("hasspeech")) switch (Math…
223 u.AddSpeechEager(a, t);
227 …e.querySelectorAll("[data-semantic-complexity]").length >= h.eagerComplexity && u.AddSpeechEager(a…
230 AddSpeechLazy: function(e) { argument
232 t.setRebuilt(u.walker.getRebuilt()), t.getSpeech(u.walker.rootNode, u.walker.getXml()),
233 e.setAttribute("hasspeech", "true");
235 AddSpeechEager: function(e, t) { argument
236 u.MakeSpeechTask(e, t, sre.TreeSpeechGenerator, function(e, t) { argument
237 e.setAttribute("hasspeech", "true");
240 AddMathLabel: function(e, t) { argument
241 u.MakeSpeechTask(e, t, sre.SummarySpeechGenerator, function(e, t) { argument
242 e.setAttribute("haslabel", "true"), e.setAttribute("aria-label", t);
245 MakeSpeechTask: function(i, n, o, r, e) { argument
246 var s = u.AddMessage();
248 …var e = new o(), t = document.getElementById(n), a = new sre.DummyWalker(t, e, u.highlighter, i).s…
249 a && r(t, a), u.RemoveMessage(s);
250 }, e);
252 Keydown: function(e) { argument
253 var t = e.keyCode;
255 if (!u.walker) return;
256 return u.RemoveHook(), u.DeactivateWalker(), void o(e);
258 if (u.walker && u.walker.isActive()) {
259 … t = t === r.RETURN ? r.DASH : t, void 0 !== u.walker.modifier && (u.walker.modifier = e.shiftKey);
260 var a = u.walker.move(t);
263 if ("expand" === u.walker.moved) {
264 … if (u.expanded = u.walker.node.id, MathJax.Hub.Browser.isEdge) return u.ignoreFocusOut = !0,
265 void u.DeactivateWalker();
266 … if (MathJax.Hub.Browser.isFirefox || MathJax.Hub.Browser.isMSIE) return void u.DeactivateWalker();
268 u.liveRegion.Update(u.walker.speech()), u.Highlight();
269 } else u.PlayEarcon();
270 o(e);
272 var i = e.target;
273 … if (t === r.SPACE && !e.shiftKey) return MathJax.Extension.MathEvents.Event.ContextMenu(e, i),
274 void o(e);
275 if (h.hook && (t === r.RETURN || t === r.SPACE && e.shiftKey)) {
277 return u.ActivateWalker(i, n), u.AddHook(n), void o(e);
281 GetHighlighter: function(e) { argument
282 u.highlighter = sre.HighlighterFactory.highlighter({
284 alpha: e
293 AddMouseEvents: function(e) { argument
294 sre.HighlighterFactory.addEvents(e, {
295 mouseover: u.MouseOver,
296 mouseout: u.MouseOut
302 MouseOver: function(e) { argument
304 …"none" !== h.getOption("highlight") && ("hover" === h.getOption("highlight") && (t = e.currentTarg…
305 u.GetHighlighter(.1), u.highlighter.highlight([ t ]), u.hoverer = !0), o(e));
307 MouseOut: function(e) { argument
308 return u.hoverer && (u.highlighter.unhighlight(), u.hoverer = !1), o(e);
310 Flame: function(e) { argument
311 …if ("flame" === h.getOption("highlight")) return u.GetHighlighter(.05), u.highlighter.highlightAll…
312 void (u.flamer = !0);
315 u.flamer && (u.highlighter.unhighlightAll(), u.flamer = null);
318 u.UnFlame();
319 …for (var e, t = 0, a = MathJax.Hub.getAllJax(); e = a[t]; t++) u.Flame(e.SourceElement().previousS…
327 ActivateWalker: function(e, t) { argument
328 … h.getOption("speech"), i = h.getOption("walker") ? u.Walkers[MathJax.Hub.config.explorer.walker] …
334 }), u.GetHighlighter(.2), u.walker = new i(e, n, u.highlighter, t.root.toMathML()),
335 …a && !e.getAttribute("hasspeech") && u.AddSpeechLazy(e), u.walker.activate(), a && (h.getOption("s…
336 …u.liveRegion.Update(u.walker.speech())), u.Highlight(), u.ignoreFocusOut && setTimeout(function() {
337 u.ignoreFocusOut = !1;
341 …var e = sre.System.getInstance().engineSetup(), t = "clearspeak" === e.domain ? "default" : e.styl…
342 h.setOption("ruleset", e.domain + "-" + t), u.liveRegion.Clear(), u.liveRegion.Hide(),
343 u.Unhighlight(), u.currentHighlight = null, u.walker.deactivate(), u.walker = null;
346 u.Unhighlight(), u.highlighter.highlight(u.walker.getFocus().getNodes());
349 u.highlighter.unhighlight();
352 new Audio(u.earconFile).play();
355 u.Reset();
356 [ "Subtitles" ].forEach(function(e) { argument
357 var t = MathJax.Menu.menu.FindId("Accessibility", "Explorer", e);
359 }), u.Regenerate();
363 for (var e, t = 0, a = MathJax.Hub.getAllJax(); e = a[t]; t++) {
364 var i = document.getElementById(e.inputID + "-Frame");
369 for (var e, t = 0, a = MathJax.Hub.getAllJax(); e = a[t]; t++) {
370 var i = document.getElementById(e.inputID + "-Frame");
371 i && (i.removeAttribute("hasspeech"), u.AddSpeech(i));
375 var e = MathJax.Extension.collapsible;
376 e && e.Dependent(h), h.addDefaults();
383 var e, t = MathJax.Menu.ITEM, a = MathJax.Menu.menu, i = {
384 action: u.Reset
388 action: function(e) { argument
392 action: u.SpeechOutput
396 …r ? null !== (e = r.IndexOfId("Explorer")) ? r.items[e] = o : (e = r.IndexOfId("CollapsibleMath"),
397 … r.items.splice(e + 1, 0, o)) : (e = a.IndexOfId("CollapsibleMath"), a.items.splice(e + 1, 0, o)),
407 var t, e = MathJax.OutputJax.SVG;
408 parseFloat(e.version) < 2.7 && (t = e.getJaxFromMath, e.Augment({
409 getJaxFromMath: function(e) { argument
410 return e.parentNode.className.match(/MathJax_SVG_Display/) && (e = e.parentNode),
411 t.call(this, e);