-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
121 lines (103 loc) · 4.3 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
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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" media="screen" href="js/jquery-ui-1.10.3/themes/base/jquery.ui.all.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/trellis.css" />
<link rel="stylesheet" type="text/css" media="screen" href="css/fonts.css" />
<!-- jQuery/UI scripts -->
<script type="text/javascript" src="js/jquery-ui-1.10.3/jquery-1.9.1.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.10.3/ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.10.3/ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.10.3/ui/jquery.ui.mouse.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.10.3/ui/jquery.ui.position.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.10.3/ui/jquery.ui.draggable.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.10.3/ui/jquery.ui.droppable.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.10.3/ui/jquery.ui.sortable.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.10.3/ui/jquery.ui.button.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.10.3/ui/jquery.ui.dialog.js"></script>
<!-- misc 3rd party -->
<script type="text/javascript" src="js/date.format.js"></script>
<!-- Trellis-specific -->
<script type="text/javascript" src="js/n3-browser.js"></script>
<script type="text/javascript" src="js/trellis-ui.js"></script>
<script type="text/javascript" src="js/trellis-comms.js"></script>
<script>
const SPARQL_ENDPOINT = "https://fuseki.hyperdata.it/trellis/";
$(function () {
var success = function (turtle) { // sample.ttl // should be calling Trellis.load .. http://localhost:8888/pages/trellis
var containerElement = $("#trellis");
Trellis.renderHTML(turtle, containerElement);
Trellis.init();
Trellis.initDragDrop();
};
// http://localhost:8888/graphs/trellis
// http://localhost:8888/graphs/workflowy
$.ajax({
url: SPARQL_ENDPOINT,
headers: {
Accept: "text/turtle"
},
data: "",
success: success
});
});
</script>
<title>Trellis</title>
</head>
<body>
<script id="replace_with_navbar" src="/hkms/share/nav.js"></script>
<div id="header-outer">
<div id="header">‡ Trellis ‡</div>
</div>
<div id="menu-box">
<div class="toolbar">
<ul>
<li>
<button id="shortcutsButton">Shortcuts</button>
</li>
<li>
<button id="saveButton">Save</button>
</li>
</ul>
</div>
</div>
<div id="shortcuts-text" title="Shortcuts" class="text-box">
<p>Expand / collapse control + space
<br />Indent tab
<br />Outdent shift + tab
<br />Zoom in alt + right
<br />Zoom out alt + left
<br />(or hit 'enter' on an empty line)
<br />Move alt + shift + arrows
<br />Delete control + shift + backspace
</p>
</div>
<div id="container">
<div class="page">
<div id="trellis">
</div>
</div>
</div>
<div id="nid-template" class="ts-entry ui-droppable hidden">
<span class="ts-expander"></span>
<span class="ts-title" property="title"></span>
<div class="ts-actions">
<span class="ts-addChild" title="Add Child">+</span>
<span class="ts-delete" title="Delete">x</span>
<span class="ts-card" title="Card">▢</span>
</div>
<div class="ts-dragger">
<span class="ts-handle" title="Drag">↕</span>
</div>
<span class="date" property="created"></span>
</div>
<div id="card" title="Card" class="text-box">
<div id="card-title">Title</div>
<div id="card-content">
<div id="card-nid">nid</div>
<p>This is the card</p>
<div id="card-date">date</div>
</div>
</div>
</body>
</html>