aboutsummaryrefslogtreecommitdiffstats
path: root/public/index.html
blob: 98da3a32ed4d8ea449f9d6ea92371367602b7329 (plain) (blame)
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
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>ferdi-server</title>

  <link rel="stylesheet" href="css/vanilla.css">

  <style>
    ol,
    p {
      margin: 0.5rem 0;
    }

  </style>
</head>

<body>
  <h1>ferdi-server</h1>
  
  <p>You are accessing a custom <a href="https://github.com/kytwb/ferdi">Ferdi</a> server.</p>
  <p>
    To use this server in your Ferdi client, <a href="ferdi://settings/app">open Ferdi's settings</a> and as the <code>server</code>, enter <code id="server"></code>
  </p>

  <br />
  <small>
    <a href="https://github.com/vantezzen/ferdi-server">ferdi-server</a> is a project by <a href="https://vantezzen.io">vantezzen</a>.
  </small>

  <script>
    // Get server URL for current location
    let server = location.href.replace('/index.html', '');
    if (server[server.length - 1] == '/') {
        server = server.substr(0, server.length - 1)
    }

    // Show on page
    document.getElementById('server').innerText = server;
  </script>
</body>

</html>