projects/booket

view booket.html @ 7:a1a934adff8d

Add support for favicons
author Guido Berhoerster <guido+booket@berhoerster.name>
date Sun Sep 14 23:12:37 2014 +0200 (2014-09-14)
parents e9ad4c625b7a
children 19900803f7d0
line source
1 <!DOCTYPE html>
2 <!--
3 Copyright (C) 2014 Guido Berhoerster <guido+booket@berhoerster.name>
5 Permission is hereby granted, free of charge, to any person obtaining
6 a copy of this software and associated documentation files (the
7 "Software"), to deal in the Software without restriction, including
8 without limitation the rights to use, copy, modify, merge, publish,
9 distribute, sublicense, and/or sell copies of the Software, and to
10 permit persons to whom the Software is furnished to do so, subject to
11 the following conditions:
13 The above copyright notice and this permission notice shall be included
14 in all copies or substantial portions of the Software.
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 -->
24 <html>
25 <head>
26 <meta charset="utf-8"></meta>
27 <title>Booket</title>
28 <link rel="stylesheet" type="text/css" href="booket.css"></link>
29 <script src="booket.js"></script>
30 </head>
31 <body>
32 <header>
33 <h1>Booket</h1>
34 <p>Version 1</p>
35 </header>
37 <datalist id="tag-datalist"></datalist>
39 <template id="tag-input-template">
40 <li><label>Tag <input type="text" name="tag" pattern="[^,;]*"
41 size="20" list="tag-datalist" placeholder="tag"></input>
42 </label></li>
43 </template>
45 <template id="bookmark-editor-template">
46 <form class="bookmark-editor-form">
47 <fieldset>
48 <legend></legend>
49 <input type="hidden" name="original-url"></input>
50 <label>URL <input type="url" required="required"
51 name="url" size="60" placeholder="http://example.com/"></input></label>
52 <label>Title <input type="text" name="title" size="60"
53 placeholder="A Title"></input></label>
54 <label>Favicon <img width="16" height="16" src="missing-favicon.svg"
55 class="bookmark-favicon" alt=""></img><input type="hidden"
56 name="favicon"></input></label>
57 <div>
58 <ul class="tag-input-list"></ul>
59 <button type="button" name="more-tags">Add more tags</button>
60 </div>
61 <label>Import from Bookmarklet
62 <textarea name="bookmarklet-import" cols="60" rows="4"
63 spellcheck="false"></textarea></label>
64 <button type="reset" name="cancel">Cancel</button><button type="submit"
65 name="save-bookmark">Save</button>
66 </fieldset>
67 </form>
68 </template>
70 <section id="actions">
71 <h2>Actions</h2>
72 <aside id="bookmarklet">
73 <h3>Bookmarklet</h3>
74 <a title="Create Bookmark" id="bookmarklet-link">Create Bookmark</a>
75 </aside>
77 <aside id="keyboard-shortcuts">
78 <h3>Keyboard Shortcuts</h3>
79 <dl>
80 <dt><kbd>Prefix</kbd>+<kbd>i</kbd></dt>
81 <dd>Select bookmark file to load</dd>
82 <dt><kbd>Prefix</kbd>+<kbd>l</kbd></dt>
83 <dd>Load selected bookmark file</dd>
84 <dt><kbd>Prefix</kbd>+<kbd>s</kbd></dt>
85 <dd>Save bookmark file</dd>
86 <dt><kbd>Prefix</kbd>+<kbd>a</kbd></dt>
87 <dd>Focus bookmark editor</dd>
88 <dt><kbd>Prefix</kbd>+<kbd>f</kbd></dt>
89 <dd>Focus search field</dd>
90 </dl>
91 </aside>
93 <form id="load-form">
94 <fieldset>
95 <legend>Load Bookmarks</legend>
96 <label accesskey="i">File <input type="file" accept="application/json"
97 required="required" name="file"></input></label>
98 <button type="submit" name="load-file" accesskey="l">Load</button>
99 </fieldset>
100 </form>
102 <form id="save-form">
103 <fieldset>
104 <legend>Save Bookmarks</legend>
105 <a href="#" id="save-link" hidden="hidden"
106 download="bookmarks.json"></a>
107 <button type="submit" name="save-file"
108 accesskey="s">Save&#8230;</button>
109 </fieldset>
110 </form>
111 </section>
113 <main>
114 <section id="bookmarks">
115 <h2>Bookmarks</h2>
117 <aside id="tags">
118 <h3>Tags</h3>
120 <ul class="tag-list">
121 <template id="tag-template">
122 <li><button type="button" name="set-tag"></button><span
123 class="tag-count"></span><button type="button"
124 name="toggle-tag"></button></li>
125 </template>
126 </ul>
127 </aside>
129 <aside id="search">
130 <h3>Search</h3>
132 <form id="search-form">
133 <input type="search" name="search-term" size="20" placeholder="Search"
134 accesskey="f"></input>
135 <button type="submit" name="search">Search</button><button
136 type="reset" name="clear">Clear</button>
137 </form>
138 </aside>
140 <p id="bookmark-message"></p>
142 <ul id="bookmark-list">
143 <template id="bookmark-tag-template">
144 <li><button type="button" name="set-tag"></button><button
145 type="button" name="toggle-tag"></button></li>
146 </template>
147 <template id="bookmark-template">
148 <li>
149 <details>
150 <summary><p><img width="16" height="16"
151 class="bookmark-favicon"></img>
152 <a class="bookmark-link" target="_blank"></a>
153 <span class="bookmark-hostname"></span>
154 </p>
155 <ul class="tag-list"></ul></summary>
156 <div class="bookmark-actions">
157 <button type="button" name="edit-bookmark">Edit</button><button
158 type="button" name="delete-bookmark">Delete</button>
159 </div>
160 <dl class="bookmark-metadata">
161 <dt>URL</dt>
162 <dd class="bookmark-url"></dd>
163 <dt>Added</dt>
164 <dd><time class="ctime"></time></dd>
165 <dt>Last modified</dt>
166 <dd><time class="mtime"></time></dd>
167 </dl>
168 </details>
169 </li>
170 </template>
171 </ul>
172 </section>
173 </main>
175 <footer><address>Copyright 2014
176 <a href="mailto:guido+booket@berhoerster.name"
177 title="guido+booket@berhoerster.name">Guido
178 Berhörster</a></address>
179 </footer>
180 </body>
181 </html>