「TeX数式のチェック」の版間の差分
ソースコードの整形 |
ソースコードの一部差し戻し(バグが発生したため) |
||
| 48行目: | 48行目: | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
Navigate("about:blank"); | Navigate("about:blank"); | ||
document. | document.write("<html><head></head><body>" + "<img src='" + url +"'/><br /><br />" + sel.Text + "</body></html>"); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| 76行目: | 76行目: | ||
ToolBar = false; | ToolBar = false; | ||
Navigate("about:blank"); | Navigate("about:blank"); | ||
document. | document.write("<html><head>"); | ||
document. | document.write("<script type='text/javascript' src='http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML'></script>"); | ||
document. | document.write("</head><body>"); | ||
document. | document.write("<br />\\(" + sel.Text + "\\)<br />"); | ||
document. | document.write("</body></html>"); | ||
refresh(); | refresh(); | ||
Visible = true; | Visible = true; | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
スポンサーリンク