-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (46 loc) · 2.18 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-0T3L6WRBDC"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-0T3L6WRBDC');
</script>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Markdown Editor</title>
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<script defer src="https://unpkg.com/[email protected]/dist/cdn.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<div class="Container" x-data="{ markdown: defaultText }">
<div class="Menu">
<nav x-data="{ openMenu: true }">
<button title="Menu" @click="openMenu = ! openMenu"><i class="fa fa-bars"></i></button>
<div x-show="openMenu" @click.outside="openMenu = false" x-transition.duration.550ms>
<button title="Open" @click="open()"><i class="fa fa-folder"></i></button>
<input type="file" style="display: none;" name="inputfile" id="inputfile">
<button title="Download" @click="download()"><i class="fa fa-cloud-download"></i></button>
<button id="theme-btn" title="Theme" @click="toggleTheme()"><i class="fa fa-moon-o"></i></button>
</div>
</nav>
<div class="Editor">
<textarea id="text-area" x-model="markdown" style="resize: none;"></textarea>
</div>
</div>
<div class="Markdown" x-html="marked.parse(markdown)">
</div>
</div>
<footer>
<p>@Copyright 2022 developed by <a href="https://github.com/ms0uto" target="_blank">ms0uto</a></p>
</footer>
</body>
<script src="./app.js"></script>
</html>