Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
311 lines (299 loc) · 15.4 KB
/
Copy pathindex.html
File metadata and controls
311 lines (299 loc) · 15.4 KB
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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
<!DOCTYPE html>
<html>
<head>
<!-- Basic Page Needs
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<meta charset="utf-8">
<meta http-equiv="content-language" content="en" />
<title>Markdown File Converter</title>
<meta name="description" content="This tool converts markdown files to HTML, PDF, EPUB, and DOCX formats and allows styling of each via CSS.">
<meta name="author" content="Cody Taylor">
<!-- Mobile Specific Metas
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- FONT
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<link href='//fonts.googleapis.com/css?family=Raleway:400,300,600' rel='stylesheet' type='text/css'>
<!-- Page CSS
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<link rel="stylesheet" type="text/css" href="normalize.css">
<link rel="stylesheet" type="text/css" href="skeleton.css">
<link rel="stylesheet" type="text/css" href="custom.css">
<!-- Preview CSS
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<link rel="stylesheet" type="text/css" href="preview/ieee.css">
<link rel="stylesheet" type="text/css" href="preview/acm.css">
<link rel="stylesheet" type="text/css" href="preview/typebase.css">
<link rel="stylesheet" type="text/css" href="preview/getaway.css">
<!-- Preview Javascript (changes the style of the "preview document" based on radio buttons)
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<script>
function preview(stylesheet){
switch(stylesheet){
case 'custom':
document.getElementById('preview-container').style.display="none";
break;
default:
/*classList selector is not widely supported by modern browsers.
using className instead. className expects a space delimited
list of class names.*/
document.getElementById('preview-container').style.display="block";
document.getElementById('preview').className='twleve'+' '+'columns'; /*Removes all active CSS classes*/
document.getElementById('preview').className+=' '+stylesheet; /*Applies all classes of slected style*/
document.getElementById("stylesheets").scrollIntoView();
}
}
function convert(state){
switch(state){
case 'alert':
document.getElementById('form-container').style.display="none";
document.getElementById('form-container-title').style.display="none";
document.getElementById('preview-container').style.display="none";
document.getElementById('reference-container').style.display="none";
document.getElementById('alert').style.display="block";
break;
default:
document.getElementById('alert').style.display="none";
document.getElementById('form-container').style.display="block";
document.getElementById('form-container-title').style.display="block";
//document.getElementById('preview-container').style.display="block";
document.getElementById('reference-container').style.display="block";
}
}
function toggle(id) {
var element = document.getElementById(id);
if (element) {
var display = element.style.display;
if (display == "none") {
element.style.display = "block";
} else {
element.checked = false;
element.style.display = "none";
}
}
}
</script>
<!-- MathJax Include, of course. -for prefiew
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<script type="text/javascript" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML"></script>
</head>
<body>
<!-- Beta Banner -->
<a href="http://github.com/OKCody/Pandoc-Web-Interface"><p style="height: 25px; width: 300px; position: fixed; top: 35px; right: -100px; background-color: orange; transform: rotate(45deg); text-align: center; box-shadow: 0px 0px 10px rgba(0,0,0,0.3); color: white; font-weight: bold; z-index: 1;">Beta</p></a>
<!-- /Beta Banner -->
<div class="container">
<div class="row" id="title">
<div class="twelve columns">
<h1>Markdown File Converter</h1>
</div>
</div>
<div class="row" id="menu">
<div class="four columns">
<a href="/">Converter</a>
</div>
<div class="four columns">
<a href="#">Tutorials</a>
</div>
<div class="four columns">
<a href="beta.html">Terms</a>
</div>
</div>
<div id="form-container-title" class="row">
<div class="twelve columns">
<h2>Parameters</h2>
</div>
</div>
<form id="form-container" class="form" action="upload.php" method="post" enctype="multipart/form-data">
<div class="row">
<div class="twelve columns">
<h6>File to Upload:</h6>
</div>
</div>
<div class="twelve columns options">
<div class="twelve columns">
<input type="file" name="fileToUpload" id="fileToUpload"></input>
</div>
</div>
<div class="row">
<div class="twelve columns uploadForm">
<h6>Output Formats:</h6>
</div>
</div>
<div class="row options">
<div class="three columns">
<div style="min-width: 100px;">
<input type="checkbox" id="HTML" name="HTML" value="HTML" onclick="toggle('option-Stand-Alone');">
<label for="HTML">HTML</label>
</div>
<div id="option-Stand-Alone" style="display: none;">
<input type="checkbox" id="Stand-Alone" name="Stand-Alone" value="Stand-Alone" onclick="toggle('stylesheets'); toggle('stylesheet-options');">
<label for="Stand-Alone">Stand-Alone</label>
</div>
</div>
<div class="three columns">
<input type="checkbox" id="PDF" name="PDF" value="PDF">
<label for="PDF">PDF</label>
</div>
<div class="three columns">
<input type="checkbox" id="EPUB" name="EPUB" value="EPUB">
<label for="EPUB">EPUB</label>
</div>
<div class="three columns">
<input type="checkbox" id="DOCX" name="DOCX" value="DOCX">
<label for="DOCX">DOCX</label>
</div>
</div>
<div id="stylesheets" class="row">
<div class="twelve columns uploadForm">
<h6>Stylesheet: </h6>
</div>
</div>
<div id="stylesheet-options" class="row options">
<!--"Custom" selection should indeed invoke a vanilla stylesheet for
preview. -one that matches Pandoc's default formatting-->
<div class="three columns">
<input type="radio" id ="custom" name="stylesheet" value="custom" checked="checked" onclick="preview('custom');">
<label for="custom">Custom</label>
</div>
<div class="three columns">
<input type="radio" id="IEEE" name="stylesheet" value="IEEE" onclick="preview('ieee');">
<label for="IEEE">IEEE.css</label>
</div>
<div class="three columns">
<input type="radio" id="ACM" name="stylesheet" value="ACM" onclick="preview('acm');">
<label for="ACM">ACM.css</label>
</div>
<div class="three columns">
<input type="radio" id="Typebase" name="stylesheet" value="Typebase" onclick="preview('typebase');">
<label for="Typebase">Typebase.css</label>
</div>
<div class="three columns:first-child">
<input type="radio" id="Getaway" name="stylesheet" value="Getaway" onclick="preview('getaway');">
<label for="Getaway">Getaway.css</label>
</div>
</div>
<!--hidden row of stylesheet options-->
<div id="more-options" class="row options">
<div class="three columns">
<input type="radio" id="Typebase" name="stylesheet" value="Typebase" onclick="preview('typebase');">
<label for="Typebase">Typebase.css</label>
</div>
<div class="three columns">
<input type="radio" id="Getaway" name="stylesheet" value="Getaway" onclick="preview('getaway');">
<label for="Getaway">Getaway.css</label>
</div>
</div>
<div class="row">
<div class="twelve columns">
<input type="submit" value="Convert" name="submit" onclick="convert('alert');"></input>
</div>
</div>
</form>
<div id="alert" class="alert border">
<h2>Converting ...</h2>
<p>Your file will be downloaded momentraily.</p>
<input type="submit" value="OK" name="submit" onclick="convert('default');"></input>
</div>
<div id="preview-container">
<div class="row">
<div class="twelve columns">
<h2>Preview</h2>
</div>
</div>
<div class="row border">
<div id="preview" class="twelve columns">
<h1 id="this-is-a-heading">This is a heading</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p><span class="math display">\[\int 1 = x + C\]</span> <span class="math display">\[\int x = \frac{x^2}{2} + C\]</span> <span class="math display">\[\int x^2 = \frac{x^3}{3} + C\]</span></p>
<p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<pre><code>for filename in *
do
echo $filename >> files.txt
done</code></pre>
<h2 id="this-is-a-subheading">This is a subheading</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.<a href="#fn1" class="footnoteRef" id="fnref1"><sup>1</sup></a> Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<ul>
<li>Item one</li>
<li>Item two</li>
<li>Item three</li>
</ul>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<blockquote>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</blockquote>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<div class="footnotes">
<hr />
<ol>
<li id="fn1"><p>This is a footnote.<a href="#fnref1">↩</a></p></li>
</ol>
</div>
</div>
</div>
</div>
<div id="reference-container">
<div class="row">
<div class="twelve columns">
<h2>Reference</h2>
</div>
</div>
<div class="row border">
<div id="reference" class="twelve columns">
<p>Paragraph text requires no syntax.</p>
<pre><code>Paragraph text requires no syntax.</code></pre>
<p><em>Italic</em></p>
<pre><code>*Italic*</code></pre>
<p><strong>Bold</strong></p>
<pre><code>**Bold**</code></pre>
<p><a href="http://libraries.ou.edu">OU Libraries</a></p>
<pre><code>[OU Libraries](http://libraries.ou.edu)</code></pre>
<div class="figure">
<img src="https://libraries.ou.edu/sites/all/themes/oulib_bootstrap/img/ou_lib_logo.png" alt="This text is a caption." />
<p class="caption">This text is a caption.</p>
</div>
<pre><code></code></pre>
<h1 id="heading-1">Heading 1</h1>
<h2 id="heading-2">Heading 2</h2>
<h3 id="heading-3">Heading 3</h3>
<h4 id="heading-4">Heading 4</h4>
<h5 id="heading-5">Heading 5</h5>
<h6 id="heading-6">Heading 6</h6>
<pre><code># Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6</code></pre>
<blockquote>
<p>Blockquote</p>
</blockquote>
<blockquote>
<blockquote>
<p>Nested blockquote</p>
</blockquote>
</blockquote>
<pre><code>> Blockquote
>> Nested Blockquote</code></pre>
<hr />
<pre><code>---</code></pre>
<p><code>Inline code</code> with backticks</p>
<pre><code>`Inline code` with backticks</code></pre>
<pre><code>// This is a codeblock
print("3 backticks or");
print("indent 4 spaces");</code></pre>
<pre><code> // This is a codeblock
print("3 backticks or");
print("indent 4 spaces");</code></pre>
</div>
</div>
</div>
<div id="footer" class="row">
<div class="twelve columns">
<div id="octocat">
<a href="http://github.com/OKCody/Pandoc-Web-Interface"><img src="assets/mark-github.svg"></img></a>
</div>
</div>
</div>
</div>
</body>
</html>