summaryrefslogtreecommitdiff
path: root/webcards/index.html
blob: d34a9508c5fb17a0f82001a8cbf7672a263d2e2c (plain)
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
<!DOCTYPE HTML>

<html>
    <head>
        <meta name="viewport" content="width=device-width,initial-scale=1">
        <meta charset="utf-8">

        <link href="https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap" rel="stylesheet">
        <link rel="stylesheet" type="text/css" href="styles/icofont.css">

        <link rel="icon" sizes="32x32" href="images/wc-icon-32.png">
        <link rel="icon" sizes="48x48" href="images/wc-icon-48.png">
        <link rel="icon" sizes="96x96" href="images/wc-icon-96.png">
        <link rel="icon" sizes="144x144" href="images/wc-icon-144.png">
        <link rel="icon" sizes="288x288" href="images/wc-icon-288.png">

        <link rel="stylesheet" type="text/css" href="styles/home/base.css">
        <link rel="stylesheet" type="text/css" href="styles/home/desktop.css">
        <link rel="stylesheet" type="text/css" href="styles/home/mobile.css">

        <link rel="stylesheet" type="text/css" href="styles/input.css">

        <link id="theme" rel="stylesheet" type="text/css" href="styles/themes/colors-base.css">

        <script src="scripts/gui/input.js"></script>

        <script src="scripts/cookie.js"></script>
        <script src="scripts/theme.js"></script>

        <title>WebCards</title>
    </head>

    <body>
        <div class="content">
            <p style="font-size: 30px; font-weight: normal;">Web<span style="color: #0084ff; font-weight: bold;">Cards</span></p>
            <div>
                <div class="input-container" tabindex="0" type="select">
                    <div id="protocol" tabindex="0" selected="0" class="input-select">
                        <div value="ws://" onmousedown="customSelectOption(this)" selected="true">ws</div>
                        <div value="wss://" onmousedown="customSelectOption(this)">wss</div>
                    </div>
                </div>

                <input id="addr" type="text" value="127.0.0.1">

                <input id="port" type="number" value="4040">
            </div>

            <button id="conn" onclick="connect()">Connect</a>
        </div>

        <script>
            var proto = document.getElementById("protocol");
            var addr = document.getElementById("addr");
            var port = document.getElementById("port");
            var conn = document.getElementById("conn");

            //t.onchange = updateLink;
            //a.onchange = updateLink;
            //p.onchange = updateLink;

            function connect() {
                var url = "client.html?s=" + customSelectValue(proto) + addr.value + ":" + port.value + "&g=-1";
                //c.setAttribute("href", url);
                window.location = url;
            }
        </script>
    </body>
</html>