19 lines
7.6 KiB
JavaScript
19 lines
7.6 KiB
JavaScript
|
/*
|
||
|
* ../SourceForge/trunk/mathjax/extensions/MathZoom.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(','a,c,e,b,h){var i="1.0";var g=a.Insert({delay:400,styles:{"#','MathJax_Zoom','":{position:"absolute','","','background-color','":"#F0F0F0",overflow:"auto",display:"block","z-index":301,padding:".5em",border:"1px solid black",','margin:0,"','font-family":"serif","font-size":"85%","font-weight','":"normal","','font-style',10,'text-align":"left","text-indent":0,"text-transform":"none","line-height',10,'letter-spacing',10,'word-spacing',10,'word-wrap',10,'white-space":"nowrap","float":"none","','box-shadow":"5px 5px 15px #AAAAAA','","-webkit-',22,'","-moz-',22,'","-khtml-',22,'",filter:"progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color=\'gray\', Positive=\'true\')"},"#','MathJax_ZoomOverlay',4,'",left:0,top:0',',"z-index":300,','display:"inline-block','",','width:"100%",height:"100%",','border:0,padding:0,',8,6,'":"','white",opacity:0',',filter:"alpha(opacity=0)"}}},(a.config.MathZoom||{}));var d=',1,'j){if(!j){j','=window.event}if(','j){if(','j.preventDefault','){',47,'()}if(','j.stopPropagation','){',51,'()}j.cancelBubble=true;j.returnValue=','false}','return false','};var f=MathJax.Extension.MathZoom={version:i,settings:a.config.menuSettings,HandleEvent:',1,'l,j,k){if(!l){l',45,'f.settings.CTRL&&!l.ctrlKey','){return true}if(f.settings.','ALT&&!l.altKey',62,'CMD&&!l.metaKey',62,'Shift&&!','l.shiftKey){','return true','}return f[j](l,k)},Click:',1,'k,j){','if(this.settings.','zoom==="','Click"){return this.Zoom(j,k)}},','DblClick',':',1,72,73,74,'Double-',75,'Mouseover:',1,72,73,74,'Hover"){','f.oldMouseOver','=j','.onmouseover',';j',92,'=null;j','.onmousemove=this.','Mousemove;j.','onmouseout=','this.Mouseout;','return f.Timer(','k,j)}},Mouseout:',1,'j){this',92,'=',90,';delete ',90,';this',96,98,'null;f.','ClearTimer();','return d(','j)},Mousemove:',1,'j){',100,'j||window.event,this)},Timer:',1,72,'this.',113,'this.timer','=','setTimeout(','MathJax.Callback','(["Zoom",this,j,{}]),g.delay);',114,'k)},ClearTimer:function(){if(',124,'){clearTimeout(',124,');delete ',124,'}},Zoom:',1,'s,l){this.',113,'this.Remove','();var v=s','.parentNode',';if(v','.className==="MathJax_MathContainer"){v=v.parentNode','}if(v',142,144,142,'}var q=(String(v.className).match(/^MathJax_(MathML|Display)$/)?v:s).','nextSibling',';var m=a.getJaxFor(q),r=m.root;var o=(b','&&m.outputJax.isa(','b','.constructor)?"','HTMLCSS":(h',152,'h',154,'MathML":null));if(!o){return}var j','=Math.floor(0.85*document.body.','clientWidth','),p',160,'clientHeight);var k=c.Element("span','",{style:{position:"','relative",',34,'",height:0,width:0},id:"','MathJax_ZoomFrame','"},[["','span",{id:"',30,'",onmousedown:',140,'}],["',171,3,'",onclick:',140,',style:{visibility:"hidden",fontSize:','this.settings.','zscale,"max-width":j+"px","max-height":p+"px"}},[["span"]]]]);var x=k.lastChild,u=x.firstChild,n=k.firstChild;s',142,'.insertBefore(k,s',');if(this','.msieZIndexBug','){var t=','c.Element("img",{','src:"about:blank','",id:"','MathJax_ZoomTracker','",','style:{width:0,height:0',',position:"relative"}});','document.body','.appendChild(','k);k','.style.position="absolute";','k.style.zIndex=g.styles["#',30,'"]["z-index"];k=t}var w=(this["Zoom"+o])(r,u,s);if(this','.msiePositionBug','){if(this.msieIE8Bug){u',198,'x','.style.height','=u','.offsetHeight',';u.style.position="";if(x',208,'<=p&&x','.offsetWidth','<=j){x.style.overflow="visible"}}if(this','.msieWidthBug','){x','.style.width','=Math.min(j,','w.w)}else{if(w.w>j){x',216,'=j}}if(x',208,'>p){x.style.Height=p+"px"}if(s.',150,'){s',142,184,'.',150,')}else{v',196,'k)}}else{if(this','.operaPositionBug','){x',216,217,'u',212,')+"px"}}this.Position(x,w,(o==="MathML"&&v.nodeName.toLowerCase()==="div"));x.style.visibility="";',73,74,89,'n',92,'=',140,'}','if(window.','addEventListener','){',248,'("resize",','this','.Resize,false)}else{if(window.','attachEvent){attachEvent("onresize",this','.Resize)}else{','this.onresize=','window.onresize',';',257,'=this.Resize','}}',114,'l)},ZoomHTMLCSS:',1,'o,q,p){q.className="MathJax";b.idPostfix="-zoom";b.getScales(q,q);o.toHTML(q,q);var r=o.HTMLspa
|
||
|
]);
|
||
|
|