-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathdraw.html
68 lines (58 loc) · 2.11 KB
/
draw.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Drawing</title>
<!--<script type="text/x-mathjax-config">-->
<!--MathJax.Hub.Config({-->
<!--extensions: ["tex2jax.js"],-->
<!--jax: ["input/TeX", "output/SVG"],-->
<!--tex2jax: {-->
<!--inlineMath: [ ['$','$'], ["\\(","\\)"] ],-->
<!--displayMath: [ ['$$','$$'], ["\\[","\\]"] ],-->
<!--processEscapes: true-->
<!--},-->
<!--"HTML-CSS": { availableFonts: ["TeX"] },-->
<!--skipStartupTypeset: false-->
<!--});-->
<!--</script>-->
<!--<script type="text/javascript"-->
<!--src="https://cdn.mathjax.org/mathjax/latest/MathJax.js">-->
<!--</script>-->
<script src="/files/egal/static/jquery-2.0.3.js"></script>
<script src="/files/egal/static/require.js"></script>
<link rel="stylesheet" href="/files/egal/static/bootstrap/css/bootstrap.css">
<script src="/files/egal/static/bootstrap/js/bootstrap.js"></script>
<link rel="stylesheet" href="egal/static/font-awesome-4.7.0/css/font-awesome.min.css">
<script type="text/javascript"
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js">
</script>
<script>
MathJax.Hub.Config({
jax: ["input/TeX", "output/HTML-CSS", "output/PreviewHTML"],
// jax: ["input/TeX", "output/SVG", "output/PreviewHTML"],
extensions: ["tex2jax.js", "MathMenu.js", "MathZoom.js", "fast-preview.js", "AssistiveMML.js", "[Contrib]/a11y/accessibility-menu.js"],
TeX: {
extensions: ["AMSmath.js", "AMSsymbols.js", "noErrors.js", "noUndefined.js"]
},
skipStartupTypeset: true
});
</script>
</head>
<body>
<div id="drup"></div>
<script>
require.config({
baseUrl: '/files/egal/static/',
paths: {
jquery: 'jquery-2.0.3',
bootstrap: 'bootstrap/js/bootstrap',
}
});
require(['snap.svg', 'egal'], function (snap, egal) {
// console.log("Egal Loaded in edit_svg");
drupyter = new egal.Egal('#drup', {width: "100%", drawName: "blah"});
});
</script>
</body>
</html>