-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFunctietheorie.html
225 lines (191 loc) · 9 KB
/
Functietheorie.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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<link href="stylev1.css" rel="stylesheet"/>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<script>
var vak = location.pathname.substring(location.pathname.lastIndexOf("/") + 1,location.pathname.lastIndexOf("."));
</script>
<script src="js/jquery.js"></script>
<script src="js/jquery.autosize.min.js"></script>
<link rel="shortcut icon" href="ico.png" />
<script> $(function(){
$('#text').autosize();
$('#text2').autosize();
$('#text3').autosize();
var mathoperators="";
mathoperators += "<div style=\"display:none\">";
mathoperators += " $";
mathoperators += " \\DeclareMathOperator{\\Rad}{Rad}";
mathoperators += " \\DeclareMathOperator{\\End}{End}";
mathoperators += " \\DeclareMathOperator{\\Ker}{Ker}";
mathoperators += " \\DeclareMathOperator{\\Imm}{Im}";
mathoperators += " \\DeclareMathOperator{\\I}{Im}";
mathoperators += " \\DeclareMathOperator{\\Hom}{Hom}";
mathoperators += " \\DeclareMathOperator{\\op}{op}";
mathoperators += " \\DeclareMathOperator{\\Mat}{Mat}";
mathoperators += " \\DeclareMathOperator{\\Irr}{Irr}";
mathoperators += " \\DeclareMathOperator{\\Id}{Id}";
mathoperators += " \\DeclareMathOperator{\\Arg}{Arg}";
mathoperators += " \\DeclareMathOperator{\\im}{Im}";
mathoperators += " \\DeclareMathOperator{\\re}{Re}";
mathoperators += " \\newenvironment{framed}{}{}";
mathoperators += " $";
mathoperators += "<\/div>";
$('body').append(mathoperators);
});
</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() {
$("#title").attr("name", vak);
$('a[href="#latextab"]').mouseup(function() {
function SelectText(element) {
var doc = document
, text = doc.getElementById(element)
, range, selection
;
if (doc.body.createTextRange) {
range = document.body.createTextRange();
range.moveToElementText(text);
range.select();
} else if (window.getSelection) {
selection = window.getSelection();
range = document.createRange();
range.selectNodeContents(text);
selection.removeAllRanges();
selection.addRange(range);
}
}
setTimeout(function() {
SelectText('latexpre');
}, 50);
});
$( "#text" ).keydown(function() {
localStorage[vak+"|"+document.title+"|1"] = $("#text").val();
});
$( "#text2" ).keydown(function() {
localStorage[vak+"|"+document.title+"|2"] = $("#text2").val();
});
$( "#text3" ).keydown(function() {
localStorage[vak+"|"+document.title+"|3"] = $("#text3").val();
});
if (localStorage[vak+"|"+document.title+"|check"] === "y"){
$("a.checksquare .fa-check-square-o").css("display", "inline");
$("a.checksquare .fa-square-o").css("display", "none");
}
else{
$("a.checksquare .fa-check-square-o").css("display", "none");
$("a.checksquare .fa-square-o").css("display", "inline");
}
$( ".checksquare" ).click(function() {
if (localStorage[vak+"|"+document.title+"|check"] === "y"){
localStorage[vak+"|"+document.title+"|check"] = "n";
$("a.checksquare .fa-check-square-o").css("display", "none");
$("a.checksquare .fa-square-o").css("display", "inline");
}
else {
localStorage[vak+"|"+document.title+"|check"] = "y";
$("a.checksquare .fa-check-square-o").css("display", "inline");
$("a.checksquare .fa-square-o").css("display", "none");
}
});
if (localStorage[vak+"|"+document.title+"|question"] === "y"){
$("a.question .fa-question").css("color", "red");
}
else{
$("a.question .fa-question").css("color", "grey");
}
$( ".question" ).click(function() {
if (localStorage[vak+"|"+document.title+"|question"] === "y"){
localStorage[vak+"|"+document.title+"|question"] = "n";
$("a.question .fa-question").css("color", "grey");
}
else {
localStorage[vak+"|"+document.title+"|question"] = "y";
$("a.question .fa-question").css("color", "red");
}
});
});
function ajaxit() {
var iFrameWindow = document.getElementById("myframe").contentWindow;
iFrameWindow.document.body.appendChild( document.getElementById("myform").cloneNode(true));
var frameForm = iFrameWindow.document.getElementById("myform");
frameForm.onsubmit = null;
frameForm.submit();
return false;
}
</script>
</head>
<body>
<div class="container" style="width:1420px;">
<div class="row">
<div class="col-md-6" style="padding:0px; width:37%;">
<h1>
<form style="margin:0" id="myform" onsubmit="return ajaxit();" autocomplete="on">
<input autocomplete="on" style="border:none;" placeholder="Type a title" id="title" size="15" type="text" value="">
<input style="visibility:hidden; display:none;" type="submit">
</form>
<iframe style="display:none;" id="myframe" src=""></iframe> <!-- you'll want this hidden -->
</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>
<li><a class="checksquare"><i class="fa fa-square-o"></i>
<i class="fa fa-check-square-o"></i></a></li>
<li><a class="question">
<i class="fa fa-question"></i></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=""></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>
</div>
</body>
</html>