aboutsummaryrefslogtreecommitdiffhomepage
path: root/minecraft/index.html
blob: 9a5abab5b25241fef90fced2700fb961bc05649a (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 lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />

    <script src="/script.js"></script>
    <link rel="stylesheet" href="/style.css" />
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />

    <title>Minecraft server list</title>
  </head>

  <script>
    function add2whitelist() {
      username = document.getElementById("username").value;
      button = document.getElementById("add-button");
      fetch("https://mc.igorek.dev/whitelist", {
        method: "POST",
        body: username,
      }).then((response) => {
        response.text().then((text) => {
          button.textContent = `[${text}]`;
          setTimeout(() => (button.textContent = "[+ add]"), 2000);
        });
      });
    }
  </script>

  <body>
    <pre style="font-size: clamp(0.25em, 1.5vw, 0.75em)">

 ██████   ██████  ███                                                      ██████   █████   
░░██████ ██████  ░░░                                                      ███░░███ ░░███    
 ░███░█████░███  ████  ████████    ██████   ██████  ████████   ██████    ░███ ░░░  ███████  
 ░███░░███ ░███ ░░███ ░░███░░███  ███░░███ ███░░███░░███░░███ ░░░░░███  ███████   ░░░███░   
 ░███ ░░░  ░███  ░███  ░███ ░███ ░███████ ░███ ░░░  ░███ ░░░   ███████ ░░░███░      ░███    
 ░███      ░███  ░███  ░███ ░███ ░███░░░  ░███  ███ ░███      ███░░███   ░███       ░███ ███
 █████     █████ █████ ████ █████░░██████ ░░██████  █████    ░░████████  █████      ░░█████ 
░░░░░     ░░░░░ ░░░░░ ░░░░ ░░░░░  ░░░░░░   ░░░░░░  ░░░░░      ░░░░░░░░  ░░░░░        ░░░░░  
                                                                                            
                                                                                            
                                                                                            
                                                              ████   ███           █████    
                                                             ░░███  ░░░           ░░███     
  █████   ██████  ████████  █████ █████  ██████  ████████     ░███  ████   █████  ███████   
 ███░░   ███░░███░░███░░███░░███ ░░███  ███░░███░░███░░███    ░███ ░░███  ███░░  ░░░███░    
░░█████ ░███████  ░███ ░░░  ░███  ░███ ░███████  ░███ ░░░     ░███  ░███ ░░█████   ░███     
 ░░░░███░███░░░   ░███      ░░███ ███  ░███░░░   ░███         ░███  ░███  ░░░░███  ░███ ███ 
 ██████ ░░██████  █████      ░░█████   ░░██████  █████        █████ █████ ██████   ░░█████  
░░░░░░   ░░░░░░  ░░░░░        ░░░░░     ░░░░░░  ░░░░░        ░░░░░ ░░░░░ ░░░░░░     ░░░░░   

    </pre>
    <pre>Welcome to minecraft server list page</pre>
    <pre>--- Servers ---</pre>
    <pre>
    Version: <a href="https://minecraft.wiki/w/Java_Edition_1.20.4">1.20.4</a>
     Map: <a href="https://mc.igorek.dev">https://mc.igorek.dev</a>
     IP: <span class="copy" copy-text="mc.igorek.dev:25565">mc.igorek.dev:25565</span>
     Whitelist: <input type="text" id="username" placeholder="username"> <span id="add-button" class="add" onclick="add2whitelist()">[+ add]</span> 
     Recommended mods: <a href="https://modrinth.com/plugin/simple-voice-chat">Simple Voice Chat</a>
    </pre>
    <pre>
    Version: <a href="https://minecraft.wiki/w/Java_Edition_Beta_1.7.3">beta 1.7.3</a>
     IP: <span class="copy" copy-text="mc.igorek.dev:25575">mc.igorek.dev:25575</span>
    </pre>
  </body>
</html>