-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (60 loc) · 1.82 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<link rel="stylesheet" href="css/style.css" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
<title>HighMark Text Editor</title>
</head>
<body id="editor" onLoad="initialize()">
<img src="highmark.png" alt="HighMark logo" width="16" height="16" />
<button id="renderButton" onClick="render()">Render</button>
<button id="saveButton" onClick="saveButtonClicked()">Save</button>
<button id="exportButton" onClick="exportButtonClicked()">
Export to HTML
</button>
<button
if="loadButton"
onclick="document.getElementById('loadFile').click();"
>
Open
</button>
<input
id="loadFile"
type="file"
onchange="read(this)"
style="display: none"
/>
<hr />
<div class="flex-container">
<div class="flex-child">
<span id="boxTitle">Filename</span>
<button id="renameButton" onClick="rename()">Rename</button>
<hr />
<textarea
id="entryBox"
oninput="autoRender()"
placeholder="Welcome to the text editor! Enter text here...."
></textarea>
</div>
<div class="flex-child">
<span>Preview</span>
<input
type="checkbox"
id="autoRenderCheck"
checked="true"
onclick="document.getElementsByTagName('textarea')[0].focus();"
/>
<label for="autoRenderCheck"> Autorender</label>
<hr />
<div id="outputDiv"></div>
</div>
</div>
<script src="node_modules/showdown/dist/showdown.min.js"></script>
<script src="node_modules/file-saver/dist/FileSaver.min.js"></script>
<script src="main.js"></script>
<script>
document.getElementsByTagName("textarea")[0].focus();
</script>
</body>
</html>