-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathservices.html
249 lines (247 loc) · 8.86 KB
/
services.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<!DOCTYPE html>
<html lang="en">
<head>
<title>Yggdrasil Network | Public Services</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="author" content="Thingylabs">
<meta name="description" property="og:description" content="Yggdrasil is a new and experimental compact routing scheme designed for mesh or even Internet-like networks.">
<meta name="image" property="og:image" content="https://ygg.thingylabs.io/image.webp">
<meta property="og:title" content="Yggdrasil Network | Public Services">
<meta property="og:url" content="https://ygg.thingylabs.io/">
<meta property="og:description" content="Yggdrasil is a new and experimental compact routing scheme designed for mesh or even Internet-like networks.">
<meta property="og:image" content="https://ygg.thingylabs.io/image.webp">
<link rel="stylesheet" href="bootstrap.purged.css">
<link rel="stylesheet" href="style.css">
<script defer src="lib/custom-elements.min.js"></script>
<script defer src="dist/index.js" type="module"></script>
<style>
span {
user-select: all;
cursor: grab;
}
span:active:hover {
cursor: grabbing;
}
.react-terminal-wrapper {
position: relative;
}
#tos {
position: absolute;
top: 0;
left: 0;
margin: 40px 0 10px;
width: 100%;
height: calc(100% - 80px);
backdrop-filter: blur(4px);
display: flex;
align-items: center;
justify-content: center;
color: black;
}
#tos > div {
display: none;
background-color: white;
border-radius: 4px;
padding: 2px 20px 10px;
}
#tos ul {
padding-left: 0;
text-align: center;
min-height: 20px;
}
#tos ul li {
display: inline;
}
#tos ul:first-child {
font-size: smaller;
}
#tos ol {
list-style-type: disc;
padding-left: 20px;
}
.btn {
box-sizing: border-box;
overflow: visible;
margin: 0;
text-transform: none;
display: inline-block;
padding: 0.25rem 0.5rem;
font-size: 0.875rem;
font-weight: 400;
line-height: 1.5;
color: #fff;
text-align: center;
text-decoration: none;
vertical-align: middle;
user-select: none;
border: 1px solid #0d6efd;
border-radius: 0.25rem;
background-color: #0d6efd;
transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
cursor: pointer;
}
.btn:hover {
color: #0d6efd;
cursor: not-allowed !important;
}
.btn-solid:hover {
color: #fff;
background-color: #0b5ed7;
border-color: #0a58ca;
cursor: pointer !important;
}
.btn-outline {
color: #0d6efd;
border-color: #0d6efd;
background-color: transparent;
}
label {
cursor: pointer;
}
.display-none {
display: none;
}
.dimensions {
width: 620px;
margin: 0 10px;
}
.dimensions > div {
padding: 0 10px;
}
.close {
float: right;
color: black;
}
.close:hover {
color: black;
text-decoration: none;
text-shadow: 1px 0 0 black;
}
</style>
<script>
const forceTos = window.location.hash === '#show-tos'
let tosAccepted = localStorage.getItem('tos-accepted') === 'true'
const hideTosStyle = document.createElement('style')
let buttonActivated = false
hideTosStyle.textContent = '#tos { display: none; }'
if (tosAccepted && !forceTos) {
document.head.appendChild(hideTosStyle)
}
if (!tosAccepted || forceTos) {
window.addEventListener('load', function () {
document.querySelector('#tos > div').style.display = 'block'
})
}
function copy (event) {
const element = event.target
navigator.clipboard.writeText(element.innerText)
element.after(' - copied!')
setTimeout(_ => {
element.nextSibling.remove()
}, 1000)
}
function togglButton () {
if (tosAccepted) {
if (buttonActivated) {
return
}
buttonActivated = true
}
const button = document.getElementById('button')
button.classList.toggle('btn-outline')
button.classList.toggle('btn-solid')
}
function accept (event) {
event.preventDefault()
const checkbox = document.getElementById('tos-accepted').checked
if (checkbox !== tosAccepted) {
localStorage.setItem('tos-accepted', checkbox)
}
if (checkbox) {
if (forceTos) {
window.location.hash = ''
return
}
document.head.appendChild(hideTosStyle)
return
}
if (tosAccepted) {
tosAccepted = false
togglButton()
}
}
function closeTos () {
event.preventDefault()
if (tosAccepted) {
document.head.appendChild(hideTosStyle)
if (forceTos) {
window.location.hash = ''
}
return false
}
window.open('/', '_self')
return false
}
window.addEventListener('hashchange', function () {
location.reload()
})
window.addEventListener('load', function () {
if (forceTos && tosAccepted) {
document.getElementById('tos-accepted').checked = true
togglButton()
}
})
</script>
</head>
<body>
<div id="terminal">
<div class="container">
<x-nav></x-nav>
<div class="react-terminal-wrapper" data-terminal-name="">
<x-buttons></x-buttons>
<div id="tos">
<div class="dimensions">
<ul>
<li>Terms of Use</li>
<li><a class="close" href="#" onclick="closeTos(event)">✕</a></li>
</ul>
<div>
<b>Um diese Dienste nutzen zu dürfen, müssen Sie den folgenden Bedingungen zustimmen:</b>
<ol>
<li>Sie verpflichten sich, die deutschen Gesetze bei der Nutzung dieser Dienste einzuhalten.</li>
<li>Sollten Sie die Verbindungsdaten dieser Dienste weitergeben, sind Sie dazu verpflichtet, auf diese Bedingungen hinzuweisen.</li>
</ol>
<ul>
<li><label><input type="checkbox" id="tos-accepted" onclick="togglButton(event)" required> Bedingung akzeptiert</label></li>
<li><button id="button" class="btn btn-outline" onclick="accept(event)">Bestätigen</button></li>
</ul>
<small><a href="https://www.thingylabs.io/impressum.html">Impressum</a></small>
</div>
</div>
</div>
<div class="react-terminal">
<p class="react-terminal-line">Services:</p>
<p class="react-terminal-line">- name: <a href="https://github.com/esnet/iperf">iperf3</a> (see <a href="speedtest.html">Speedtest</a>)</p>
<p class="react-terminal-line"> usage:</p>
<p class="react-terminal-line"> - <span onclick="copy(event)">iperf3 -6 -c ygg-only.thingylabs.io</span></p>
<p class="react-terminal-line"> - <span onclick="copy(event)">iperf3 -4 -c ygg-uplink.thingylabs.io</span></p>
<p class="react-terminal-line">- name: <a href="https://github.com/mafintosh/signalhub">signalhub</a></p>
<p class="react-terminal-line"> urls:</p>
<p class="react-terminal-line"> - <span onclick="copy(event)">https://signalhub.thingylabs.io</span></p>
<p class="react-terminal-line"> - <span onclick="copy(event)">https://signalhub-ygg.thingylabs.io</span></p>
<p class="react-terminal-line">- name: <a href="https://github.com/holepunchto/hyperdht">hyperdht</a></p>
<p class="react-terminal-line"> urls:</p>
<p class="react-terminal-line"> - <span onclick="copy(event)">hyperdht.thingylabs.io:49737</span> (IPv6 only)</p>
<p class="react-terminal-line"> - <span onclick="copy(event)">hyperdht-ygg.thingylabs.io:49737</span></p>
<p class="react-terminal-line"></p>
<p class="react-terminal-line">Services by others: <a href="https://yggdrasil-network.github.io/services.html">Yggdrasil Connected Services Directory</a></p>
</div>
</div>
<x-footer></x-footer>
</div>
</div>
<script defer src="lib/change-background-color.js"></script>
<script defer src="lib/prefetch-via-yggdrasil.js"></script>
</body>
</html>