-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
44 lines (39 loc) · 1.81 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
<html>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-60841611-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-60841611-2');
</script>
<meta name="viewport" content="width=device-width" />
<link rel="stylesheet" type="text/css" href="style.css" />
<script src="a-alert.js"></script>
</head>
<body>
<input id="f-file-input" type="file" hidden="hidden" onchange="loadFile()" accept=".txt, .f"/>
<div id="f-toolbar-container" class="f-expand-100">
<div id="f-title" class="f-expand-50">
</div>
<div id="f-toolbar" class="f-expand-50">
<button onclick="openFile()">Open</button>
<button id="f-btn-view-source" onclick="toggleView(this)">View Source</button>
<button id="f-btn-read-mode" onclick="toggleMode(this)" title="preview">Reading Mode</button>
<button onclick="copyHtml()" title="copy to clipboard">Copy</button>
<button id="f-btn-toc" onclick="toggleToc(this)" title="toggle table of content">TOC</button>
<button onclick="download()">Save</button>
</div>
</div>
<div class="f-flex-container">
<textarea id="a-input"
ondragenter="dragenter(event)" ondragleave="dragleave(event)" ondrop="drop(event)"
onchange="generateHtml()" onkeyup="generateHtml()" class="f-expand-50" autofocus="autofocus"></textarea>
<article id="a-output" class="f-expand-50"></article>
<nav id="a-toc" class="f-toc-collapse"></nav>
</div>
<footer id="f-footer"></footer>
<script src="script.js"></script>
</body>
</html>