-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
103 lines (96 loc) · 3.92 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Zion</title>
<meta name="description" content="A Thing Description Directory for large-scale IoT projects.">
<meta name="author" content="Cristiano Aguzzi">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="//fonts.googleapis.com/css?family=Raleway:400,300,600" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/skeleton.css">
<link rel="stylesheet" href="css/spine-player.css">
<link rel="icon" href="images/favicon.svg" type="image/svg+xml" sizes="any">
<script src="https://unpkg.com/@esotericsoftware/[email protected]/dist/iife/spine-player.js"></script>
<style>
.icon {
width: 2.5em;
overflow: hidden;
}
@media (min-width: 550px) {
.offset-by-four-half.column,
.offset-by-four-half.columns { margin-left: 40%; }
}
</style>
<script type="module">
const data = await fetch('./explorer-json');
const json = await data.json();
document.getElementById("version").innerHTML = json.info.version;
</script>
<script defer>
document.addEventListener('DOMContentLoaded', function (event) {
if(typeof spine === "undefined"){
document.getElementById('logo').remove();
document.getElementById('placeholder').style.display = 'block'
return;
}
document.getElementById('placeholder').style.display = 'none'
new spine.SpinePlayer("logo", {
// Relative URLs
jsonUrl: "./assets/skeleton.json",
atlasUrl: "./assets/skeleton.atlas",
showControls: false,
alpha: true, // Enable player translucency
backgroundColor: "#00000000", // Background is fully transparent
showLoading : false,
success: function (player) {
player.setAnimation("init", false);
player.animationState.setAnimation(0, "init");
player.animationState.addAnimation(0, "idle", true, 0);
player.play();
},
viewport: {
x: -90,
y: -90,
width: 558,
height: 180,
padLeft: "5%",
padRight: "5%",
padTop: "5%",
padBottom: "5%"
}
});
});
</script>
</head>
<body>
<!-- Primary Page Layout
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<div class="container">
<div class="row">
<div class="eight offset-by-two columns" id="logo" style="margin-top: 15%; aspect-ratio: 16 / 9;"></div>
<img class="eight offset-by-two columns" id="placeholder" style="margin-top: 15%;" src="./assets/zionLogo.gif" hidden loading="lazy"/>
</div>
<div class="row">
<div class="four offset-by-four columns " style="text-align: center;">
<h6>Version <span id="version"></span></h6>
</div>
</div>
<div class="row">
<div class="eight offset-by-two columns ">
<p style="text-align: center;">
Your Thing Description Directory is <b>up</b> and <b>running</b>. Look for the Thing Description? You can click below!
You can also use the swagger to explore the API or visit the Github repository for more information.
</p>
</div>
</div>
<div class="row">
<div class="one offset-by-four-half column"><a href="./.well-known/wot"><img class="icon" src="./images/td.png"></img></a></div>
<div class="one column"><a href="https://github.com/vaimee/zion"><img class="icon" src="./images/github.png"></img></a></div>
<div class="one column"><a href="./explorer"><img class="icon" src="./images/swagger.png"></img></a></div>
</div>
</div>
<!-- End Document
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
</body>
</html>