-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbookmark.html
83 lines (78 loc) · 2.95 KB
/
bookmark.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bookmark</title>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
<link rel="stylesheet" href="bookmark.css">
</head>
<body>
<div id="app-body">
<header>
<h1>Bookmark</h1>
</header>
<section id="app-core">
<form
id="inputs-section"
class="bookmark-section bookmark-section-background"
v-on:submit.prevent="calculateBookmarks"
>
<div id="inputs-container">
<div class="input-item">
<label for="begin">Begin</label>
<input
type="number"
id="begin"
class="bookmark-input"
min="0"
required="required"
v-model.number="begin"
>
</div>
<div class="input-item">
<label for="end">End</label>
<input
type="number"
id="end"
class="bookmark-input"
min="1"
required="required"
v-model.number="end"
>
</div>
<div class="input-item">
<label for="duration">Duration</label>
<input
type="number"
id="duration"
class="bookmark-input"
min="1"
max="100"
required="required"
v-model.number="duration"
>
</div>
</div>
<button id="bookmark-button" class="bookmark-input">Bookmark</button>
</form>
<section id="goals-container">
<goal v-bind:goal="goals.daily"></goal>
<goal v-bind:goal="goals.total"></goal>
</section>
<section id="bookmark-list-container" class="bookmark-section bookmark-section-background">
<div id="bookmark-title-container">
<h3>Bookmarks</h3>
</div>
<div id="bookmark-items-container">
<bookmark
v-for="bookmark in bookmarks"
:key="bookmark.id"
v-bind:page="bookmark.page"
></bookmark>
</div>
</section>
</section>
</div>
<script src="app.js"></script>
</body>
</html>