projects/booket

view booket.html @ 0:c2248f662a2c

Initial revision
author Guido Berhoerster <guido+booket@berhoerster.name>
date Sat Sep 06 18:18:29 2014 +0200 (2014-09-06)
parents
children 82c50265c8dc
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 <template id="tag-input-template">
38 <li><label>Tag <input type="text" name="tag" pattern="[^,;]*"
39 size="20" placeholder="tag"></input>
40 </label></li>
41 </template>
43 <template id="bookmark-editor-template">
44 <form class="bookmark-editor-form">
45 <fieldset>
46 <legend></legend>
47 <input type="hidden" name="original-url"></input>
48 <label>URL <input type="url" required="required"
49 name="url" size="60" placeholder="http://example.com/"></input></label>
50 <label>Title <input type="text" name="title" size="60"
51 placeholder="A Title"></input></label>
52 <div>
53 <ul class="tag-input-list"></ul>
54 <button type="button" name="more-tags">Add more tags</button>
55 </div>
56 <button type="reset" name="cancel">Cancel</button><button type="submit"
57 name="save-bookmark">Save</button>
58 </fieldset>
59 </form>
60 </template>
62 <section id="actions">
63 <h2>Actions</h2>
64 <aside id="keyboard-shortcuts">
65 <h3>Keyboard Shortcuts</h3>
66 <dl>
67 <dt><kbd>Prefix</kbd>+<kbd>i</kbd></dt>
68 <dd>Select bookmark file to load</dd>
69 <dt><kbd>Prefix</kbd>+<kbd>l</kbd></dt>
70 <dd>Load selected bookmark file</dd>
71 <dt><kbd>Prefix</kbd>+<kbd>s</kbd></dt>
72 <dd>Save bookmark file</dd>
73 <dt><kbd>Prefix</kbd>+<kbd>a</kbd></dt>
74 <dd>Focus bookmark editor</dd>
75 <dt><kbd>Prefix</kbd>+<kbd>f</kbd></dt>
76 <dd>Focus search field</dd>
77 </dl>
78 </aside>
79 <form id="load-form">
80 <fieldset>
81 <legend>Load Bookmarks</legend>
82 <label accesskey="i">File <input type="file" accept="application/json"
83 required="required" name="file"></input></label>
84 <button type="submit" name="load-file" accesskey="l">Load</button>
85 </fieldset>
86 </form>
88 <form id="save-form">
89 <fieldset>
90 <legend>Save Bookmarks</legend>
91 <a href="#" id="save-link" hidden="hidden"
92 download="bookmarks.json"></a>
93 <button type="submit" name="save-file"
94 accesskey="s">Save&#8230;</button>
95 </fieldset>
96 </form>
97 </section>
99 <main>
100 <section id="bookmarks">
101 <h2>Bookmarks</h2>
103 <aside id="tags">
104 <h3>Tags</h3>
106 <ul class="tag-list">
107 <template id="tag-template">
108 <li><button type="button" name="set-tag"></button><span
109 class="tag-count"></span><button type="button"
110 name="toggle-tag"></button></li>
111 </template>
112 </ul>
113 </aside>
115 <aside id="search">
116 <h3>Search</h3>
118 <form id="search-form">
119 <input type="search" name="search-term" size="20" placeholder="Search"
120 accesskey="f"></input>
121 <button type="submit" name="search">Search</button><button
122 type="reset" name="clear">Clear</button>
123 </form>
124 </aside>
126 <p id="bookmark-message"></p>
128 <ul id="bookmark-list">
129 <template id="bookmark-tag-template">
130 <li><button type="button" name="set-tag"></button><button
131 type="button" name="toggle-tag"></button></li>
132 </template>
133 <template id="bookmark-template">
134 <li>
135 <a class="bookmark-link" target="_blank"></a><ul
136 class="tag-list"></ul>
137 <div class="bookmark-actions">
138 <button type="button" name="edit-bookmark">Edit</button><button
139 type="button" name="delete-bookmark">Delete</button>
140 </div>
141 </li>
142 </template>
143 </ul>
144 </section>
145 </main>
147 <footer><address>Copyright 2014
148 <a href="mailto:guido+booket@berhoerster.name"
149 title="guido+booket@berhoerster.name">Guido
150 Berhörster</a></address>
151 </footer>
152 </body>
153 </html>