-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
182 lines (182 loc) · 13.6 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
181
182
<!DOCTYPE html>
<html lang="ch-CN">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LaTeX</title>
<link rel="icon" href="svg/currency-dollar.svg">
<link rel="stylesheet" href="latex.css">
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Sofia">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<script src="https://cdn.bootcss.com/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.0/es5/startup.js" integrity="sha512-LZZ88buOWCaSouKg9UNiW3N/vhBCprp0tpG9uNp+r6maXLDeBddAaqTmDduadI+WghoGaNlZG4NgCX0Xsxlfxg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script type="text/javascript"
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML,http://myserver.com/MathJax/config/local/local.js">
</script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script src="functions.js"></script>
</head>
<body>
<div id="topbar">
<a href="latex.html">
<div id="logo">
LaTeX
</div>
</a>
<button>
<svg id="apple" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-apple" viewBox="0 0 16 16">
<path d="M11.182.008C11.148-.03 9.923.023 8.857 1.18c-1.066 1.156-.902 2.482-.878 2.516.024.034 1.52.087 2.475-1.258.955-1.345.762-2.391.728-2.43zm3.314 11.733c-.048-.096-2.325-1.234-2.113-3.422.212-2.189 1.675-2.789 1.698-2.854.023-.065-.597-.79-1.254-1.157a3.692 3.692 0 0 0-1.563-.434c-.108-.003-.483-.095-1.254.116-.508.139-1.653.589-1.968.607-.316.018-1.256-.522-2.267-.665-.647-.125-1.333.131-1.824.328-.49.196-1.422.754-2.074 2.237-.652 1.482-.311 3.83-.067 4.56.244.729.625 1.924 1.273 2.796.576.984 1.34 1.667 1.659 1.899.319.232 1.219.386 1.843.067.502-.308 1.408-.485 1.766-.472.357.013 1.061.154 1.782.539.571.197 1.111.115 1.652-.105.541-.221 1.324-1.059 2.238-2.758.347-.79.505-1.217.473-1.282z"/>
<path d="M11.182.008C11.148-.03 9.923.023 8.857 1.18c-1.066 1.156-.902 2.482-.878 2.516.024.034 1.52.087 2.475-1.258.955-1.345.762-2.391.728-2.43zm3.314 11.733c-.048-.096-2.325-1.234-2.113-3.422.212-2.189 1.675-2.789 1.698-2.854.023-.065-.597-.79-1.254-1.157a3.692 3.692 0 0 0-1.563-.434c-.108-.003-.483-.095-1.254.116-.508.139-1.653.589-1.968.607-.316.018-1.256-.522-2.267-.665-.647-.125-1.333.131-1.824.328-.49.196-1.422.754-2.074 2.237-.652 1.482-.311 3.83-.067 4.56.244.729.625 1.924 1.273 2.796.576.984 1.34 1.667 1.659 1.899.319.232 1.219.386 1.843.067.502-.308 1.408-.485 1.766-.472.357.013 1.061.154 1.782.539.571.197 1.111.115 1.652-.105.541-.221 1.324-1.059 2.238-2.758.347-.79.505-1.217.473-1.282z"/>
</svg><span> Swift UI</span>
</button>
<input type="checkbox" id="searchButton" onclick="show_search()"></input>
<label for="searchButton">Search</label>
<a href="latex.css" target="_blank">
<button id="css">
CSS
</button>
</a>
<a href="functions.js" target="_blank">
<button id="js">
JavaScript
</button>
</a>
<a href="https://www.miraclefactory.co" target="_blank">
<button id="MF">
MiracleFactory
</button>
</a>
<a href="https://github.com/YuelinXin" id="link" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-github" viewBox="0 0 16 16">
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"/>
</svg> Yuelin Xin
</a>
</div>
<div id="sidebar">
<div id="fmc">
<h4>LaTeX Categories (FMC)</h4>
<h4 id="mathformulaTitle" data-id="a" onclick="show(this)">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-caret-right-fill" viewBox="0 0 16 16">
<path d="m12.14 8.753-5.482 4.796c-.646.566-1.658.106-1.658-.753V3.204a1 1 0 0 1 1.659-.753l5.48 4.796a1 1 0 0 1 0 1.506z"/>
</svg>
Composite Symbols
</h4>
<section id="mathformula">
<button onclick="add_double(this)" name="\{ \}">$$\{ \}$$</button>
<button onclick="add_double(this)" name="()">$$( )$$</button>
<button onclick="add_double(this)" name="[]">$$[ ]$$</button>
<button onclick="add(this)" name="\mid">$$\mid$$</button>
<button onclick="add(this)" name="\sqrt{a}">$$\sqrt{a}$$</button>
<button onclick="add(this)" name="C_a^b">$$C_a^b$$</button>
<button onclick="add(this)" class="big" name="\frac{a}{b}">$$\frac{a}{b}$$</button>
<button onclick="add(this)" class="big" name="\sum_{a}^{b}">$$\sum_{a}^{b}$$</button>
<button onclick="add(this)" class="big" name="\prod_{a}^{b}">$$\prod_{a}^{b}$$</button>
</section>
<h4 id="logicTitle" data-id="b" onclick="show(this)">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-caret-right-fill" viewBox="0 0 16 16">
<path d="m12.14 8.753-5.482 4.796c-.646.566-1.658.106-1.658-.753V3.204a1 1 0 0 1 1.659-.753l5.48 4.796a1 1 0 0 1 0 1.506z"/>
</svg>
Logic
</h4>
<section id="logic">
<button onclick="add(this)" name="\land">$$\land$$</button>
<button onclick="add(this)" name="\lor">$$\lor$$</button>
<button onclick="add(this)" name="\to">$$\to$$</button>
<button onclick="add(this)" name="\gets">$$\gets$$</button>
<button onclick="add(this)" name="\leftrightarrow">$$\leftrightarrow$$</button>
<button onclick="add(this)" name="\lnot">$$\lnot$$</button>
<button onclick="add(this)" name="\forall">$$\forall$$</button>
<button onclick="add(this)" name="\exists">$$\exists$$</button>
<button onclick="add(this)" name="\equiv">$$\equiv$$</button>
<button onclick="add(this)" name="\iff">$$\iff$$</button>
<button onclick="add(this)" name="\models">$$\models$$</button>
</section>
<h4 id="relationTitle" data-id="c" onclick="show(this)">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-caret-right-fill" viewBox="0 0 16 16">
<path d="m12.14 8.753-5.482 4.796c-.646.566-1.658.106-1.658-.753V3.204a1 1 0 0 1 1.659-.753l5.48 4.796a1 1 0 0 1 0 1.506z"/>
</svg>
Relation
</h4>
<section id="relation">
<button onclick="add(this)" name="\circ">$$\circ$$</button>
<button onclick="add(this)" name="\times">$$\times$$</button>
<button onclick="add(this)" name="\le">$$\le$$</button>
<button onclick="add(this)" name="\ge">$$\ge$$</button>
<button onclick="add(this)" name="\prec">$$\prec$$</button>
<button onclick="add(this)" name="\succ">$$\succ$$</button>
<button onclick="add(this)" name="\preccurlyeq">$$\preccurlyeq$$</button>
<button onclick="add(this)" name="\succcurlyeq">$$\succcurlyeq$$</button>
<button onclick="add(this)" name="\neq">$$\neq$$</button>
<button onclick="add(this)" name="\mapsto">$$\mapsto$$</button>
</section>
<h4 id="setTitle" data-id="d" onclick="show(this)">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-caret-right-fill" viewBox="0 0 16 16">
<path d="m12.14 8.753-5.482 4.796c-.646.566-1.658.106-1.658-.753V3.204a1 1 0 0 1 1.659-.753l5.48 4.796a1 1 0 0 1 0 1.506z"/>
</svg>
Set
</h4>
<section id="set">
<button onclick="add(this)" name="\mathbb{N}">$$\mathbb{N}$$</button>
<button onclick="add(this)" name="\mathbb{Z}">$$\mathbb{Z}$$</button>
<button onclick="add(this)" name="\mathbb{Q}">$$\mathbb{Q}$$</button>
<button onclick="add(this)" name="\mathbb{R}">$$\mathbb{R}$$</button>
<button onclick="add(this)" name="\varnothing">$$\varnothing$$</button>
<button onclick="add(this)" name="\in">$$\in$$</button>
<button onclick="add(this)" name="\ni">$$\ni$$</button>
<button onclick="add(this)" name="\notin">$$\notin$$</button>
<button onclick="add(this)" name="\supset">$$\supset$$</button>
<button onclick="add(this)" name="\subset">$$\subset$$</button>
<button onclick="add(this)" name="\supseteq">$$\supseteq$$</button>
<button onclick="add(this)" name="\subseteq">$$\subseteq$$</button>
<button onclick="add(this)" name="\cup">$$\cup$$</button>
<button onclick="add(this)" name="\cap">$$\cap$$</button>
<button onclick="add(this)" name="\setminus">$$\setminus$$</button>
<button onclick="add(this)" name="\uplus">$$\uplus$$</button>
<button onclick="add(this)" name="\oplus">$$\oplus$$</button>
</section>
</div>
<div id="search">
<input type="text" id="searchBox" placeholder="Search" />
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16">
<path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/>
</svg>
</div>
</div>
<div id="mainContent">
<div id="guide">
<h2>Guide</h2>
<h3><a href="latex.html" id="refresh"><i><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-clockwise" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M8 3a5 5 0 1 0 4.546 2.914.5.5 0 0 1 .908-.417A6 6 0 1 1 8 2v1z"/>
<path d="M8 4.466V.534a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384L8.41 4.658A.25.25 0 0 1 8 4.466z"/>
</svg> Refresh the page if LaTeX isn't shown correctly</i></a></h3>
<h3>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-down-right-circle" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8zm15 0A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.854 5.146a.5.5 0 1 0-.708.708L9.243 9.95H6.475a.5.5 0 1 0 0 1h3.975a.5.5 0 0 0 .5-.5V6.475a.5.5 0 1 0-1 0v2.768L5.854 5.146z"/>
</svg> Step 1: Find a LaTeX symbol you want on the left side
</h3>
<h3>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-right-circle" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8zm15 0A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM4.5 7.5a.5.5 0 0 0 0 1h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5H4.5z"/>
</svg> Step 2: Click it in the side box
</h3>
<h3>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-right-circle" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8zm15 0A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM4.5 7.5a.5.5 0 0 0 0 1h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5H4.5z"/>
</svg> Step 3: Edit the result in the edit box below and copy, and DONE! (You can see the result in the live rendering box)
</h3>
</div>
<div>
<textarea id="wordbox" rows="10" cols="50" placeholder="Edit Your LaTeX Here" onkeyup="render()"></textarea>
<div id="outputBox">Live Rendering</div>
</div>
<button class="functionButton" id="copy" onclick="copy()">Copy</button>
<button class="functionButton" id="clear">Clear</button>
<button class="functionButton" id="L_block" name="$$ $$" onclick="add_double(this)">LaTeX $$</button>
<button class="functionButton" id="L_inline" name="\( \)" onclick="add_double(this)">LaTeX ()</button>
<button class="functionButton" id="rendersetting" onclick="change_render_mode(this)">AutoRender</button>
<br />
<span id="sign">Designed by Yuelin Xin, 2022/6/8, Beta Version</span>
</div>
</body>
</html>