blob: 81071bf67261937a08fc05cde48eaf25459b7de6 (
plain) (
blame)
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
|
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="lib/bootstrap.css" />
<link rel="stylesheet" href="styles/index.css" />
<title>Start</title>
</head>
<body>
<main class="container">
<form
id="search-form"
action="http://localhost:8888/search"
method="POST"
class="mt-5"
autocomplete="off"
>
<input
type="text"
name="q"
class="form-control form-control-lg w-75 mx-auto shadow-sm"
id="search-input"
autofocus
/>
</form>
<div class="mx-auto mt-5">
<div class="row">
<ul class="nav justify-content-end">
<li class="nav-item">
<div class="dropdown">
<span
class="btn dropdown-toggle"
data-toggle="dropdown"
aria-expanded="false"
>
<img src="assets/icons/option.svg" width="32" height="32" />
</span>
<ul class="dropdown-menu">
<li
class="dropdown-item"
id="open-new-card-modal-button"
type="button"
>
Legg til kort
</li>
<li
class="dropdown-item"
id="open-import-pins-modal-button"
type="button"
>
Importer fra Pinboard
</li>
<li>
<hr class="dropdown-divider" />
</li>
<li
class="dropdown-item"
id="open-options-modal-button"
type="button"
>
Innstillinger
</li>
</ul>
</div>
</li>
</ul>
</div>
<div class="row py-5" id="cards"></div>
</div>
</main>
<input
type="file"
class="form-control"
accept="application/json"
id="file"
style="display: none;"
/>
<!-- MODALS -->
<div class="modal" id="card-modal" tabindex="-1">
<div class="modal-dialog modal-lg modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"></h5>
</div>
<div class="modal-body">
<input
type="text"
class="form-control"
placeholder="Tittel"
id="card-name"
/>
<div id="card-links" class="d-flex flex-column mt-3"></div>
</div>
<div class="modal-footer">
<button class="btn btn-primary" id="save-card-button">Lagre</button>
</div>
</div>
</div>
</div>
<!--Settings-->
<div class="modal" id="options-modal" tabindex="-1">
<div class="modal-dialog modal-lg modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Innstillinger</h5>
</div>
<div class="modal-body">
<div class="mb-3">
<ul class="nav nav-pills nav-fill">
<li class="nav-item">
<span class="nav-link active" type="button">Generelt</span>
</li>
<li class="nav-item">
<span class="nav-link" type="button">Status</span>
</li>
</ul>
</div>
<form action="#" onsubmit="return false" id="options-form">
<div class="mb-3">
<label for="couch-url" class="form-label">CouchDB url</label>
<input type="text" class="form-control" id="couch-url" />
</div>
<div class="mb-3">
<div class="form-check">
<input
class="form-check-input"
type="checkbox"
value=""
id="open-cards-in-new-tab"
/>
<label class="form-check-label" for="open-cards-in-new-tab">
Åpne lenker i en ny fane
</label>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button class="btn btn-primary" id="save-options-button">Lagre</button>
</div>
</div>
</div>
</div>
<script src="lib/bootstrap.js"></script>
<script src="lib/masonry.pkgd.min.js"></script>
<script src="lib/pouchdb.js"></script>
<script src="lib/toaster.js"></script>
<script src="scripts/index.js"></script>
</body>
</html>
|