-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
83 lines (70 loc) · 2.29 KB
/
index.html
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Latex Math</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mathquill/0.10.1/mathquill.css">
<style>
#math-field {
width: 200px;
}
</style>
</head>
<body>
<p>Type math here:
<span id="math-field" maxlength="20"></span>
</p>
<p>LaTeX of what you typed:
<span id="latex"></span>
</p>
<p>MaTeX of what you typed:
<span id="expr"></span>
</p>
<p>Evaluated Answer:
<span id="ans"></span>
</p>
<button id="eval">EVAL</button>
<br>
<div class="CMD inputField">
<span>CMD INPUT</span>
<input id="latexInput1" placeholder="input latex to renderin the mathfield">
<button id="cmdInputButton">INPUT</button>
</div>
<br>
<br>
<div class="TYPED inputField">
<span>TYPEDTEXT INPUT</span>
<input id="latexInput2" placeholder="input latex to renderin the mathfield">
<button id="typeInputButton">INPUT</button>
</div>
<br>
<br>
<div class="WRITE inputField">
<span>WRITE INPUT</span>
<input id="latexInput3" placeholder="input latex to renderin the mathfield">
<button id="writeInputButton">INPUT</button>
</div>
<br>
<br>
<div class="KEY inputField">
<span>KEY INPUT</span>
<input id="latexInput4" placeholder="input latex to renderin the mathfield">
<button id="KeyInputButton">INPUT</button>
</div>
<br>
<div class="latex inputField">
<span>LATEX INPUT</span>
<input id="latexInput5" placeholder="input latex to renderin the mathfield">
<button id="LatexInputButton">INPUT</button>
</div>
<br>
<button id="clearAll">Clear All</button>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathquill/0.10.1/mathquill.js"></script>
<!-- <script src="src/mathquill.js"></script> -->
<script src="src/math-expressions.js"></script>
<script src="build/public/latex_combine.js"></script>
</body>
</html>