-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
169 lines (149 loc) · 5.79 KB
/
index.html
File metadata and controls
169 lines (149 loc) · 5.79 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset=utf-8>
<meta name=viewport content="width=device-width, initial-scale=1.0">
<meta name="description" content="simple prototype on my journal">
<meta name="keywords" content="journal, miniblog">
<title>my journal</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;600&family=Space+Grotesk:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.0.0/styles/monokai.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.12.0/katex.min.css" integrity="sha512-h7nl+xz8wgDlNM4NqKEM4F1NkIRS17M9+uJwIGwuo8vGqIl4BhuCKdxjWEINm+xyrUjNCnK5dCrhM0sj+wTIXw==" crossorigin="anonymous" />
<link rel="stylesheet" type="text/css" href="src/css/main.css">
<link rel="stylesheet" type="text/css" href="src/css/mobile.css">
</head>
<body class="dark-mode">
<!-- <div id="mySidenav" class="sidenav">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<div id="query"></div>
</div> -->
<ul id="navbar">
<li
onclick="openNav()">
<span class="nav-item"><img src="src/svg-icon/search.svg" title="search"></span>
</li>
<li
onclick="previousNotes()"
id="previous">
<span class="nav-item"><img src="src/svg-icon/arrow-left.svg" title="previous"></span>
</li>
<li
onclick="nextNotes()"
id="next">
<span class="nav-item"><img src="src/svg-icon/arrow-right.svg" title="next"></span>
</li>
<li
onclick="toggleDarkMode()"
id="theme-toggle">
<span class="nav-item"><img src="src/svg-icon/moon.svg" title="toggle dark mode"></span>
</li>
<li>
<span class="nav-item" id="date_ribbon">DATE</span>
</li>
</ul>
<div id="back-trigger">
<span class="nav-item" onclick="toToday()">BACK TO TODAY</span>
</div>
<div id="push-trigger">
<span
id="close-push-trigger"
onclick="closePushTrigger()">×</span>
<span id="push-message">
This is a message.<br />
Hello, world!
</span>
</div>
<div class="form-section">
<form name="postJournal" method="POST">
<h1 class="date">Your notes matter!</h1>
<p><label for="date">Date</label></p>
<div class="input-control">
<input type="date" name="date" />
</div>
<p><label for="tags">
Tags (use spaces and then
<span class="tag-search">#anothertags</span>
for add another tags)
</label></p>
<div class="input-control">
<input autocomplete="off" type="text" name="tags" placeholder="#tags" />
<div id="tag-queries">
<!-- queries here -->
<div class="tag-suggestion">Type to search.</div>
</div>
</div>
<p><label for="content">Text to be written</label></p>
<div class="input-control">
<nav class="format-nav">
<button type="button"
name="bold"
title="Bold"
onclick="formatContent(this.name)"
>
<strong>B</strong>
</button>
<button type="button"
name="italic"
title="Italic"
onclick="formatContent(this.name)">
<em>I</em>
</button>
<button type="button"
name="shortcode"
title="Short code"
onclick="formatContent(this.name)">
>
</button>
<button type="button"
name="longcode"
title="Long code"
onclick="formatContent(this.name)">
<form name="longCode">
> <input type="text" name="language">
</form>
</button>
<button type="button"
name="link-toogle"
title="Link"
onclick="formatContent(this.name)">
<img src="src/svg-icon/link.svg" title="link">
</button>
</nav>
<textarea name="content"
placeholder="What's on your journal?"></textarea>
<nav class="format-nav">
<button type="submit">POST</button>
</nav>
</div>
</form>
<div class="option-aside">
<div class="option-section">
<form name="linkOption">
<p style="margin: 0;"><label for="link">Link</label></p>
<div class="input-control">
<input type="text" name="link" placeholder="https://example.com" />
</div>
<p><label for="linkDescription">Description</label></p>
<div class="input-control">
<input type="text" name="linkDescription" placeholder="link description here..." />
</div>
<button type="submit">APPLY</button>
</form>
</div>
</div>
</div>
<div class="container" id="container">
<p class="date" id="loading">...</p>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.0.0/highlight.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/showdown/1.9.1/showdown.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.js" integrity="sha384-YFVvRUwgqxkAVN9bmAVLsKilmOKfQLyUx0ZlmDNs0aBUTsvMLnRxE3Km0NrZa0i9" crossorigin="anonymous"></script>
<script src="src/js/data.js" type="text/javascript"></script>
<script src="src/js/phrases.js" type="text/javascript"></script>
<script src="src/js/main.js" type="text/javascript"></script>
<script src="src/js/events.js" type="text/javascript"></script>
<script type="module" type="text/javascript">
import katex from 'https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.mjs';
</script>
</body>
</html>