-
Notifications
You must be signed in to change notification settings - Fork 80
/
index.html
61 lines (58 loc) · 2.39 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
<!doctype html>
<html>
<head>
<title>Browser Native node-wot tryout</title>
<!-- Foundation CSS framework -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/foundation/5.5.3/css/foundation.min.css" />
<!-- Font Awesome icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.0.3/css/font-awesome.css" />
<!-- defer to not block rendering -->
<script src="https://cdn.jsdelivr.net/npm/@json-editor/json-editor@latest/dist/jsoneditor.min.js"></script>
<!-- local vs cdn dependency -->
<script src="../../packages/browser-bundle/dist/wot-bundle.min.js" defer></script>
<!-- <script
src="https://cdn.jsdelivr.net/npm/@node-wot/browser-bundle@latest/dist/wot-bundle.min.js"
defer
></script> -->
<script src="index.js" defer></script>
<script>
// Set the default CSS theme and icon library globally
// JSONEditor.defaults.theme = 'foundation5';
JSONEditor.defaults.iconlib = "fontawesome4";
</script>
</head>
<body>
<div id="topbar" class="row">
<div class="medium-12 columns">
<h1>Browsified node-wot</h1>
<input id="td_addr" type="url" value="http://plugfest.thingweb.io:8083/testthing" />
<button id="fetch" type="button">Consume</button>
</div>
</div>
<div id="interactions" class="row" style="display: none">
<div class="medium-4 columns">
<figure>
<figcaption><h4>Properties</h4></figcaption>
<ul id="properties" class="side-nav"></ul>
</figure>
</div>
<div class="medium-4 columns">
<figure>
<figcaption><h4>Actions</h4></figcaption>
<ul id="actions" class="side-nav"></ul>
</figure>
</div>
<div class="medium-4 columns">
<figure>
<figcaption><h4>Events</h4></figcaption>
<ul id="events" class="side-nav"></ul>
</figure>
</div>
</div>
<div class="row">
<div class="medium-6 columns small-offset-3">
<div id="editor_holder"></div>
</div>
</div>
</body>
</html>