forked from daniel3735928559/guppy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
180 lines (168 loc) · 6.07 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!doctype html>
<html>
<head>
<title>Guppy</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="lib/katex/katex-modified.min.css">
<script src="lib/katex/katex-modified.min.js"></script>
<script src="lib/mousetrap/mousetrap.min.js"></script>
<script type="text/javascript" src="src/guppy.js"></script>
<script type="text/javascript" src="index.js"></script>
<link rel="stylesheet" href="index.css">
<!-- github ribbon! -->
<a href="https://github.com/daniel3735928559/guppy">
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/e7bbb0521b397edbd5fe43e7f760759336b5e05f/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677265656e5f3030373230302e706e67"
alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png"></a>
<label><span style="font-size:40px;padding-right:10px;">Guppy</span> A WYSIWYG
Mathematics Editor</label>
</head>
<body>
<div>Click below to start typing a mathematical expression
(<a href="#" onclick="flash_help()">help</a>)</div> <br/>
<div id="guppy1"></div>
<br />
<div>Click the buttons to render the expression in various
plaintext formats</div> <br/>
<div id="result">
<button class="btn btn-default" id="xml_btn" onclick="">XML</button>
<button class="btn btn-default" id="text_btn">Text</button>
<button class="btn btn-default" id="latex_btn">LaTeX</button>
<button class="btn btn-default btn-danger" id="clear_btn">Clear</button>
<div id="stuff"></div>
</div><br />
<div>Cheat sheet: </div><br />
<div id="help_card">
<style>
td {
padding: 2px 10px;
}
</style>
<div style="float:left">
<table>
<tr>
<td><b>Type...</b></td>
<td><b>...to create</b></td>
</tr>
<tr>
<td>
<font face="monospace">exp or ^</font>
</td>
<td>Exponent</td>
</tr>
<tr>
<td>
<font face="monospace">sub or _</font>
</td>
<td>Subscript</td>
</tr>
<tr>
<td>
<font face="monospace">frac or / </font>
</td>
<td>Big fraction</td>
</tr>
<tr>
<td>
<font face="monospace">shift-/ </font>
</td>
<td>Division</td>
</tr>
<tr>
<td>
<font face="monospace">abs</font>
</td>
<td>Absolute value</td>
</tr>
<tr>
<td>
<font face="monospace">sqrt</font>
</td>
<td>Square root</td>
</tr>
<tr>
<td>
<font face="monospace">pi</font>
</td>
<td>pi</td>
</tr>
<tr>
<td>
<font face="monospace">sin/cos/tan</font>
</td>
<td>Sine/cosine/tangent</td>
</tr>
<tr>
<td>
<font face="monospace">log or ln</font>
</td>
<td>Natural logarithm</td>
</tr>
<tr>
<td>
<font face="monospace">diff or deriv</font>
</td>
<td>Derivative</td>
</tr>
<tr>
<td>
<font face="monospace">int</font>
</td>
<td>Indefinite integral</td>
</tr>
<tr>
<td>
<font face="monospace">defi</font>
</td>
<td>Definite integral</td>
</tr>
<tr>
<td>
<font face="monospace">smi/smd</font>
</td>
<td>Small indef/def integral</td>
</tr>
<tr>
<td>
<font face="monospace">sum</font>
</td>
<td>Summation</td>
</tr>
</table><br />
</div>
<div style="float:left">
<table>
<tr>
<td><b>Press...</b></td>
<td><b>...to do</b></td>
</tr>
<tr>
<td>
<font face="monospace">left/right arrows</font>
</td>
<td>Move cursor</td>
</tr>
<tr>
<td>
<font face="monospace">shift + left/right arrows</font>
</td>
<td>Select region</td>
</tr>
<tr>
<td>
<font face="monospace">ctrl + x/c/v</font>
</td>
<td>Cut/copy/paste</td>
</tr>
<tr>
<td>
<font face="monospace">ctrl + z/y</font>
</td>
<td>Undo/redo</td>
</tr>
</table>
</div>
</div>
</body>
</html>