This plugins are not added in the official ckeditor package/1.10.x
@ -0,0 +1,121 @@ |
||||
<!DOCTYPE html> |
||||
<!-- |
||||
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. |
||||
For licensing, see LICENSE.md or http://ckeditor.com/license |
||||
--> |
||||
<html> |
||||
<head> |
||||
<meta charset="utf-8"> |
||||
<title>Widgets: MathJax — CKEditor Sample</title> |
||||
<script src="../../../ckeditor.js"></script> |
||||
<script src="../../../dev/console/console.js"></script> |
||||
<script src="../../../dev/console/focusconsole.js"></script> |
||||
<script src="../../widget/dev/console.js"></script> |
||||
<link href="../../../samples/sample.css" rel="stylesheet"> |
||||
<meta name="ckeditor-sample-name" content="Mathematics"> |
||||
<meta name="ckeditor-sample-group" content="Plugins"> |
||||
<meta name="ckeditor-sample-description" content="Create mathematical equations in TeX and display them in visual form."> |
||||
<meta name="ckeditor-sample-isnew" content="1"> |
||||
<script> |
||||
CKEDITOR.disableAutoInline = true; |
||||
document.domain = 'ckeditor.dev'; |
||||
</script> |
||||
</head> |
||||
<body> |
||||
<h1 class="samples"> |
||||
<a href="../../../samples/index.html">CKEditor Samples</a> » Widgets: MathJax |
||||
</h1> |
||||
|
||||
<h2>Classic (iframe-based) Sample</h2> |
||||
|
||||
<textarea id="editor1" cols="10" rows="10"> |
||||
<h1>Apollo 11</h1> |
||||
|
||||
<div style="background:red;color:blue"> |
||||
<p><strong>Apollo 11</strong> was the spaceflight that landed the first humans, Americans <a href="http://en.wikipedia.org/wiki/Neil_Armstrong">Neil Armstrong</a> and <a href="http://en.wikipedia.org/wiki/Buzz_Aldrin">Buzz Aldrin</a> <span class="math-tex">\(x = {-b \pm \sqrt{b^2-4ac} \over 2a}\)</span>. Armstrong became the first to step onto the lunar surface 6 hours later. Armstrong spent about two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5 kg) of lunar material for return to Earth. A third member of the mission, Michael Collins, piloted the command spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.</p> |
||||
</div> |
||||
|
||||
<p>Foo foo <span class="userclass mjx">\(J_\alpha(x) = \sum\limits_{m=0}^\infty \frac{(-1)^m}{m! \, \Gamma(m + \alpha + 1)}{\left({\frac{x}{2}}\right)}^{2 m + \alpha}\)</span> bar bar.</p> |
||||
|
||||
<p>Launched by a Saturn V rocket from Kennedy Space Center in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of <a href="http://en.wikipedia.org/wiki/NASA">NASA</a>'s Apollo program. The Apollo spacecraft had three parts: aCommand Module with a cabin for the three astronauts which was the only part which landed back on Earth; a Service Module which supported the Command Module with propulsion, electrical power, oxygen and water; and a Lunar Module for landing on the Moon. After being sent to the Moon by the Saturn V's upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the Sea of Tranquility. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the Pacific Ocean .</p> |
||||
</textarea> |
||||
|
||||
<h2>Inline Sample</h2> |
||||
|
||||
<div id="editor2" contenteditable="true" cols="10" rows="10"> |
||||
<h1>Apollo 11</h1> |
||||
|
||||
<div style="background:red;color:blue"> |
||||
<p><strong>Apollo 11</strong> was the spaceflight that landed the first humans, Americans <a href="http://en.wikipedia.org/wiki/Neil_Armstrong">Neil Armstrong</a> and <a href="http://en.wikipedia.org/wiki/Buzz_Aldrin">Buzz Aldrin</a> <span class="math-tex">\(x = {-b \pm \sqrt{b^2-4ac} \over 2a}\)</span>. Armstrong became the first to step onto the lunar surface 6 hours later. Armstrong spent about two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5 kg) of lunar material for return to Earth. A third member of the mission, Michael Collins, piloted the command spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.</p> |
||||
</div> |
||||
|
||||
<p>Foo foo <span class="userclass mjx">\(J_\alpha(x) = \sum\limits_{m=0}^\infty \frac{(-1)^m}{m! \, \Gamma(m + \alpha + 1)}{\left({\frac{x}{2}}\right)}^{2 m + \alpha}\)</span> bar bar.</p> |
||||
|
||||
<p>Launched by a Saturn V rocket from Kennedy Space Center in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of <a href="http://en.wikipedia.org/wiki/NASA">NASA</a>'s Apollo program. The Apollo spacecraft had three parts: aCommand Module with a cabin for the three astronauts which was the only part which landed back on Earth; a Service Module which supported the Command Module with propulsion, electrical power, oxygen and water; and a Lunar Module for landing on the Moon. After being sent to the Moon by the Saturn V's upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the Sea of Tranquility. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the Pacific Ocean .</p> |
||||
</div> |
||||
|
||||
<h2>Div Editing Area Sample</h2> |
||||
|
||||
<textarea id="editor3" cols="10" rows="10"> |
||||
<h1>Apollo 11</h1> |
||||
|
||||
<div style="background:red;color:blue"> |
||||
<p><strong>Apollo 11</strong> was the spaceflight that landed the first humans, Americans <a href="http://en.wikipedia.org/wiki/Neil_Armstrong">Neil Armstrong</a> and <a href="http://en.wikipedia.org/wiki/Buzz_Aldrin">Buzz Aldrin</a> <span class="math-tex">\(x = {-b \pm \sqrt{b^2-4ac} \over 2a}\)</span>. Armstrong became the first to step onto the lunar surface 6 hours later. Armstrong spent about two and a half hours outside the spacecraft, Aldrin slightly less; and together they collected 47.5 pounds (21.5 kg) of lunar material for return to Earth. A third member of the mission, Michael Collins, piloted the command spacecraft alone in lunar orbit until Armstrong and Aldrin returned to it for the trip back to Earth.</p> |
||||
</div> |
||||
|
||||
<p>Foo foo <span class="userclass mjx">\(J_\alpha(x) = \sum\limits_{m=0}^\infty \frac{(-1)^m}{m! \, \Gamma(m + \alpha + 1)}{\left({\frac{x}{2}}\right)}^{2 m + \alpha}\)</span> bar bar.</p> |
||||
|
||||
<p>Launched by a Saturn V rocket from Kennedy Space Center in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of <a href="http://en.wikipedia.org/wiki/NASA">NASA</a>'s Apollo program. The Apollo spacecraft had three parts: aCommand Module with a cabin for the three astronauts which was the only part which landed back on Earth; a Service Module which supported the Command Module with propulsion, electrical power, oxygen and water; and a Lunar Module for landing on the Moon. After being sent to the Moon by the Saturn V's upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the Sea of Tranquility. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the Pacific Ocean .</p> |
||||
</textarea> |
||||
|
||||
<script> |
||||
|
||||
CKEDITOR.stylesSet.add('my_custom_style', [ |
||||
{ name: 'My Custom Block', element: 'h1', styles: { color: 'blue'} } |
||||
]); |
||||
|
||||
CKEDITOR.replace( 'editor1', { |
||||
extraPlugins: 'mathjax', |
||||
height: 350, |
||||
allowedContent: true, |
||||
// mathJaxLib: './truncated-mathjax/MathJax.js?config=TeX-AMS_HTML', |
||||
mathJaxClass: 'mjx' |
||||
} ); |
||||
|
||||
CKEDITOR.inline( 'editor2', { |
||||
extraPlugins: 'mathjax', |
||||
height: 350, |
||||
allowedContent: true, |
||||
// mathJaxLib: './truncated-mathjax/MathJax.js?config=TeX-AMS_HTML', |
||||
mathJaxClass: 'mjx' |
||||
} ); |
||||
|
||||
CKEDITOR.replace( 'editor3', { |
||||
extraPlugins: 'mathjax,divarea', |
||||
height: 350, |
||||
allowedContent: true, |
||||
// mathJaxLib: './truncated-mathjax/MathJax.js?config=TeX-AMS_HTML', |
||||
mathJaxClass: 'mjx' |
||||
} ); |
||||
|
||||
CKCONSOLE.create( 'widget', { editor: 'editor1' } ); |
||||
CKCONSOLE.create( 'focus', { editor: 'editor1' } ); |
||||
CKCONSOLE.create( 'widget', { editor: 'editor2' } ); |
||||
CKCONSOLE.create( 'focus', { editor: 'editor2' } ); |
||||
CKCONSOLE.create( 'widget', { editor: 'editor3' } ); |
||||
CKCONSOLE.create( 'focus', { editor: 'editor3' } ); |
||||
|
||||
</script> |
||||
|
||||
<div id="footer"> |
||||
<hr> |
||||
<p> |
||||
CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> |
||||
</p> |
||||
<p id="copy"> |
||||
Copyright © 2003-2014, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico |
||||
Knabben. All rights reserved. |
||||
</p> |
||||
</div> |
||||
</body> |
||||
</html> |
||||
@ -0,0 +1,250 @@ |
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
||||
<!-- |
||||
* Chamilo LMS |
||||
* |
||||
* Copyright (c) 2009-2010 Ivan Tcholakov <ivantcholakov@gmail.com> |
||||
* Copyright (c) 2009 Dokeos SPRL |
||||
* |
||||
* License: |
||||
* GNU Lesser General Public License, Version 3, 29 June 2007 |
||||
* by Free Software Foundation, Inc. (http://www.gnu.org/licenses/lgpl.html) |
||||
--> |
||||
<html xmlns="http://www.w3.org/1999/xhtml"> |
||||
<head> |
||||
<title>AsciiMath Editor</title> |
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
||||
<meta name="robots" content="noindex, nofollow" /> |
||||
|
||||
<script type="text/javascript"> |
||||
document.write( '<scr' + 'ipt type="text/javascript" src="' + window.parent.frameElement._DialogArguments.Editor.FCKConfig.ScriptASCIIMathML + '"><\/scr' + 'ipt>' ) ; |
||||
</script> |
||||
|
||||
<script src="../../dialog/common/fck_dialog_common.js" type="text/javascript"></script> |
||||
<script src="fck_asciimath.js" type="text/javascript"></script> |
||||
|
||||
<script type="text/javascript"> |
||||
document.write( FCKTools.GetStyleHtml( GetCommonDialogCss() ) ) ; |
||||
</script> |
||||
|
||||
<style type="text/css"> |
||||
|
||||
body, td, input, textarea, select, label, button { font-family: Arial, Verdana, Geneva, helvetica, sans-serif; font-size: 11px; } |
||||
form { padding: 0px; margin: 0px; } |
||||
form p { margin-top: 5px; margin-bottom: 5px; } |
||||
|
||||
#clickInput |
||||
{ |
||||
width: 100%; |
||||
border-collapse: collapse; |
||||
background-color: white; |
||||
text-align: center; |
||||
} |
||||
#clickInput td |
||||
{ |
||||
border: 1px solid gray; |
||||
font-size: 1.1em; |
||||
} |
||||
|
||||
#inputText, #outputNode |
||||
{ |
||||
padding: 5px; |
||||
background-color: white; |
||||
width: 98%; |
||||
height: 80px; |
||||
font-size: 1.3em; |
||||
border: 1px solid darkgrey; |
||||
overflow: auto; |
||||
} |
||||
|
||||
.Hand |
||||
{ |
||||
cursor: pointer; |
||||
cursor: hand; |
||||
} |
||||
|
||||
</style> |
||||
|
||||
</head> |
||||
<body scroll="no" style="overflow: hidden;"> |
||||
|
||||
<!-- |
||||
Table modified from CharacterMap for ASCIIMathML by Peter Jipsen |
||||
HTMLSource based on HTMLArea XTD 1.5 (http://mosforge.net/projects/htmlarea3xtd/) modified by Holger Hees |
||||
Original Author - Bernhard Pfeifer novocaine@gmx.net |
||||
--> |
||||
<table id="clickInput"> |
||||
<tr> |
||||
<td colspan="3" class="Hand" title="(x+1)/(x-1)" onclick="javascript: Set('(x+1)/(x-1)');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/x1x1.png" /></td> |
||||
<td colspan="2" class="Hand" title="x^(m+n)" onclick="javascript: Set('x^(m+n)');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/xmn.png" /></td> |
||||
<td colspan="2" class="Hand" title="x_(mn)" onclick="javascript: Set('x_(mn)');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/x_mn.png" /></td> |
||||
<td colspan="2" class="Hand" title="sqrt(x)" onclick="javascript: Set('sqrt(x)');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/sqrtx.png" /></td> |
||||
<td colspan="3" class="Hand" title="root(n)(x)" onclick="javascript: Set('root(n)(x)');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/rootnx.png" /></td> |
||||
<td colspan="3" class="Hand" title="{(1 if x>=0),(0 if x<0):}" onclick="javascript: Set('{(1 if x>=0),(0 if x<0):}');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/ifx.png" /></td> |
||||
<td colspan="2" class="Hand" title=""text"" onclick="javascript: Set('"text"');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/text.png" /></td> |
||||
</tr><tr> |
||||
<td colspan="2" class="Hand" title="dy/dx" onclick="javascript: Set('dy/dx');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/dydx.png" /></td> |
||||
<td colspan="3" class="Hand" title="lim_(x->oo)" onclick="javascript: Set('lim_(x->oo)');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/lim.png" /></td> |
||||
<td colspan="3" class="Hand" title="sum_(n=1)^oo" onclick="javascript: Set('sum_(n=1)^oo');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/sumn.png" /></td> |
||||
<td colspan="3" class="Hand" title="int_a^bf(x)dx" onclick="javascript: Set('int_a^bf(x)dx');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/intab.png" /></td> |
||||
<td colspan="3" class="Hand" title="[[a,b],[c,d]]" onclick="javascript: Set('[[a,b],[c,d]]');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/abcd.png" /></td> |
||||
<td colspan="2" class="Hand" title="((n),(k))" onclick="javascript: Set('((n),(k))');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/nk.png" /></td> |
||||
</tr><tr> |
||||
<td class="Hand" title="*" onclick="javascript: Set('*');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/dot.png" /></td> |
||||
<td class="Hand" title="**" onclick="javascript: Set('**');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/star.png" /></td> |
||||
<td class="Hand" title="//" onclick="javascript: Set('//');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/slash.png" /></td> |
||||
<td class="Hand" title="\\" onclick="javascript: Set('\\\\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/backslash.png" /></td> |
||||
<td class="Hand" title="xx" onclick="javascript: Set('xx');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/times.png" /></td> |
||||
<td class="Hand" title="-:" onclick="javascript: Set('-:');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/div.png" /></td> |
||||
<td class="Hand" title="@" onclick="javascript: Set('@');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/circ.png" /></td> |
||||
<td class="Hand" title="o+" onclick="javascript: Set('o+');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/oplus.png" /></td> |
||||
<td class="Hand" title="ox" onclick="javascript: Set('ox');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/otimes.png" /></td> |
||||
<td class="Hand" title="o." onclick="javascript: Set('o.');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/odot.png" /></td> |
||||
<td class="Hand" title="sum" onclick="javascript: Set('sum');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/sum.png" /></td> |
||||
<td class="Hand" title="prod" onclick="javascript: Set('prod');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/prod.png" /></td> |
||||
<td class="Hand" title="^^" onclick="javascript: Set('^^');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/wedge.png" /></td> |
||||
<td class="Hand" title="^^^" onclick="javascript: Set('^^^');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/bigwedge.png" /></td> |
||||
<td class="Hand" title="vv" onclick="javascript: Set('vv');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/vee.png" /></td> |
||||
<td class="Hand" title="vvv" onclick="javascript: Set('vvv');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/bigvee.png" /></td> |
||||
</tr><tr> |
||||
<td class="Hand" title="!=" onclick="javascript: Set('!=');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/ne.png" /></td> |
||||
<td class="Hand" title="<=" onclick="javascript: Set('<=');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/le.png" /></td> |
||||
<td class="Hand" title=">=" onclick="javascript: Set('>=');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/ge.png" /></td> |
||||
<td class="Hand" title="-<" onclick="javascript: Set('-<');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/prec.png" /></td> |
||||
<td class="Hand" title=">-" onclick="javascript: Set('>-');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/succ.png" /></td> |
||||
<td class="Hand" title="in" onclick="javascript: Set('in');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/in.png" /></td> |
||||
<td class="Hand" title="!in" onclick="javascript: Set('!in');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/notin.png" /></td> |
||||
<td class="Hand" title="sub" onclick="javascript: Set('sub');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/subset.png" /></td> |
||||
<td class="Hand" title="sup" onclick="javascript: Set('sup');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/supset.png" /></td> |
||||
<td class="Hand" title="sube" onclick="javascript: Set('sube');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/subseteq.png" /></td> |
||||
<td class="Hand" title="supe" onclick="javascript: Set('supe');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/supseteq.png" /></td> |
||||
<td class="Hand" title="O/" onclick="javascript: Set('O/');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/emptyset.png" /></td> |
||||
<td class="Hand" title="nn" onclick="javascript: Set('nn');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/cap.png" /></td> |
||||
<td class="Hand" title="nnn" onclick="javascript: Set('nnn');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/bigcap.png" /></td> |
||||
<td class="Hand" title="uu" onclick="javascript: Set('uu');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/cup.png" /></td> |
||||
<td class="Hand" title="uuu" onclick="javascript: Set('uuu');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/bigcup.png" /></td> |
||||
</tr><tr> |
||||
<td class="Hand" title="and" onclick="javascript: Set('and');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/text_and.png" /></td> |
||||
<td class="Hand" title="or" onclick="javascript: Set('or');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/text_or.png" /></td> |
||||
<td class="Hand" title="not" onclick="javascript: Set('not');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/not.png" /></td> |
||||
<td class="Hand" title="=>" onclick="javascript: Set('=>');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/rightarrow.png" /></td> |
||||
<td class="Hand" title="if" onclick="javascript: Set('if');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/if.png" /></td> |
||||
<td class="Hand" title="<=>" onclick="javascript: Set('<=>');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/leftrightarrow.png" /></td> |
||||
<td class="Hand" title="AA" onclick="javascript: Set('AA');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/forall.png" /></td> |
||||
<td class="Hand" title="EE" onclick="javascript: Set('EE');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/exists.png" /></td> |
||||
<td class="Hand" title="_|_" onclick="javascript: Set('_|_');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/bot.png" /></td> |
||||
<td class="Hand" title="TT" onclick="javascript: Set('TT');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/top.png" /></td> |
||||
<td class="Hand" title="|--" onclick="javascript: Set('|--');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/vdash.png" /></td> |
||||
<td class="Hand" title="|==" onclick="javascript: Set('|==');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/models.png" /></td> |
||||
<td class="Hand" title="-=" onclick="javascript: Set('-=');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/equiv.png" /></td> |
||||
<td class="Hand" title="~=" onclick="javascript: Set('~=');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/cong.png" /></td> |
||||
<td class="Hand" title="~~" onclick="javascript: Set('~~');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/approx.png" /></td> |
||||
<td class="Hand" title="prop" onclick="javascript: Set('prop');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/propto.png" /></td> |
||||
</tr><tr> |
||||
<td class="Hand" title="int" onclick="javascript: Set('int');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/int.png" /></td> |
||||
<td class="Hand" title="oint" onclick="javascript: Set('oint');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/oint.png" /></td> |
||||
<td class="Hand" title="del" onclick="javascript: Set('del');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/partial.png" /></td> |
||||
<td class="Hand" title="grad" onclick="javascript: Set('grad');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/nabla.png" /></td> |
||||
<td class="Hand" title="+-" onclick="javascript: Set('+-');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/pm.png" /></td> |
||||
<td class="Hand" title="oo" onclick="javascript: Set('oo');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/infty.png" /></td> |
||||
<td class="Hand" title="A\ B (space between A and B)" onclick="javascript: Set('A\\ B');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/space.png" /></td> |
||||
<td class="Hand" title="AquadB (double space between A and B)" onclick="javascript: Set('AquadB');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/quad.png" /></td> |
||||
<td class="Hand" title="diamond" onclick="javascript: Set('diamond');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/diamond.png" /></td> |
||||
<td class="Hand" title="square" onclick="javascript: Set('square');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/square.png" /></td> |
||||
<td class="Hand" title="|__" onclick="javascript: Set('|__');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/lfloor.png" /></td> |
||||
<td class="Hand" title="__|" onclick="javascript: Set('__|');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/rfloor.png" /></td> |
||||
<td class="Hand" title="|~" onclick="javascript: Set('|~');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/lceil.png" /></td> |
||||
<td class="Hand" title="~|" onclick="javascript: Set('~|');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/rceil.png" /></td> |
||||
<td class="Hand" title="<<x>>" onclick="javascript: Set('<<x>>');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/braxcket.png" /></td> |
||||
<td class="Hand" title="/_" onclick="javascript: Set('/_');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/angle.png" /></td> |
||||
</tr><tr> |
||||
<td class="Hand" title="uarr" onclick="javascript: Set('uarr');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/uarr.png" /></td> |
||||
<td class="Hand" title="darr" onclick="javascript: Set('darr');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/darr.png" /></td> |
||||
<td class="Hand" title="larr" onclick="javascript: Set('larr');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/larr.png" /></td> |
||||
<td class="Hand" title="->" onclick="javascript: Set('->');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/rarr.png" /></td> |
||||
<td class="Hand" title="|->" onclick="javascript: Set('|->');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/mapsto.png" /></td> |
||||
<td class="Hand" title="harr" onclick="javascript: Set('harr');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/harr.png" /></td> |
||||
<td class="Hand" title="lArr" onclick="javascript: Set('lArr');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/llarr.png" /></td> |
||||
<td class="Hand" title="rArr" onclick="javascript: Set('rArr');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/rrarr.png" /></td> |
||||
<td class="Hand" title="hArr" onclick="javascript: Set('hArr');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/hharr.png" /></td> |
||||
<td class="Hand" title="hata" onclick="javascript: Set('hata');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/hata.png" /></td> |
||||
<td class="Hand" title="ula" onclick="javascript: Set('ula');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/ula.png" /></td> |
||||
<td class="Hand" title="dota" onclick="javascript: Set('dota');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/dota.png" /></td> |
||||
<td class="Hand" title="ddota" onclick="javascript: Set('ddota');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/ddota.png" /></td> |
||||
<td class="Hand" title="veca" onclick="javascript: Set('veca');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/veca.png" /></td> |
||||
<td class="Hand" title="bara" onclick="javascript: Set('bara');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/bara.png" /></td> |
||||
<td class="Hand" title=":." onclick="javascript: Set(':.');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/therefore.png" /></td> |
||||
</tr><tr> |
||||
<td class="Hand" title="NN" onclick="javascript: Set('NN');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/nn.png" /></td> |
||||
<td class="Hand" title="ZZ" onclick="javascript: Set('ZZ');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/zz.png" /></td> |
||||
<td class="Hand" title="QQ" onclick="javascript: Set('QQ');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/qq.png" /></td> |
||||
<td class="Hand" title="RR" onclick="javascript: Set('RR');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/rr.png" /></td> |
||||
<td class="Hand" title="CC" onclick="javascript: Set('CC');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/cc.png" /></td> |
||||
<td class="Hand" title="bbA" onclick="javascript: Set('bbA');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/bba.png" /></td> |
||||
<td class="Hand" title="bbbA" onclick="javascript: Set('bbbA');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/bbba.png" /></td> |
||||
<td class="Hand" title="ccA" onclick="javascript: Set('ccA');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/cca.png" /></td> |
||||
<td class="Hand" title="frA" onclick="javascript: Set('frA');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/fra.png" /></td> |
||||
<td class="Hand" title="sfA" onclick="javascript: Set('sfA');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/sfa.png" /></td> |
||||
<td class="Hand" title="ttA" onclick="javascript: Set('ttA');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/tta.png" /></td> |
||||
<td colspan="3" class="Hand" title="stackrel(->)(+)" onclick="javascript: Set('stackrel(->)(+)');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/stackrel.png" /></td> |
||||
<td class="Hand" title="aleph" onclick="javascript: Set('aleph');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/aleph.png" /></td> |
||||
<td class="Hand" title="upsilon" onclick="javascript: Set('upsilon');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/upsilon.png" /></td> |
||||
</tr><tr> |
||||
<td class="Hand" title="alpha" onclick="javascript: Set('alpha');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/alpha.png" /></td> |
||||
<td class="Hand" title="beta" onclick="javascript: Set('beta');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/beta.png" /></td> |
||||
<td class="Hand" title="gamma" onclick="javascript: Set('gamma');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/gamma.png" /></td> |
||||
<td class="Hand" title="Gamma" onclick="javascript: Set('Gamma');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/ggamma.png" /></td> |
||||
<td class="Hand" title="delta" onclick="javascript: Set('delta');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/delta.png" /></td> |
||||
<td class="Hand" title="Delta" onclick="javascript: Set('Delta');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/ddelta.png" /></td> |
||||
<td class="Hand" title="epsi" onclick="javascript: Set('epsi');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/epsilon.png" /></td> |
||||
<td class="Hand" title="zeta" onclick="javascript: Set('zeta');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/zeta.png" /></td> |
||||
<td class="Hand" title="eta" onclick="javascript: Set('eta');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/eta.png" /></td> |
||||
<td class="Hand" title="theta" onclick="javascript: Set('theta');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/theta.png" /></td> |
||||
<td class="Hand" title="Theta" onclick="javascript: Set('Theta');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/ttheta.png" /></td> |
||||
<td class="Hand" title="iota" onclick="javascript: Set('iota');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/iota.png" /></td> |
||||
<td class="Hand" title="kappa" onclick="javascript: Set('kappa');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/kappa.png" /></td> |
||||
<td class="Hand" title="lambda" onclick="javascript: Set('lambda');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/lambda.png" /></td> |
||||
<td class="Hand" title="Lambda" onclick="javascript: Set('Lambda');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/llambda.png" /></td> |
||||
<td class="Hand" title="mu" onclick="javascript: Set('mu');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/mu.png" /></td> |
||||
</tr><tr> |
||||
<td class="Hand" title="nu" onclick="javascript: Set('nu');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/nu.png" /></td> |
||||
<td class="Hand" title="pi" onclick="javascript: Set('pi');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/pi.png" /></td> |
||||
<td class="Hand" title="Pi" onclick="javascript: Set('Pi');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/ppi.png" /></td> |
||||
<td class="Hand" title="rho" onclick="javascript: Set('rho');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/rho.png" /></td> |
||||
<td class="Hand" title="sigma" onclick="javascript: Set('sigma');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/sigma.png" /></td> |
||||
<td class="Hand" title="Sigma" onclick="javascript: Set('Sigma');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/ssigma.png" /></td> |
||||
<td class="Hand" title="tau" onclick="javascript: Set('tau');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/tau.png" /></td> |
||||
<td class="Hand" title="xi" onclick="javascript: Set('xi');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/xi.png" /></td> |
||||
<td class="Hand" title="Xi" onclick="javascript: Set('Xi');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/xxi.png" /></td> |
||||
<td class="Hand" title="phi" onclick="javascript: Set('phi');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/phi.png" /></td> |
||||
<td class="Hand" title="Phi" onclick="javascript: Set('Phi');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/pphi.png" /></td> |
||||
<td class="Hand" title="chi" onclick="javascript: Set('chi');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/chi.png" /></td> |
||||
<td class="Hand" title="psi" onclick="javascript: Set('psi');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/psi.png" /></td> |
||||
<td class="Hand" title="Psi" onclick="javascript: Set('Psi');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/ppsi.png" /></td> |
||||
<td class="Hand" title="omega" onclick="javascript: Set('omega');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/omega.png" /></td> |
||||
<td class="Hand" title="Omega" onclick="javascript: Set('Omega');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="images/oomega.png" /></td> |
||||
</tr> |
||||
</table> |
||||
<form action="javascript: void(0);"> |
||||
<table style="width: 100%; border: none;"> |
||||
<tr> |
||||
<td style="width:50%;" nowrap="nowrap"><span fckLang="DlgAsciiMathInput">Input</span> <input id="clear" type="button" fckLang="DlgAsciiMathClear" onclick="javascript: Clear();" style="width: 100px; font-size: 10px;" value="Clear" /> <input id="delete" type="button" fckLang="DlgAsciiMathDelete" onclick="javascript: Delete();" style="width: 100px; font-size: 10px;" value="Delete" /> </td> |
||||
<td style="width:50%;"><input id="show_mathml" type="button" fckLang="DlgAsciiMathShowMathML" onclick="javascript: ShowMathML();" style="float: right; font-size: 10px; display: none;" value="Show MathML" /><span fckLang="DlgAsciiMathPreview">Preview</span></td> |
||||
</tr> |
||||
</table> |
||||
<table style="width: 100%; border: none;"> |
||||
<tr> |
||||
<td style="width:50%; min-width: 300px; max-width: 435px;"> |
||||
<textarea id="inputText" onkeyup="javascript: Preview();"></textarea> |
||||
</td> |
||||
<td style="width:50%; min-width: 300px; max-width: 435px;"> |
||||
<div id="outputNode"></div> |
||||
</td> |
||||
</tr> |
||||
<tr><td colspan="2"> |
||||
<span fckLang="DlgAsciiMathBasedOn">Based on ASCIIMathML by </span><a href="http://www.chapman.edu/~jipsen" onclick="javascript: window.open(this.href,'_blank','');return false;">Peter Jipsen</a>, |
||||
<a href="http://www.chapman.edu" onclick="javascript: window.open(this.href,'_blank','');return false;">Chapman University</a><br /> |
||||
<span fckLang="DlgAsciiMathForMoreInfo">For more information on AsciiMathML visit this page: </span><a href="http://www1.chapman.edu/~jipsen/mathml/asciimath.html" onclick="javascript: window.open(this.href,'_blank','');return false;">http://www1.chapman.edu/~jipsen/mathml/asciimath.html</a></td></tr> |
||||
</table> |
||||
</form> |
||||
</body> |
||||
</html> |
||||
@ -0,0 +1,282 @@ |
||||
/* |
||||
* Chamilo LMS |
||||
* |
||||
* Copyright (c) 2009-2010 Ivan Tcholakov <ivantcholakov@gmail.com> |
||||
* Copyright (c) 2009 Dokeos SPRL |
||||
* |
||||
* License: |
||||
* GNU Lesser General Public License, Version 3, 29 June 2007 |
||||
* by Free Software Foundation, Inc. (http://www.gnu.org/licenses/lgpl.html)
|
||||
*/ |
||||
|
||||
var dialog = window.parent ; |
||||
var oEditor = dialog.InnerDialogLoaded() ; |
||||
var FCK = oEditor.FCK ; |
||||
var FCKLang = oEditor.FCKLang ; |
||||
var FCKConfig = oEditor.FCKConfig ; |
||||
var FCKTools = oEditor.FCKTools ; |
||||
var FCKBrowserInfo = oEditor.FCKBrowserInfo ; |
||||
var FCKUndo = oEditor.FCKUndo ; |
||||
var FCKAsciiMath = oEditor.FCKAsciiMath ; |
||||
|
||||
// Set the language direction.
|
||||
window.document.dir = FCKLang.Dir ; |
||||
|
||||
FCKLang["DlgAsciiIncompatibleBrowser"] = FCKLang["DlgAsciiIncompatibleBrowser"] ? FCKLang["DlgAsciiIncompatibleBrowser"] : 'Your browser is not able to show mathematical formulas. Please, use %s1 or Internet Explorer with %s2 plugin.' ; |
||||
FCKLang['DlgAsciiIncompatibleBrowser'] = FCKLang['DlgAsciiIncompatibleBrowser'].replace( '%s1', '<a href="http://www.mozilla.com" onclick="javascript: window.open(this.href,\'_blank\');return false;">Mozilla Firefox 1.5+</a>, <a href="http://www.opera.com" onclick="javascript: window.open(this.href,\'_blank\');return false;">Opera 9.5+</a>' ) ; |
||||
FCKLang['DlgAsciiIncompatibleBrowser'] = FCKLang['DlgAsciiIncompatibleBrowser'].replace( '%s2', '<a href="http://www.dessci.com/en/products/mathplayer/" onclick="javascript: window.open(this.href,\'_blank\');return false;">MathPlayer</a>' ) ; |
||||
|
||||
FCKLang["DlgAsciiMathOldIE"] = FCKLang["DlgAsciiMathOldIE"] ? FCKLang["DlgAsciiMathOldIE"] : 'Your browser is not able to show mathematical formulas. You need to upgrade to Internet Explorer 6.0+. Then you need to install the MathPlayer 2 plugin for Internet Explorer. Please, see %s for more information.' ; |
||||
FCKLang['DlgAsciiMathOldIE'] = FCKLang['DlgAsciiMathOldIE'].replace( '%s', '<a href="http://www.dessci.com/en/products/mathplayer/" onclick="javascript: window.open(this.href,\'_blank\');return false;">http://www.dessci.com/en/products/mathplayer/</a>' ) ; |
||||
|
||||
FCKLang['DlgAsciiMathInstallMathPlayer'] = FCKLang['DlgAsciiMathInstallMathPlayer'] ? FCKLang['DlgAsciiMathInstallMathPlayer'] : 'Your browser is not able to show mathematical formulas. You need to install the MathPlayer 2 plugin for Internet Explorer. Please, see %s for more information.' ; |
||||
FCKLang['DlgAsciiMathInstallMathPlayer'] = FCKLang['DlgAsciiMathInstallMathPlayer'].replace( '%s', '<a href="http://www.dessci.com/en/products/mathplayer/" onclick="javascript: window.open(this.href,\'_blank\');return false;">http://www.dessci.com/en/products/mathplayer/</a>' ) ; |
||||
|
||||
FCKLang['DlgAsciiMathOldMathPlayer'] = FCKLang['DlgAsciiMathOldMathPlayer'] ? FCKLang['DlgAsciiMathOldMathPlayer'] : 'Your browser is not able to show mathematical formulas. You need to upgrade the MathPlayer plugin for Internet Explorer to version 2. Please, see %s for more information.' ; |
||||
FCKLang['DlgAsciiMathOldMathPlayer'] = FCKLang['DlgAsciiMathOldMathPlayer'].replace( '%s', '<a href="http://www.dessci.com/en/products/mathplayer/" onclick="javascript: window.open(this.href,\'_blank\');return false;">http://www.dessci.com/en/products/mathplayer/</a>' ) ; |
||||
|
||||
// Settings for ASCIIMathML.js
|
||||
// Checking for native MathML support, it is always needed for this dialog.
|
||||
var checkForMathML = true; |
||||
// Suppressing the built-in notification messages when the browser is incompatible.
|
||||
var notifyIfNoMathML = false ; |
||||
var alertIfNoMathML = false ; |
||||
var notifyIfNoSVG = false ; |
||||
var alertIfNoSVG = false ; |
||||
// Formula translation will be called explicitly in this dialog after it loads.
|
||||
var translateOnLoad = false ; |
||||
// Formula tooltips are hard-coded in this dialog, there is no need they to be generated.
|
||||
var showasciiformulaonhover = false ; |
||||
// Font size of the formulas in this dialog.
|
||||
var mathfontsize = "1.1em" ; |
||||
|
||||
// oSpanAM: The actual selected span element in the editor that contains the formula.
|
||||
var oSpanAM = FCKAsciiMath.FindFormulaContainer( FCKAsciiMath.GetSearchElementFromSelection() ) ; |
||||
if ( oSpanAM ) |
||||
{ |
||||
FCK.Selection.SelectNode( oSpanAM ) ; |
||||
} |
||||
|
||||
function LoadSelection() |
||||
{ |
||||
GetE( 'inputText' ).value = FCKAsciiMath.GetFormula( oSpanAM ) ; |
||||
Preview() ; |
||||
} |
||||
|
||||
function Ok() |
||||
{ |
||||
if ( FCKBrowserInfo.IsIE ) |
||||
{ |
||||
if ( oSpanAM ) |
||||
{ |
||||
FCK.Selection.SelectNode( oSpanAM ) ; |
||||
// For IE: Before updating, we have to move the selection outside the formula
|
||||
// in order to prevent "Unspecified error".
|
||||
var span_target = FCK.EditorDocument.createElement( 'span' ) ; |
||||
span_target.innerHTML = ' ' ; |
||||
span_target = oSpanAM.parentNode.insertBefore( span_target, oSpanAM ) ; |
||||
FCK.Selection.SelectNode( span_target ) ; |
||||
} |
||||
} |
||||
|
||||
var formula = GetE( 'inputText' ).value ; |
||||
|
||||
if ( formula != '' ) |
||||
{ |
||||
FCK.InsertHtml( '<span class="AM">`' + formula + '`<\/span>' ) ; |
||||
} |
||||
else |
||||
{ |
||||
FCK.Selection.Delete() ; |
||||
} |
||||
|
||||
if ( FCKBrowserInfo.IsIE ) |
||||
{ |
||||
if ( oSpanAM ) |
||||
{ |
||||
FCKUndo.SaveUndoStep() ; |
||||
oSpanAM.parentNode.removeChild( oSpanAM ) ; |
||||
} |
||||
} |
||||
|
||||
return true ; |
||||
} |
||||
|
||||
window.onload = function() |
||||
{ |
||||
// Translate the dialog box texts.
|
||||
oEditor.FCKLanguageManager.TranslatePage( document ) ; |
||||
|
||||
// Initialization of the script ASCIIMathML.js.
|
||||
init() ; |
||||
|
||||
// Load the selected element information (if any).
|
||||
LoadSelection() ; |
||||
|
||||
dialog.SetAutoSize( true ) ; |
||||
|
||||
// When MathML is available show the button "Show MathML code".
|
||||
if ( !noMathML ) { |
||||
GetE( 'show_mathml' ).style.display = '' ; |
||||
} |
||||
|
||||
// Activate the "OK" button.
|
||||
dialog.SetOkButton( true ) ; |
||||
|
||||
var inputField = GetE( 'inputText' ) ; |
||||
inputField.focus() ; |
||||
} |
||||
|
||||
function Set( string ) |
||||
{ |
||||
var inputField = GetE( 'inputText' ) ; |
||||
inputField.value += string ; |
||||
Preview() ; |
||||
inputField.focus() ; |
||||
return false ; |
||||
} |
||||
|
||||
function Clear() |
||||
{ |
||||
var inputField = GetE( 'inputText' ) ; |
||||
inputField.value = '' ; |
||||
Preview() ; |
||||
inputField.focus() ; |
||||
return false ; |
||||
} |
||||
|
||||
function Delete() |
||||
{ |
||||
Clear(); |
||||
dialog.Ok(); |
||||
} |
||||
|
||||
function Preview() |
||||
{ |
||||
if ( GetE( 'inputText' ).value != '' ) |
||||
{ |
||||
var str = GetE( 'inputText' ).value ; |
||||
var outnode = GetE( 'outputNode' ) ; |
||||
var newnode = createElementXHTML( 'div' ) ; |
||||
newnode.setAttribute( 'id', 'outputNode' ) ; |
||||
outnode.parentNode.replaceChild( newnode, outnode ) ; |
||||
outnode = GetE( 'outputNode' ) ; |
||||
var n = outnode.childNodes.length ; |
||||
for ( var i = 0; i < n; i++ ) |
||||
{ |
||||
outnode.removeChild( outnode.firstChild ) ; |
||||
} |
||||
outnode.appendChild( document.createComment( '`' + str + '`' ) ) ; |
||||
AMprocessNode( outnode, true ) ; |
||||
if ( FCKLang['DlgAsciiMathShowMathML'] ) |
||||
{ |
||||
GetE( 'show_mathml' ).value = FCKLang['DlgAsciiMathShowMathML'] ; |
||||
} |
||||
} |
||||
else |
||||
{ |
||||
var outnode = GetE( 'outputNode' ) ; |
||||
var n = outnode.childNodes.length ; |
||||
for ( var i = 0; i < n; i++ ) |
||||
{ |
||||
outnode.removeChild( outnode.firstChild ) ; |
||||
} |
||||
} |
||||
} |
||||
|
||||
function AMnode2string( inNode, indent ) |
||||
{ |
||||
// thanks to James Frazer for contributing an initial version of this function
|
||||
var i, str = '' ; |
||||
if ( inNode.nodeType == 1 ) |
||||
{ |
||||
var name = inNode.nodeName.toLowerCase() ; // (IE fix)
|
||||
str = '\r' + indent + '<' + name ; |
||||
for ( i = 0; i < inNode.attributes.length; i++ ) |
||||
{ |
||||
if ( inNode.attributes[i].nodeValue != 'italic' && |
||||
inNode.attributes[i].nodeValue != '' && //stop junk attributes
|
||||
inNode.attributes[i].nodeValue != 'inherit' && // (mostly IE)
|
||||
inNode.attributes[i].nodeValue != undefined && |
||||
inNode.attributes[i].nodeName[0] != '-' ) |
||||
{ |
||||
str += ' ' + inNode.attributes[i].nodeName + '=' + '"' + inNode.attributes[i].nodeValue + '"' ; |
||||
} |
||||
} |
||||
if ( name == 'math' ) |
||||
{ |
||||
str += ' xmlns="http://www.w3.org/1998/Math/MathML"' ; |
||||
} |
||||
str += '>' ; |
||||
for ( i = 0; i < inNode.childNodes.length; i++ ) |
||||
{ |
||||
str += AMnode2string( inNode.childNodes[i], indent + ' ' ) ; |
||||
} |
||||
if ( name != 'mo' && name != 'mi' && name != 'mn' ) str += '\r' + indent ; |
||||
str += '</' + name + '>' ; |
||||
} |
||||
else if( inNode.nodeType == 3 ) |
||||
{ |
||||
var st = inNode.nodeValue ; |
||||
for ( i = 0; i < st.length; i++ ) |
||||
{ |
||||
if ( st.charCodeAt( i ) < 32 || st.charCodeAt( i ) > 126 ) |
||||
{ |
||||
str += '&#' + st.charCodeAt( i ) + ';' ; |
||||
} |
||||
else if ( st.charAt(i) == '<' && indent != ' ' ) str += '<' ; |
||||
else if ( st.charAt(i) == '>' && indent != ' ' ) str += '>' ; |
||||
else if ( st.charAt(i) == '&' && indent != ' ' ) str += '&' ; |
||||
else str += st.charAt( i ) ; |
||||
} |
||||
} |
||||
return str ; |
||||
} |
||||
|
||||
function ShowMathML() |
||||
{ |
||||
if ( GetE( 'inputText' ).value != '' ) |
||||
{ |
||||
var math = GetE( 'outputNode' ).getElementsByTagName( 'math' )[0] ; |
||||
if ( math ) |
||||
{ |
||||
var width ; |
||||
if ( GetE( 'outputNode' ).offsetWidth ) |
||||
{ |
||||
width = GetE( 'outputNode' ).offsetWidth ; |
||||
} |
||||
|
||||
math.parentNode.innerHTML = '<pre>' + FCKTools.HTMLEncode( AMnode2string( math, '' ) ) + '</pre>' ; |
||||
|
||||
if ( width && FCKBrowserInfo.IsGecko ) |
||||
{ |
||||
GetE( 'outputNode' ).style.width = width + 'px' ; |
||||
} |
||||
|
||||
if ( FCKLang['DlgAsciiMathFormulaPreview'] ) |
||||
{ |
||||
GetE( 'show_mathml' ).value = FCKLang['DlgAsciiMathFormulaPreview'] ; |
||||
} |
||||
} |
||||
else |
||||
{ |
||||
Preview() ; |
||||
} |
||||
} |
||||
else |
||||
{ |
||||
Preview() ; |
||||
} |
||||
} |
||||
|
||||
// Highlighting formulas.
|
||||
|
||||
function over(td) |
||||
{ |
||||
td.className = 'LightBackground Hand' ; |
||||
} |
||||
|
||||
function out(td) |
||||
{ |
||||
td.className = 'Hand' ; |
||||
} |
||||
@ -0,0 +1,281 @@ |
||||
/** |
||||
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. |
||||
* For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/ |
||||
|
||||
'use strict'; |
||||
|
||||
CKEDITOR.dialog.add( 'asciimath', function( editor ) { |
||||
|
||||
var preview, |
||||
lang = editor.lang.asciimath; |
||||
|
||||
var imagePath = CKEDITOR.basePath+'plugins/asciimath/images/'; |
||||
|
||||
return { |
||||
title: lang.title, |
||||
minWidth: 350, |
||||
minHeight: 100, |
||||
contents: [ |
||||
{ |
||||
id: 'info', |
||||
elements: [ |
||||
{ |
||||
id: 'equation', |
||||
type: 'textarea', |
||||
label: lang.dialogInput, |
||||
|
||||
onLoad: function( widget ) { |
||||
var that = this; |
||||
|
||||
if ( !( CKEDITOR.env.ie && CKEDITOR.env.version == 8 ) ) { |
||||
this.getInputElement().on( 'keyup', function() { |
||||
// Add ` and ` for preview.
|
||||
preview.setValue( '`' + that.getInputElement().getValue() + '`' ); |
||||
} ); |
||||
} |
||||
}, |
||||
|
||||
setup: function( widget ) { |
||||
// Remove ` and `.
|
||||
this.setValue( CKEDITOR.plugins.asciimath.trim( widget.data.math ) ); |
||||
}, |
||||
|
||||
commit: function( widget ) { |
||||
// Add ` and ` to make ASCII be parsed by MathJax by default.
|
||||
widget.setData( 'math', '`' + this.getValue() + '`' ); |
||||
} |
||||
}, |
||||
{ |
||||
id: 'clickInput', |
||||
type: 'html', |
||||
html: |
||||
'<style type="text/css">'+ |
||||
'body, td, input, textarea, select, label, button { font-family: Arial, Verdana, Geneva, helvetica, sans-serif; font-size: 11px; }' + |
||||
'form { padding: 0px; margin: 0px; }' + |
||||
'form p { margin-top: 5px; margin-bottom: 5px; }' + |
||||
|
||||
'#clickInput' + |
||||
'{' + |
||||
'width: 100%;' + |
||||
'border-collapse: collapse;' + |
||||
'background-color: white;' + |
||||
'text-align: center;' + |
||||
'}' + |
||||
'#clickInput td' + |
||||
'{' + |
||||
'border: 1px solid gray;' + |
||||
'font-size: 1.1em;' + |
||||
'}' + |
||||
|
||||
'.Hand' + |
||||
'{' + |
||||
'cursor: pointer;' + |
||||
'cursor: hand;' + |
||||
'}' + |
||||
|
||||
'</style>'+ |
||||
'<table id="clickInput">' + |
||||
'<tr>' + |
||||
'<td colspan="3" class="Hand" title="(x+1)/(x-1)" onclick="javascript: Set(\'(x+1)/(x-1)\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'x1x1.png" /></td>' + |
||||
'<td colspan="2" class="Hand" title="x^(m+n)" onclick="javascript: Set(\'x^(m+n)\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'xmn.png" /></td>' + |
||||
'<td colspan="2" class="Hand" title="x_(mn)" onclick="javascript: Set(\'x_(mn)\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'x_mn.png" /></td>' + |
||||
'<td colspan="2" class="Hand" title="sqrt(x)" onclick="javascript: Set(\'sqrt(x)\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'sqrtx.png" /></td>' + |
||||
'<td colspan="3" class="Hand" title="root(n)(x)" onclick="javascript: Set(\'root(n)(x)\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'rootnx.png" /></td>' + |
||||
'<td colspan="3" class="Hand" title="{(1 if x>=0),(0 if x<0):}" onclick="javascript: Set(\'{(1 if x>=0),(0 if x<0):}\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'ifx.png" /></td>' + |
||||
'<td colspan="2" class="Hand" title=""text"" onclick="javascript: Set(\'"text"\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'text.png" /></td>' + |
||||
'</tr><tr>' + |
||||
'<td colspan="2" class="Hand" title="dy/dx" onclick="javascript: Set(\'dy/dx\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'dydx.png" /></td>' + |
||||
'<td colspan="3" class="Hand" title="lim_(x->oo)" onclick="javascript: Set(\'lim_(x->oo)\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'lim.png" /></td>' + |
||||
'<td colspan="3" class="Hand" title="sum_(n=1)^oo" onclick="javascript: Set(\'sum_(n=1)^oo\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'sumn.png" /></td>' + |
||||
'<td colspan="3" class="Hand" title="int_a^bf(x)dx" onclick="javascript: Set(\'int_a^bf(x)dx\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'intab.png" /></td>' + |
||||
'<td colspan="3" class="Hand" title="[[a,b],[c,d]]" onclick="javascript: Set(\'[[a,b],[c,d]]\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'abcd.png" /></td>' + |
||||
'<td colspan="2" class="Hand" title="((n),(k))" onclick="javascript: Set(\'((n),(k))\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'nk.png" /></td>' + |
||||
'</tr><tr>' + |
||||
'<td class="Hand" title="*" onclick="javascript: Set(\'*\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'dot.png" /></td>' + |
||||
'<td class="Hand" title="**" onclick="javascript: Set(\'**\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'star.png" /></td>' + |
||||
'<td class="Hand" title="//" onclick="javascript: Set(\'//\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'slash.png" /></td>' + |
||||
'<td class="Hand" title="\\" onclick="javascript: Set(\'\\\\\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'backslash.png" /></td>' + |
||||
'<td class="Hand" title="xx" onclick="javascript: Set(\'xx\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'times.png" /></td>' + |
||||
'<td class="Hand" title="-:" onclick="javascript: Set(\'-:\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'div.png" /></td>' + |
||||
'<td class="Hand" title="@" onclick="javascript: Set(\'@\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'circ.png" /></td>' + |
||||
'<td class="Hand" title="o+" onclick="javascript: Set(\'o+\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'oplus.png" /></td>' + |
||||
'<td class="Hand" title="ox" onclick="javascript: Set(\'ox\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'otimes.png" /></td>' + |
||||
'<td class="Hand" title="o." onclick="javascript: Set(\'o.\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'odot.png" /></td>' + |
||||
'<td class="Hand" title="sum" onclick="javascript: Set(\'sum\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'sum.png" /></td>' + |
||||
'<td class="Hand" title="prod" onclick="javascript: Set(\'prod\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'prod.png" /></td>' + |
||||
'<td class="Hand" title="^^" onclick="javascript: Set(\'^^\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'wedge.png" /></td>' + |
||||
'<td class="Hand" title="^^^" onclick="javascript: Set(\'^^^\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'bigwedge.png" /></td>' + |
||||
'<td class="Hand" title="vv" onclick="javascript: Set(\'vv\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'vee.png" /></td>' + |
||||
'<td class="Hand" title="vvv" onclick="javascript: Set(\'vvv\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'bigvee.png" /></td>' + |
||||
'</tr><tr>' + |
||||
'<td class="Hand" title="!=" onclick="javascript: Set(\'!=\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'ne.png" /></td>' + |
||||
'<td class="Hand" title="<=" onclick="javascript: Set(\'<=\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'le.png" /></td>' + |
||||
'<td class="Hand" title=">=" onclick="javascript: Set(\'>=\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'ge.png" /></td>' + |
||||
'<td class="Hand" title="-<" onclick="javascript: Set(\'-<\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'prec.png" /></td>' + |
||||
'<td class="Hand" title=">-" onclick="javascript: Set(\'>-\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'succ.png" /></td>' + |
||||
'<td class="Hand" title="in" onclick="javascript: Set(\'in\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'in.png" /></td>' + |
||||
'<td class="Hand" title="!in" onclick="javascript: Set(\'!in\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'notin.png" /></td>' + |
||||
'<td class="Hand" title="sub" onclick="javascript: Set(\'sub\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'subset.png" /></td>' + |
||||
'<td class="Hand" title="sup" onclick="javascript: Set(\'sup\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'supset.png" /></td>' + |
||||
'<td class="Hand" title="sube" onclick="javascript: Set(\'sube\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'subseteq.png" /></td>' + |
||||
'<td class="Hand" title="supe" onclick="javascript: Set(\'supe\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'supseteq.png" /></td>' + |
||||
'<td class="Hand" title="O/" onclick="javascript: Set(\'O/\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'emptyset.png" /></td>' + |
||||
'<td class="Hand" title="nn" onclick="javascript: Set(\'nn\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'cap.png" /></td>' + |
||||
'<td class="Hand" title="nnn" onclick="javascript: Set(\'nnn\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'bigcap.png" /></td>' + |
||||
'<td class="Hand" title="uu" onclick="javascript: Set(\'uu\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'cup.png" /></td>' + |
||||
'<td class="Hand" title="uuu" onclick="javascript: Set(\'uuu\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'bigcup.png" /></td>' + |
||||
'</tr><tr>' + |
||||
'<td class="Hand" title="and" onclick="javascript: Set(\'and\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'text_and.png" /></td>' + |
||||
'<td class="Hand" title="or" onclick="javascript: Set(\'or\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'text_or.png" /></td>' + |
||||
'<td class="Hand" title="not" onclick="javascript: Set(\'not\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'not.png" /></td>' + |
||||
'<td class="Hand" title="=>" onclick="javascript: Set(\'=>\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'rightarrow.png" /></td>' + |
||||
'<td class="Hand" title="if" onclick="javascript: Set(\'if\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'if.png" /></td>' + |
||||
'<td class="Hand" title="<=>" onclick="javascript: Set(\'<=>\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'leftrightarrow.png" /></td>' + |
||||
'<td class="Hand" title="AA" onclick="javascript: Set(\'AA\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'forall.png" /></td>' + |
||||
'<td class="Hand" title="EE" onclick="javascript: Set(\'EE\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'exists.png" /></td>' + |
||||
'<td class="Hand" title="_|_" onclick="javascript: Set(\'_|_\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'bot.png" /></td>' + |
||||
'<td class="Hand" title="TT" onclick="javascript: Set(\'TT\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'top.png" /></td>' + |
||||
'<td class="Hand" title="|--" onclick="javascript: Set(\'|--\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'vdash.png" /></td>' + |
||||
'<td class="Hand" title="|==" onclick="javascript: Set(\'|==\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'models.png" /></td>' + |
||||
'<td class="Hand" title="-=" onclick="javascript: Set(\'-=\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'equiv.png" /></td>' + |
||||
'<td class="Hand" title="~=" onclick="javascript: Set(\'~=\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'cong.png" /></td>' + |
||||
'<td class="Hand" title="~~" onclick="javascript: Set(\'~~\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'approx.png" /></td>' + |
||||
'<td class="Hand" title="prop" onclick="javascript: Set(\'prop\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'propto.png" /></td>' + |
||||
'</tr><tr>' + |
||||
'<td class="Hand" title="int" onclick="javascript: Set(\'int\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'int.png" /></td>' + |
||||
'<td class="Hand" title="oint" onclick="javascript: Set(\'oint\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'oint.png" /></td>' + |
||||
'<td class="Hand" title="del" onclick="javascript: Set(\'del\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'partial.png" /></td>' + |
||||
'<td class="Hand" title="grad" onclick="javascript: Set(\'grad\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'nabla.png" /></td>' + |
||||
'<td class="Hand" title="+-" onclick="javascript: Set(\'+-\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'pm.png" /></td>' + |
||||
'<td class="Hand" title="oo" onclick="javascript: Set(\'oo\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'infty.png" /></td>' + |
||||
'<td class="Hand" title="A\ B (space between A and B)" onclick="javascript: Set(\'A\\ B\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'space.png" /></td>' + |
||||
'<td class="Hand" title="AquadB (double space between A and B)" onclick="javascript: Set(\'AquadB\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'quad.png" /></td>' + |
||||
'<td class="Hand" title="diamond" onclick="javascript: Set(\'diamond\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'diamond.png" /></td>' + |
||||
'<td class="Hand" title="square" onclick="javascript: Set(\'square\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'square.png" /></td>' + |
||||
'<td class="Hand" title="|__" onclick="javascript: Set(\'|__\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'lfloor.png" /></td>' + |
||||
'<td class="Hand" title="__|" onclick="javascript: Set(\'__|\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'rfloor.png" /></td>' + |
||||
'<td class="Hand" title="|~" onclick="javascript: Set(\'|~\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'lceil.png" /></td>' + |
||||
'<td class="Hand" title="~|" onclick="javascript: Set(\'~|\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'rceil.png" /></td>' + |
||||
'<td class="Hand" title="<<x>>" onclick="javascript: Set(\'<<x>>\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'braxcket.png" /></td>' + |
||||
'<td class="Hand" title="/_" onclick="javascript: Set(\'/_\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'angle.png" /></td>' + |
||||
'</tr><tr>' + |
||||
'<td class="Hand" title="uarr" onclick="javascript: Set(\'uarr\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'uarr.png" /></td>' + |
||||
'<td class="Hand" title="darr" onclick="javascript: Set(\'darr\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'darr.png" /></td>' + |
||||
'<td class="Hand" title="larr" onclick="javascript: Set(\'larr\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'larr.png" /></td>' + |
||||
'<td class="Hand" title="->" onclick="javascript: Set(\'->\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'rarr.png" /></td>' + |
||||
'<td class="Hand" title="|->" onclick="javascript: Set(\'|->\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'mapsto.png" /></td>' + |
||||
'<td class="Hand" title="harr" onclick="javascript: Set(\'harr\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'harr.png" /></td>' + |
||||
'<td class="Hand" title="lArr" onclick="javascript: Set(\'lArr\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'llarr.png" /></td>' + |
||||
'<td class="Hand" title="rArr" onclick="javascript: Set(\'rArr\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'rrarr.png" /></td>' + |
||||
'<td class="Hand" title="hArr" onclick="javascript: Set(\'hArr\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'hharr.png" /></td>' + |
||||
'<td class="Hand" title="hata" onclick="javascript: Set(\'hata\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'hata.png" /></td>' + |
||||
'<td class="Hand" title="ula" onclick="javascript: Set(\'ula\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'ula.png" /></td>' + |
||||
'<td class="Hand" title="dota" onclick="javascript: Set(\'dota\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'dota.png" /></td>' + |
||||
'<td class="Hand" title="ddota" onclick="javascript: Set(\'ddota\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'ddota.png" /></td>' + |
||||
'<td class="Hand" title="veca" onclick="javascript: Set(\'veca\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'veca.png" /></td>' + |
||||
'<td class="Hand" title="bara" onclick="javascript: Set(\'bara\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'bara.png" /></td>' + |
||||
'<td class="Hand" title=":." onclick="javascript: Set(\':.\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'therefore.png" /></td>' + |
||||
'</tr><tr>' + |
||||
'<td class="Hand" title="NN" onclick="javascript: Set(\'NN\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'nn.png" /></td>' + |
||||
'<td class="Hand" title="ZZ" onclick="javascript: Set(\'ZZ\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'zz.png" /></td>' + |
||||
'<td class="Hand" title="QQ" onclick="javascript: Set(\'QQ\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'qq.png" /></td>' + |
||||
'<td class="Hand" title="RR" onclick="javascript: Set(\'RR\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'rr.png" /></td>' + |
||||
'<td class="Hand" title="CC" onclick="javascript: Set(\'CC\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'cc.png" /></td>' + |
||||
'<td class="Hand" title="bbA" onclick="javascript: Set(\'bbA\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'bba.png" /></td>' + |
||||
'<td class="Hand" title="bbbA" onclick="javascript: Set(\'bbbA\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'bbba.png" /></td>' + |
||||
'<td class="Hand" title="ccA" onclick="javascript: Set(\'ccA\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'cca.png" /></td>' + |
||||
'<td class="Hand" title="frA" onclick="javascript: Set(\'frA\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'fra.png" /></td>' + |
||||
'<td class="Hand" title="sfA" onclick="javascript: Set(\'sfA\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'sfa.png" /></td>' + |
||||
'<td class="Hand" title="ttA" onclick="javascript: Set(\'ttA\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'tta.png" /></td>' + |
||||
'<td colspan="3" class="Hand" title="stackrel(->)(+)" onclick="javascript: Set(\'stackrel(->)(+)\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'stackrel.png" /></td>' + |
||||
'<td class="Hand" title="aleph" onclick="javascript: Set(\'aleph\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'aleph.png" /></td>' + |
||||
'<td class="Hand" title="upsilon" onclick="javascript: Set(\'upsilon\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'upsilon.png" /></td>' + |
||||
'</tr><tr>' + |
||||
'<td class="Hand" title="alpha" onclick="javascript: Set(\'alpha\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'alpha.png" /></td>' + |
||||
'<td class="Hand" title="beta" onclick="javascript: Set(\'beta\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'beta.png" /></td>' + |
||||
'<td class="Hand" title="gamma" onclick="javascript: Set(\'gamma\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'gamma.png" /></td>' + |
||||
'<td class="Hand" title="Gamma" onclick="javascript: Set(\'Gamma\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'ggamma.png" /></td>' + |
||||
'<td class="Hand" title="delta" onclick="javascript: Set(\'delta\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'delta.png" /></td>' + |
||||
'<td class="Hand" title="Delta" onclick="javascript: Set(\'Delta\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'ddelta.png" /></td>' + |
||||
'<td class="Hand" title="epsi" onclick="javascript: Set(\'epsi\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'epsilon.png" /></td>' + |
||||
'<td class="Hand" title="zeta" onclick="javascript: Set(\'zeta\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'zeta.png" /></td>' + |
||||
'<td class="Hand" title="eta" onclick="javascript: Set(\'eta\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'eta.png" /></td>' + |
||||
'<td class="Hand" title="theta" onclick="javascript: Set(\'theta\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'theta.png" /></td>' + |
||||
'<td class="Hand" title="Theta" onclick="javascript: Set(\'Theta\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'ttheta.png" /></td>' + |
||||
'<td class="Hand" title="iota" onclick="javascript: Set(\'iota\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'iota.png" /></td>' + |
||||
'<td class="Hand" title="kappa" onclick="javascript: Set(\'kappa\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'kappa.png" /></td>' + |
||||
'<td class="Hand" title="lambda" onclick="javascript: Set(\'lambda\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'lambda.png" /></td>' + |
||||
'<td class="Hand" title="Lambda" onclick="javascript: Set(\'Lambda\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'llambda.png" /></td>' + |
||||
'<td class="Hand" title="mu" onclick="javascript: Set(\'mu\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'mu.png" /></td>' + |
||||
'</tr><tr>' + |
||||
'<td class="Hand" title="nu" onclick="javascript: Set(\'nu\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'nu.png" /></td>' + |
||||
'<td class="Hand" title="pi" onclick="javascript: Set(\'pi\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'pi.png" /></td>' + |
||||
'<td class="Hand" title="Pi" onclick="javascript: Set(\'Pi\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'ppi.png" /></td>' + |
||||
'<td class="Hand" title="rho" onclick="javascript: Set(\'rho\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'rho.png" /></td>' + |
||||
'<td class="Hand" title="sigma" onclick="javascript: Set(\'sigma\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'sigma.png" /></td>' + |
||||
'<td class="Hand" title="Sigma" onclick="javascript: Set(\'Sigma\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'ssigma.png" /></td>' + |
||||
'<td class="Hand" title="tau" onclick="javascript: Set(\'tau\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'tau.png" /></td>' + |
||||
'<td class="Hand" title="xi" onclick="javascript: Set(\'xi\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'xi.png" /></td>' + |
||||
'<td class="Hand" title="Xi" onclick="javascript: Set(\'Xi\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'xxi.png" /></td>' + |
||||
'<td class="Hand" title="phi" onclick="javascript: Set(\'phi\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'phi.png" /></td>' + |
||||
'<td class="Hand" title="Phi" onclick="javascript: Set(\'Phi\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'pphi.png" /></td>' + |
||||
'<td class="Hand" title="chi" onclick="javascript: Set(\'chi\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'chi.png" /></td>' + |
||||
'<td class="Hand" title="psi" onclick="javascript: Set(\'psi\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'psi.png" /></td>' + |
||||
'<td class="Hand" title="Psi" onclick="javascript: Set(\'Psi\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'ppsi.png" /></td>' + |
||||
'<td class="Hand" title="omega" onclick="javascript: Set(\'omega\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'omega.png" /></td>' + |
||||
'<td class="Hand" title="Omega" onclick="javascript: Set(\'Omega\');" onmouseover="javascript: over(this);" onmouseout="javascript: out(this);"><img src="'+imagePath+'oomega.png" /></td>' + |
||||
'</tr>' + |
||||
'</table>' |
||||
}, |
||||
{ |
||||
id: 'documentation', |
||||
type: 'html', |
||||
html: |
||||
'<div style="width:100%;text-align:right;margin:-8px 0 10px">' + |
||||
'<a class="cke_mathjax_doc" href="' + lang.docUrl + '" target="_black" style="cursor:pointer;color:#00B2CE;text-decoration:underline">' + |
||||
lang.docLabel + |
||||
'</a>' + |
||||
'</div>' |
||||
}, |
||||
( !( CKEDITOR.env.ie && CKEDITOR.env.version == 8 ) ) && { |
||||
id: 'preview', |
||||
type: 'html', |
||||
html: |
||||
'<div style="width:100%;text-align:center;">' + |
||||
'<iframe style="border:0;width:0;height:0;font-size:20px" scrolling="no" frameborder="0" allowTransparency="true" src="' + CKEDITOR.plugins.asciimath.fixSrc + '"></iframe>' + |
||||
'</div>', |
||||
|
||||
onLoad: function( widget ) { |
||||
var iFrame = CKEDITOR.document.getById( this.domId ).getChild( 0 ); |
||||
preview = new CKEDITOR.plugins.asciimath.frameWrapper( iFrame, editor ); |
||||
}, |
||||
|
||||
setup: function( widget ) { |
||||
preview.setValue( widget.data.math ); |
||||
} |
||||
} |
||||
] |
||||
} |
||||
] |
||||
}; |
||||
} ); |
||||
|
||||
// Highlighting formulas.
|
||||
|
||||
function over(td) |
||||
{ |
||||
td.className = 'LightBackground Hand' ; |
||||
} |
||||
|
||||
function out(td) |
||||
{ |
||||
td.className = 'Hand' ; |
||||
} |
||||
|
||||
function Set( string ) |
||||
{ |
||||
var inputField = document.getElementsByTagName('textarea')[1]; |
||||
inputField.value += string ; |
||||
return false ; |
||||
} |
||||
|
After Width: | Height: | Size: 703 B |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 561 B |
|
After Width: | Height: | Size: 407 B |
|
After Width: | Height: | Size: 315 B |
|
After Width: | Height: | Size: 404 B |
|
After Width: | Height: | Size: 331 B |
|
After Width: | Height: | Size: 476 B |
|
After Width: | Height: | Size: 486 B |
|
After Width: | Height: | Size: 516 B |
|
After Width: | Height: | Size: 492 B |
|
After Width: | Height: | Size: 347 B |
|
After Width: | Height: | Size: 356 B |
|
After Width: | Height: | Size: 379 B |
|
After Width: | Height: | Size: 396 B |
|
After Width: | Height: | Size: 222 B |
|
After Width: | Height: | Size: 663 B |
|
After Width: | Height: | Size: 287 B |
|
After Width: | Height: | Size: 514 B |
|
After Width: | Height: | Size: 597 B |
|
After Width: | Height: | Size: 494 B |
|
After Width: | Height: | Size: 369 B |
|
After Width: | Height: | Size: 346 B |
|
After Width: | Height: | Size: 308 B |
|
After Width: | Height: | Size: 290 B |
|
After Width: | Height: | Size: 417 B |
|
After Width: | Height: | Size: 461 B |
|
After Width: | Height: | Size: 427 B |
|
After Width: | Height: | Size: 347 B |
|
After Width: | Height: | Size: 293 B |
|
After Width: | Height: | Size: 227 B |
|
After Width: | Height: | Size: 505 B |
|
After Width: | Height: | Size: 945 B |
|
After Width: | Height: | Size: 488 B |
|
After Width: | Height: | Size: 373 B |
|
After Width: | Height: | Size: 251 B |
|
After Width: | Height: | Size: 428 B |
|
After Width: | Height: | Size: 241 B |
|
After Width: | Height: | Size: 397 B |
|
After Width: | Height: | Size: 617 B |
|
After Width: | Height: | Size: 362 B |
|
After Width: | Height: | Size: 365 B |
|
After Width: | Height: | Size: 331 B |
|
After Width: | Height: | Size: 386 B |
|
After Width: | Height: | Size: 458 B |
|
After Width: | Height: | Size: 482 B |
|
After Width: | Height: | Size: 380 B |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 314 B |
@ -0,0 +1,8 @@ |
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
||||
<head> |
||||
</head> |
||||
<body> |
||||
<br /> |
||||
</body> |
||||
</html> |
||||
|
After Width: | Height: | Size: 524 B |
|
After Width: | Height: | Size: 477 B |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 285 B |
|
After Width: | Height: | Size: 392 B |
|
After Width: | Height: | Size: 396 B |
|
After Width: | Height: | Size: 321 B |
|
After Width: | Height: | Size: 269 B |
|
After Width: | Height: | Size: 358 B |
|
After Width: | Height: | Size: 373 B |
|
After Width: | Height: | Size: 254 B |
|
After Width: | Height: | Size: 855 B |
|
After Width: | Height: | Size: 446 B |
|
After Width: | Height: | Size: 373 B |
|
After Width: | Height: | Size: 784 B |
|
After Width: | Height: | Size: 377 B |
|
After Width: | Height: | Size: 222 B |
|
After Width: | Height: | Size: 428 B |
|
After Width: | Height: | Size: 507 B |
|
After Width: | Height: | Size: 397 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 514 B |
|
After Width: | Height: | Size: 221 B |
|
After Width: | Height: | Size: 410 B |
|
After Width: | Height: | Size: 466 B |
|
After Width: | Height: | Size: 452 B |
|
After Width: | Height: | Size: 630 B |
|
After Width: | Height: | Size: 526 B |
|
After Width: | Height: | Size: 677 B |
|
After Width: | Height: | Size: 521 B |
|
After Width: | Height: | Size: 542 B |
|
After Width: | Height: | Size: 495 B |
|
After Width: | Height: | Size: 567 B |
|
After Width: | Height: | Size: 480 B |
|
After Width: | Height: | Size: 286 B |
|
After Width: | Height: | Size: 649 B |
|
After Width: | Height: | Size: 479 B |
|
After Width: | Height: | Size: 601 B |
|
After Width: | Height: | Size: 337 B |
|
After Width: | Height: | Size: 417 B |
|
After Width: | Height: | Size: 397 B |
|
After Width: | Height: | Size: 583 B |
|
After Width: | Height: | Size: 621 B |
|
After Width: | Height: | Size: 649 B |
|
After Width: | Height: | Size: 310 B |