-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·61 lines (60 loc) · 2.37 KB
/
index.html
File metadata and controls
executable file
·61 lines (60 loc) · 2.37 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
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Notebook</title>
<!-- Icons & Stylesheets -->
<link href="css/font.css" rel="stylesheet">
<link rel="stylesheet" href="style.css" />
</head>
<body>
<!-- Include the library in the page -->
<script src="js/vue.js"></script>
<script src="js/marked.min.js"></script>
<script src="js/moment.js"></script>
<!-- <script src="https://unpkg.com/marked"></script> -->
<!-- Notebook app -->
<div id="notebook">
<aside class="side-bar">
<!-- 工具栏1 -->
<div class="toolbar">
<!-- 添加笔记按钮 -->
<button :title="addButtonTitle" v-on:click="addNote"><i class="material-icons">add</i> Add note</button>
</div>
<div class="notes">
<div class="note" :class="{selected: note === selectedNote}" @click="selectNote(note)" v-for="note of sortedNotes"><i class="icon material-icons" v-if="note.favorite">star</i>{{note.title}}</div>
</div>
</aside>
<template v-if="selectedNote">
<section class="main">
<div class="toolbar">
<input v-model="selectedNote.title" placeholder="Note title" type="text">
<button @click="removeNote" title="Removenote"><i class="material-icons">delete</i></button>
<button @click="favoriteNote" title="Favorite note"><i class="material-icons">{{selectedNote.favorite ? 'star' : 'star_border'}}</i></button>
</div>
<textarea v-model="selectedNote.content"></textarea>
<div class="toolbar status-bar">
<span class="date">
<span class="label">Created</span>
<span class="value">{{selectedNote.created | date}}</span>
</span>
<span class="lines">
<span class="label">Lines</span>
<span class="value">{{linesCount}}</span>
</span>
<span class="words">
<span class="label">Words</span>
<span class="value">{{wordsCount}}</span>
</span>
<span class="characters">
<span class="label">Characters</span>
<span class="value">{{charactersCount}}</span>
</span>
</div>
</section>
<aside class="preview" v-html="notePreview"></aside>
</template>
</div>
<!-- Some JavaScript -->
<script src="script.js"></script>
</body>
</html>