forked from skx/bookmarks.public
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
95 lines (93 loc) · 4.06 KB
/
index.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
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN"
"http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>My Bookmarks</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script type="text/javascript">
//
// Load an external script. This is required such that when opening this page as file:///.../index.html we get our external javascript.
//
function loadScript(url){
var script = document.createElement("script")
script.type = "text/javascript";
script.src = url;
document.getElementsByTagName("head")[0].appendChild(script);
}
//
// jQuery is loaded - load our external script.
//
$(function () {
loadScript("bookmarks.js");
});
</script>
<link rel="StyleSheet" href="bookmarks.css" type="text/css" media="screen"/>
<link rel="StyleSheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
</head>
<body>
<table id="layout">
<tr>
<td rowspan="1" valign="top">
<!-- THE BOOKMARKS -->
<ul class="bookmarks" id="bookmarks">
</ul>
<!-- THE END OF BOOKMARKS -->
</td>
<td id="tags" valign="top">
<fieldset>
<legend><b>Tags</b></legend>
<p id="autotags">
</p>
<p>
<button title="Toggle display of tags" type="button" onclick="toggleTags();">Toggle Tags</button>
<button title="Show all bookmarks" type="button" onclick="clearFilter();">Show All</button>
<button title="Show only bookmarks with no tags" type="button" onclick="showUntagged();">Show Untagged</button>
<button title="Show 25 random bookmarks" type="button" onclick="showRandom();">Show Random</button>
</p>
</fieldset>
<p> </p>
<fieldset id="related_holder">
<legend><b>Related Tags </b></legend>
<div id="related"></div>
</fieldset>
<p> </p>
<fieldset>
<legend><b>Filter Bookmarks </b></legend>
<form id="filter" name="filter" action="#">
<p>Search within bookmarks: <input type="text" name="fill" id="fill" value="" size="50" /></p>
</form>
</fieldset>
<p> </p>
<fieldset>
<legend><b><span class="whenadd">Add</span><span class="whenedit">Edit</span> Bookmark </b></legend>
<form id="newForm" name="newForm">
<input type="hidden" name="newTime" id="newTime" value=""/>
<table id="add_bookmark" border="0" cellspacing="2" cellpadding="2">
<tr><td>Name:</td><td><input type="text" name="newname" id="newName" value="" size="50" /></td></tr>
<tr><td>Link:</td><td><input type="text" name="newLink" id="newLink" value="" size="50" /></td></tr>
<tr><td>Tags:</td><td><input type="text" name="newTags" id="newTags" value="" size="50" /></td></tr>
<tr><td colspan="2" style="text-align:right">
<button class="whenadd" type="button" onclick="addBookmark()">Add</button>
<button class="whenedit" id="saveBookmark" type="button">Save</button>
<button class="whenedit" type="button" onclick="doneEditBookmark()">Cancel</button>
</td></tr>
</table>
</form>
</fieldset>
<p> </p>
<fieldset>
<legend><b>Save Data </b></legend>
<form id="saveForm" name="newForm">
<button type="button" onclick="saveDataFile()">Save...</button>
</form>
</fieldset>
</td>
</tr>
</table>
<p id="footer">
<a href="https://github.com/skx/bookmarks.public/">bookmarks.public</a> by <a href="https://steve.kemp.fi">Steve Kemp</a>.
</p>
</body>
</html>