-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathworkplace9.html
143 lines (121 loc) · 5.16 KB
/
workplace9.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
<html lang="en">
<head>
<meta charset="utf-8">
<title>CoffeeTeX Unicode Editor</title>
<link href="stylev1.css" rel="stylesheet"/>
<script src="js/jquery.js"></script>
<script src="js/jquery.autosize.min.js"></script>
<script> $(function(){
$('#text').autosize();
$('#text2').autosize();
$('#text3').autosize();
});</script>
<script src="js/bootstrap.js"></script>
<link href="js/bootstrap.css" rel="stylesheet">
<script src="js/PressAndHold/unicode2latex.js"></script>
<script src="js/PressAndHold/tex2unicode.js"></script>
<script src="js/PressAndHold/plugins.js"></script>
<script src="js/PressAndHold/popupchars.js"></script>
<script src="js/PressAndHold/longpress.js"></script>
<script src="js/PressAndHold/app.js"></script>
<script src="js/PressAndHold/textareahelper.js"></script>
<script src="js/PressAndHold/tex_to_ctex.js"></script>
<script src="js/PressAndHold/ctex_to_tex.js"></script>
<script src="js/PressAndHold/tex_to_ctex.js"></script>
<script src="js/PressAndHold/ctex_to_tex.js"></script>
<script src="js/stmd.js"></script>
<script type="text/javascript" src="js/mathjaxconfig.js"></script>
<script type="text/javascript" src="mathjax/MathJax.js?config=TeX-MML-AM_HTMLorMML-full"></script>
<script type="text/javascript" src="js/parseCMD.js">
</script>
<script>
$(document).ready(function() {
function copyToClipboard(text) {
window.prompt("Copy to clipboard: Ctrl+C, Enter", text);
}
$('a[href="#latextab"]').click(function() {
copyToClipboard($('#latexpre').text());
});
$("#title").change(function() {
console.log('test');
document.title = $('#title').val();
localStorage.title9 = document.title;
});
if ($('#title').val() === ""){
document.title = localStorage.title9;
$("#title").val(localStorage.title9);
}
if ($("#text").val() === "") {
$("#text").val(localStorage.workplace9a);
}
if ($("#text2").val() === "") {
$("#text2").val(localStorage.workplace9b);
}
if ($("#text3").val() === "") {
$("#text3").val(localStorage.workplace9c);
}
$( "#text" ).keydown(function() {
localStorage.workplace9a = $("#text").val();
});
$( "#text2" ).keydown(function() {
localStorage.workplace9b = $("#text2").val();
});
$( "#text3" ).keydown(function() {
localStorage.workplace9c = $("#text3").val();
});
});
</script>
</head>
<body
<div class="container" style="width:1420px;">
<div class="row">
<div class="col-md-6" style="padding:0px; width:37%;">
<h1>
<input style="border:none;" id="title" size="15" type="text" value="">
</h1>
</div>
<div class="col-md-4" style="width:63%;">
<ul class="nav nav-tabs" role="tablist">
<li class="active"><a href="#preview" role="tab" data-toggle="tab">Preview</a></li>
<li><a href="#latextab" role="tab" data-toggle="tab">LaTeX</a></li>
<li><a href="#markdowntab" role="tab" data-toggle="tab">Markdown</a></li>
</ul>
</div>
<div class="col-md-4">
<p class="timing">TeX to CTeX in <span class="timing" id="parsetime"></span> ms.
CTeX to TeX in <span class="timing" id="rendertime"></span> ms.</p>
</div>
</div>
<div class="row">
<div class="col-md-6" style="border: 1px black solid; padding:0px; margin:0px; width:37%;">
<textarea id="text" spellcheck='false' placeholder="Press and hold a key to select a math symbol. For example, hold R to get ℝ or a to get α. Wrap the symbol in $...$ to get LaTeX output."></textarea>
<textarea id="text2" spellcheck='false' ></textarea>
<textarea id="text3" spellcheck='false' ></textarea>
</div>
<div class="col-md-6" style="width:63%;">
<div class="tab-content">
<div id="preview" class="tab-pane active">
<div id="preview1"></div>
<div id="preview2"></div>
<div id="preview3"></div>
</div>
<div id="latextab" class="tab-pane">
<code style="display:none;" id="latex"></code>
<pre id="latexpre">
</pre>
</div>
<div id="markdowntab" class="tab-pane">
<pre id="markdownpre"><code id="markdown"></code></pre>
</div>
</div>
</div>
</div>
<p>
<br>
<input type ="checkbox" checked id="textarea2"/> Show extra textareabox. <br>
<input type ="checkbox" id="textarea3"/> Show extra textareabox. <br>
</p>
<p>Click <a href="example.html">here</a> or <a href="example2.html">here</a> for a CoffeeTeX examples.</p>
</div>
</body>
</html>