-
Notifications
You must be signed in to change notification settings - Fork 1
/
index-static.html
110 lines (85 loc) · 3.63 KB
/
index-static.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>FooWiki</title>
<link rel="stylesheet" href="css/columns.css" />
<link rel="stylesheet" href="css/normalize.css" />
<link rel="stylesheet" href="css/common.css" />
<link href="css/jquery.tagit.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="css/tagit.ui-zendesk.css">
<link rel="stylesheet" type="text/css" href="css/jquery-ui.min.css" />
<script src="js/lib/jquery-1.10.2.js"></script>
<script src="js/lib/jquery-ui.min.js" type="text/javascript" charset="utf-8"></script>
<!-- from https://github.com/aehlke/tag-it -->
<script src="js/lib/tag-it.js" type="text/javascript" charset="utf-8"></script>
<!-- markdown processor -->
<script src="js/lib/marked.js"></script>
<!-- mustache template compiler -->
<script src="js/lib/hogan-3.0.2.js"></script>
<!-- script src="js/jquery-ui.js"></script>
<script src="js/jquery.fileupload.js"></script>
<script src="js/jquery.iframe-transport.js"></script -->
<!-- date formatting -->
<script src="js/lib/moment.js"></script>
<!-- FooWiki scripts -->
<script src="js/foowiki/config.js"></script>
<script src="js/foowiki/sparql-templates.js"></script>
<script src="js/foowiki/html-templates-static.js"></script>
<script src="js/foowiki/utils-static.js"></script>
<script src="js/foowiki/core-static.js"></script>
<script src="js/foowiki/index.js"></script>
<script src="js/foowiki/sparql-connector.js"></script>
<script type="text/javascript" language="javascript">
var getPageListSparql = sparqlTemplater(getPageListSparqlTemplate, {
"graphURI": FooWiki.graphURI
});
var getPagesUrl = FooWiki.sparqlQueryEndpoint + encodeURIComponent(getPageListSparql) + "&output=xml";
$(function () {
setupErrorHandling();
$("#graphName").attr("value", FooWiki.graphURI);
setupButtons();
var doneCallback = function (json) {
var rows = makeEntryListHTML(json, false);
$("#entries").replaceWith(rows);
setupTagsPanel("#tagsPanelTagsContainer");
};
getJsonForSparqlURL(getPagesUrl, doneCallback);
// getDataForURL(doneCallback, getPagesUrl);
});
</script>
</head>
<body>
<!-- div id="container" -->
<div id="errorbox"></div>
<div id="header">FooWiki</div>
<p>These pages are a static rendition of a <a href="https://github.com/danja/foowiki">FooWiki</a> instance I have running locally - it will be my personal knowledgebase.</p>
<div id="middle" class="column">
<table id="pagesTable">
<!-- refactor to use entryTableTemplate -->
<tr>
<th colspan="3"><a href="index-static.html">All</a> Pages</th>
</tr>
<tr>
<th class="center">Page</th>
<th class="center">Date</th>
<th class="center">Creator</th>
</tr>
<tr id="entries"></tr>
</table>
</div>
<div id="left" class="column">
<!-- div class="tab"><a href="page-static.html?uri=http://hyperdata.it/wiki/">Home Page</a>
</div -->
</div>
<!-- div id="tagsPanel">
<label for='tagsPanelTagsContainer'>Tags</label>
<ul id='tagsPanelTagsContainer'>
</ul>
</div -->
<!-- input id="fileupload" type="file" name="files[]" data-url="/foowiki/upload" multiple -->
<div id="footer"><em>hyperdata.it : Danny Ayers 2017</em>
</div>
</div>
</body>
</html>