-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditor.html
119 lines (100 loc) · 4.94 KB
/
editor.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Déjà Vu Edit</title>
<!-- Basic Meta Tags -->
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="dejavu, cheatsheet, dejavu cheatsheet, deja vu, Déjà Vu, déjà vu">
<meta name="description" content="A Cheatsheet hobby Project." />
<!-- Twitter Card data -->
<meta name="twitter:title" content="Déjà Vu">
<meta name="twitter:card" value="A Cheatsheet hobby Project.">
<!-- Open Graph data -->
<meta property="og:title" content="Déjà Vu" />
<meta property="og:description" content="A Cheatsheet hobby Project." />
<meta property="og:type" content="website" />
<!-- Google verification -->
<meta name="google-site-verification" content="7Vic0bN92viv5L886vTqTqdncRfOMsVF3SXMH3fNLlg" />
<link href="https://unpkg.com/sanitize.css" rel="stylesheet" />
<link href="https://unpkg.com/sanitize.css/typography.css" rel="stylesheet" />
<link rel="stylesheet" href="index.css">
<link rel="stylesheet" href="editor.css">
</head>
<body>
<div class="page-container">
<section class="container">
<div class="split">
<div id="editor" class="side mw-400">
<h1 class="header">
Déjà Vu Editor
</h1>
<textarea id="editorArea" onchange="updateVu()" contenteditable="true" draggable="false">
</textarea>
</div>
<div id="visual" class="side mw-400">
<h1 class="header">
Preview
</h1>
<div id="mdHtmlVu" class="mdHtml">
</div>
</div>
</div>
</section>
<footer class="footer">
<div class="footer-wrapper">
<div class="f-row container">
<div class="head-container mw-300">
<h1 class="header">Déjà Vu</h1>
<h3>A Cheatsheet hobby Project.</h3>
<!-- <h3>Inspired from #Devhints</h3> -->
<br>
<a class="effect-underline" href="https://github.com/mohanen/dejavu">Source</a>
<a class="effect-underline" href="https://github.com/mohanen/cheatsheets">Cheatsheets</a>
</div>
<div class="head-container mw-400">
<h2>Can't done this without</h2>
<div class="f-row">
<div class="">
<ul>
<li><a class="effect-underline" href="https://devhints.io">Devhints</a></li>
<li><a class="effect-underline" href="https://github.com">Git Hub</a></li>
<li><a class="effect-underline" href="https://www.mathjax.org">Mathjax</a>
<li><a class="effect-underline" href="https://github.com/mohanen">Mohanen</a>
</li>
</ul>
</div>
<div class="">
<ul>
<li><a class="effect-underline" href="https://vuejs.org">Vue</a></li>
<li><a class="effect-underline"
href="https://csstools.github.io/sanitize.css">Sanitize</a>
</li>
<li><a class="effect-underline" href="https://github.com/axios/axios">Axios</a>
</li>
<li><a class="effect-underline" href="https://markdown-it.github.io">Markdown-it</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</footer>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/markdown-it/10.0.0/markdown-it.min.js"></script>
<script src="index.js"></script>
<script src="cheatSheetParser.js"></script>
<script async src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<script>
function updateVu() {
document.getElementById("mdHtmlVu").innerHTML = cheatSheetParser(mdit.render(document.getElementById("editorArea").value))
MathJax && MathJax.typeset && MathJax.typeset()
}
</script>
</html>