This repository has been archived by the owner on Aug 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
79 lines (74 loc) · 2.89 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>askos</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/askos/edit/master/index.html" />
<style>
[v-cloak] {display: none}
label > input[type=file] { display: none}
.tabular.menu .item {cursor: pointer}
#app {margin: 1%}
.ui.hover-hidden {display: none}
tr:hover .ui.hover-hidden {display: inherit}
tr td .ui.input {display: none}
.compact.table tbody td:last-child {padding: 0}
.ui.bottom.attached.segment {padding:0}
.ui.pointing.menu .item{cursor: pointer}
</style>
</head>
<body>
<p></p>
<div id="app">
<div class="ui three column grid">
<div class="column">
<h1 class="ui header">
Askos
<div class="ui sub header">
A SKOS browser and editor.
</div>
</h1>
</div>
<div class="column">
<label class="ui labeled icon button" for="import">
<i class="upload icon"></i> Import
<input type="file" accept=".ttl, .n3, .json, .jsonld" id="import"
@change="importSKOS" />
</label>
</div>
<div class="column">
<a class="ui right floated icon button" href="https://github.com/WileyLabs/askos" target="_blank">
<i class="github alternate icon"></i>
Fork / Contribute
</a>
</div>
</div>
<div class="ui secondary pointing menu">
<div class="item" @click="active_tab = 'editor'" :class="{active: active_tab == 'editor'}">Editor</div>
<div class="item" @click="active_tab = 'context'" :class="{active: active_tab == 'context'}">@context</div>
<div class="item" @click="active_tab = 'triples'" :class="{active: active_tab == 'triples'}">Triples</div>
</div>
<div class="ui bottom attached tab" :class="{active: active_tab == 'editor'}">
<skos-viewer ref="skos" language="en"></skos-viewer>
</div>
<div class="ui bottom attached tab" :class="{active: active_tab == 'context'}">
<context-form :context.sync="context"></context-form>
</div>
<div class="ui bottom attached tab" :class="{active: active_tab == 'triples'}">
<table class="ui table">
<tr v-for="triple in table">
<td>{{triple.subject}}</td>
<td>{{triple.predicate}}</td>
<td>{{triple.object}}</td>
</tr>
</table>
</div>
</div>
<script src="dist/index.js"></script>
</body>
</html>