forked from aguestuser/show-me-the-money
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdev.html
52 lines (49 loc) · 1.65 KB
/
dev.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/><meta charset="UTF-8">
<title>Oligrapher Demo</title>
<script src="http://localhost:8090/webpack-dev-server.js"></script>
<script src="http://localhost:8090/build/vendors.js"></script>
<script src="http://localhost:8090/build/oligrapher.min.js"></script>
<script src="LsDataSource.js"></script>
<script src="oligrapher-demo-data.js"></script>
<style>
body {
margin: 10px;
}
</style>
</head>
<body>
<div id="oligrapher"></div>
<script>
var elem = document.getElementById('oligrapher');
elem.style.height = window.innerHeight - 100 + "px";
var oli = new Oligrapher({
root: elem,
isEditor: true,
isLocked: false,
logActions: false,
viewOnlyHighlighted: false,
dataSource: LsDataSource,
data: oligrapherDemoData,
user: { name: "Kevin", url: "http://littlesis.org/user/kevin" },
date: "August 30, 2015",
startAnnotation: 0,
showSaveButton: true,
onSave: function(data) { console.log(data); },
onNav: function(index) { console.log("navigating to annotation " + String(index)); },
links: [
{ text: "some", url: "http://some.net" },
{ id: "exampleLink", text: "example", url: "http://example.com" },
{ method: "POST", text: "clone", url: "http://lilsis.local/maps/118-satoshi/clone" }
],
settings: {
is_private: false,
is_featured: false
}
});
// oli.import(oligrapherDemoData);
</script>
</body>
</html>