-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathindex.html
124 lines (99 loc) · 4.66 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
<!DOCTYPE html>
<html>
<head>
<title>Markdown Editor</title>
<meta charset="UTF-8">
<script src="node_modules/detect-process/dist/detectProcess.js"></script>
<script>
const PROCESS_CONTEXT = detectProcess.getName();
// Only electron menu - if env is electron
if (PROCESS_CONTEXT === 'electron') {
document.write('<script src="scripts/menu.js"><\/script>');
window.$ = window.jQuery = require('./node_modules/jquery/dist/jquery.js');
} else {
document.write('<script src="https://code.jquery.com/jquery-2.1.4.min.js"><\/script>');
}
</script>
<!-- We use uikit and the uikit components: notify, htmleditor
-- The htmleditor is a modification and is loaded later ... -->
<link rel="stylesheet" href="node_modules/uikit/dist/css/uikit.css" />
<link rel="stylesheet" href="node_modules/uikit/dist/css/components/notify.css" />
<link rel="stylesheet" href="scripts/htmleditor.css">
<script src="node_modules/uikit/dist/js/uikit.js"></script>
<script src="node_modules/uikit/dist/js/components/notify.js"></script>
<link rel="stylesheet" href="node_modules/codemirror/lib/codemirror.css">
<script src="node_modules/codemirror/lib/codemirror.js"></script>
<script src="node_modules/codemirror/mode/markdown/markdown.js"></script>
<script src="node_modules/codemirror/addon/mode/overlay.js"></script>
<script src="node_modules/codemirror/mode/xml/xml.js"></script>
<script src="node_modules/codemirror/mode/gfm/gfm.js"></script>
<script src="node_modules/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
preview: "none",
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
processEscapes: true
},
messageStyle: "none"
});
</script>
<link rel="stylesheet" href="node_modules/highlightjs/styles/default.css">
<script src ="node_modules/markdown-table-template/dist/mdtable.js"></script>
<script src="node_modules/markdown-it-embed-mathjax-highlight/dist/markdown-it-embed-mathjax-highlight.js"></script>
<script src ="node_modules/highlightjs/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script>markdownItEmbedMathjaxHighlight.options.html = true;</script>
<script>marked = markdownItEmbedMathjaxHighlight;</script>
<script src="scripts/htmleditor.js"></script>
<script src="scripts/store.js"></script>
<!-- Highlight.js Note: Can not make it work through npm -->
<script>
// File browsing
if (PROCESS_CONTEXT === 'electron') {
document.write('<script type="text/javascript" src="scripts/electron.js"><\/script>');
} else {
document.write('<script type="text/javascript" src="scripts/web.js"><\/script>');
}
</script>
</head>
<body>
<div id="file-modal" class="uk-modal">
<div class="uk-modal-dialog file-modal">
<a class="uk-modal-close uk-close"></a>
</div>
</div>
<div id="image-modal" class="uk-modal">
<div class="uk-modal-dialog image-modal">
<a class="uk-modal-close uk-close"></a>
</div>
</div>
<div id="video-modal" class="uk-modal">
<div class="uk-modal-dialog video-modal">
<a class="uk-modal-close uk-close"></a>
</div>
</div>
<div id="table-modal" class="uk-modal">
<div class="uk-modal-dialog">
<a class="uk-modal-close uk-close"></a>
<form class="uk-form table-form">
<fieldset data-uk-margin>
<legend>Table</legend>
<input type="text" class ="table-rows" placeholder="Rows">
<input type="text" class= "table-cols" placeholder="Columns">
<button class="uk-button">Send</button>
</fieldset>
</form>
</div>
</div>
<span class="markdown">
<textarea data-uk-htmleditor="{
mode:'split',
maxsplitsize:800,
markdown:true,
lblPreview: 'Preview',
lblCodeview: 'Markdown'
}"></textarea>
</span>
</body>
</html>