blob: 8b78f59e355453f2a9148823d01e617c648bd188 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<!DOCTYPE html>
<html>
<!--
Copyright 2010 The Closure Library Authors. All Rights Reserved.
Use of this source code is governed by the Apache License, Version 2.0.
See the COPYING file for details.
-->
<head>
<title>Equation Editor Test</title>
<script src="../../base.js"></script>
<script src="deps.js"></script>
<script>
goog.require('goog.demos.editor.EquationEditor');
</script>
<link rel="stylesheet" href="../css/demo.css">
<link rel="stylesheet" href="../../css/dialog.css" />
<link rel="stylesheet" href="../../css/editor/equationeditor.css" />
</head>
<body>
<a href="#" onclick="openEditor()">Open Editor Dialog</a>
Initial equation:
<input type="text" value="" id="init">
<script>
function openEditor() {
var ed = new goog.demos.editor.EquationEditor();
ed.openEditor(document.getElementById('init').value);
}
</script>
</body>
</html>
|