-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
68 lines (64 loc) · 2.91 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JSON-LD Hinter for CodeMirror</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.22.2/codemirror.min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.22.2/addon/lint/lint.min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.22.2/addon/hint/show-hint.min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.6/semantic.css" />
<link rel="edit-form" href="https://github.com/WileyLabs/codemirror-jsonld-hint/edit/master/index.html" />
<style>
code { background: #eee; padding: 0.2em }
hr { border: 1px solid #ccc; margin: 0 }
a.button { float: right; margin-right: 1em }
#intro { margin: 0 1.5em 1.5em }
</style>
</head>
<body>
<div id="intro">
<a target="_blank" class="button" href="https://github.com/WileyLabs/codemirror-jsonld-hint/">Fork / Contribute</a>
<h1>
<a target="_blank" href="http://json-ld.org/">JSON-LD</a> hinter for
<a target="_blank" href="http://codemirror.net/">CodeMirror</a>
</h1>
Type <code>"</code> to start default @vocab
(<a href="http://www.w3.org/TR/annotation-model/">Web Annotation</a>)
completion.
Type <code>@</code> or press <code>Ctrl+Space</code> to get
<a href="http://json-ld.org/spec/">JSON-LD</a> term hints.
Type <code>schema:</code> to complete
<a href="http://schema.org/">Schema.org</a> terms.
</div>
<hr />
<textarea id="textarea">
{
"@context": {
"@vocab": "http://www.w3.org/ns/anno.jsonld",
"schema": "http://schema.org/"
},
"target": "http://bigbluehat.com/",
"motivation": "bookmarking",
"creator": {
"@type": "Person",
"schema:alternateName": "BigBlueHat"
}
}</textarea>
<hr />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jsonlint/1.6.0/jsonlint.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.23.0/codemirror.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.23.0/mode/javascript/javascript.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.23.0/addon/lint/lint.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.23.0/addon/lint/json-lint.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.23.0/addon/hint/show-hint.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jsonld/0.4.11/jsonld.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/es6-promise/4.0.5/es6-promise.min.js"></script>
<!-- local includes -->
<script src="./contexts.js"></script>
<script src="./jsonld-hinter.js"></script>
<script src="./contexts-hinter.js"></script>
<!-- the app -->
<script src="./index.js"></script>
</body>
</html>