instiki/public/MathJax/jax/output/NativeMML/jax.js

19 lines
7.7 KiB
JavaScript
Raw Normal View History

/*
* ../SourceForge/trunk/mathjax/jax/output/NativeMML/jax.js
*
* Copyright (c) 2010 Design Science, Inc.
*
* Part of the MathJax library.
* See http://www.mathjax.org for details.
*
* Licensed under the Apache License, Version 2.0;
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*/
MathJax.Unpack([
['(','function(','b,a,e,d){var c=e.Browser.isMSIE;','a.Augment({','LEFTBUTTON',':(c?1:0),MENUKEY:"altKey",','noContextMenuBug',':e.Browser.isKonequeror,msieQuirks:(c&&!(document.compatMode==="BackCompat")),','config:{styles',':{}},settings:','e.config.menuSettings',',Startup:','function(){','return ','MathJax.','Ajax.Styles(','this.config.','styles)},Config:',12,'this.SUPER(arguments).Config','.call(this',');if(','this.settings.scale','){',16,'scale=',22,'}},Translate:',1,'h){if(!h','.parentNode','){return','}var l=h','.previousSibling',';if(l&&String(l.className).match(/^MathJax(_MathML|_Display)?$/)){l',30,'.removeChild(','l)}var k=h.',14,'elementJax.root;var j=(k.Get("display")==="block"?"div":"span");var i=document.','createElement','(j),g=i;i.className="','MathJax_MathML','";i.style.fontSize=',16,'scale+"%";if(c){g=','MathJax.HTML.addElement(','i,"span",{className:"MathJax_MathContainer",','style:{display:"inline-block",','position:"relative','"}})}k.','toNativeMML(','g);h',30,'.insertBefore(i,h);if(c){if(',16,'showMathMenuMSIE){this.MSIEoverlay(i)}}else{k=i','.firstChild',';k.','oncontextmenu','=this.','ContextMenu',';k.','onmouseover',60,'Mouseover',';k.','onmousedown',60,'Mousedown;k.onclick',60,'Click',';k.','ondblclick',60,'DblClick','}},Remove:',1,'g){','var h=','g.SourceElement();if(!h',31,'}h=h',33,';if(!h',31,'}if(h.className.match(/',42,'/)){h',30,36,'h)}},MMLnamespace:"http://www.w3.org/1998/Math/MathML",MSIEoverlay:',1,'n){var m=n',57,';','n.style.position','="absolute";var o','=n.scrollHeight',',i=n.offsetWidth;var k=',46,'n,"img",{src:"about:blank",style:{','width:0,height:','o+"px"}});var g',98,'-o;n',36,'k);',96,'="";var l,j,h=(n',30,'.nodeName.toLowerCase()==="','div");if(h&&this.quirks){l=-o;j=Math.floor(-i/2)}else{l=g-o,j=-i}',46,'n,"span",{',48,102,'0,',49,'"}},[["span",{',48,'position:"absolute",left:j+"px",top:l+"px",width:m.offsetWidth+"px",height:o+"px",cursor:"pointer","background-color":"white",filter:"alpha(opacity=0)"},',67,':this.MSIEevent',',',59,123,',onclick',123,',onmousemove',123,',',73,123,',',63,123,',onmouseout',123,'}]])},MSIEmath:',1,'g){',79,'g',30,33,57,';return(h',111,'span"?h',57,':h)},MSIEevent:',12,79,'a.MSIEmath(this);var g','=window.event',';var i=a["MSIE"+g.type];if(i&&i.call(a,g,h,this)){','return false','}h.fireEvent("on"+g.type,g);',157,'},MSIEmousedown:',1,'i,h,g){if(','i[this.MENUKEY]&&i.button===this.',4,'&&this','.settings.context','!=="','MathJax"){this.trapUp=this.trapClick=true;this.ContextMenu.call(g,i,true);return true}','if(','this.MSIEzoomKeys','&&',170,'(i)){this.trapUp=true;',13,'true}',157,'},MSIEcontextmenu:',1,162,'this',166,'==="',168,157,'},',61,':',1,'j,k','){if(a.config.showMathMenu','&&(a',166,'==="MathJax','"||k)){if(a.safariContextMenuBug','){setTimeout("','window.getSelection().empty()",0)}',79,14,'Menu;if(h){if(','document.selection',195,200,'.empty()",0)}var g=(c?this',30,30,'.nextSibling',':this',30,206,');h.jax=e.getJaxFor(g);h.menu.items[1].menu.items[1].name=(','h.jax.inputJax.id','==="MathML"?"Original":',211,');','delete ','a.trapClick;',215,'a.trapUp;',13,'h.menu.Post(j)}else{if(!','d.loadingMathMenu','){',221,'=true;if(!j){j',155,'}var i={pageX:j.pageX,pageY:j.pageY,clientX:j.clientX,clientY:j.clientY};',14,'Callback.Queue(','d.Require("[MathJax]/extensions/','MathMenu.js"),',12,215,221,'},[this,arguments.callee,i,k])}if(!j){j',155,'}if(','j.preventDefault','){',237,'()}if(','j.stopPropagation','){',241,'()}j.cancelBubble=true;j.returnValue=false;',157,'}}},Mousedown:',1,'g',190,'){if(!g){g',155,'}if(a',166,193,'"){if(!a.',6,'||g.button!==2',31,'}}else{if(!g[a.MENUKEY]||g.button!==a.',4,31,'}}',13,'a.',61,20,',g,true)}},',65,':',1,'g){a.HandleEvent(g,"',65,'",this)},',71,':',1,271,71,273,75,':',1,271,75,273,'HandleEvent:',1,'i,g,h){},NAMEDSPACE:{negativeveryverythinmathspace:"-.0556em",negativeverythinmathspace:"-.1111em",negativethinmathspace:"-.1667em",negativemediummathspace:"-.2222em",negativethickmathspace:"-.2778em",negativeverythickmathspace:"-.3333em",negativeveryverythickmathspace:"-.3889em"}});b.mbase','.Augment({toNati
]);