forked from CardanoSolutions/ogmios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathogmios.html
38 lines (38 loc) · 1 KB
/
ogmios.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Ogmios.dev</title>
<link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap" rel="stylesheet">
<style>
body, html {
height: 100%;
margin: 0;
padding: 0;
}
body {
align-items: center;
background: #cc3898;
color: white;
display: flex;
font-family: 'Arial';
font-size: 1.5em;
justify-content: center;
}
span.origin {
font-family: 'Bebas Neue';
letter-spacing: 0.05em;
}
</style>
</head>
<body>
<p>Now connect to <span class="origin"></span></p>
<script language="javascript">
window.addEventListener('load', function () {
const span = document.querySelector('span.origin');
const protocol = window.location.protocol === "http:" ? "ws" : "wss";
span.innerHTML = protocol + "://" + window.location.host;
});
</script>
</body>
</html>