forked from SathiraSriSathsara/minecraft-website
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
92 lines (84 loc) · 3.41 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Justin City | SMP and Minigame Minecraft Server</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"
integrity="sha512-c42qTSw/wPZ3/5LBzD+Bw5f7bSF2oxou6wEb+I/lqeaKV5FDIfMvvRp772y4jcJLKuGUOpbJMdg/BTl50fJYAw=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link rel="stylesheet" href="styles.css" />
<script
src="https://kit.fontawesome.com/5acf4d9e80.js"
crossorigin="anonymous"
></script>
</head>
<body>
<header>
<nav>
<ul>
<li><a href="index.html">[Home]</a></li>
<li><a href="about.html">About</a></li>
<li><a href="rules.html">Rules</a></li>
<img class="logo" src="logo.png" width="5%" height="5%" />
<li><a href="https://eastondean195.wixsite.com/justincityfourms">Forums</a></li>
<li><a href="https://discord.gg/soon">Discord</a></li>
<li><a href="https://mcrealmhub.com/realm-justin-city.454/vote">Vote</a></li>
<li><a href="https://sites.google.com/view/justin-city/join">Join</a></li>
</ul>
</nav>
</header>
<main>
<div class="center">
<div class="animate__animated animate__jackInTheBox">
<h1>Welcome to Justin City!</h1>
<p id="ip">realms.gg/hb7nB-TopWc</p>
<div class="animate__animated animate__bounceIn animate__delay-1s">
<a href="https://discord.gg/Soon" target="_blank"
><button class="btn1">
<i class="fab fa-discord"></i> Discord
</button></a
>
<a href="https://sites.google.com/view/justin-city/join"
><button class="btn2">
<i class="fas fa-shopping-basket"></i> Join Server
</button></a
>
<a href="https://mcrealmhub.com/realm-justin-city.454/vote"
><button class="btn3"><i class="fas fa-poll"></i> Vote</button></a
>
</div>
</div>
</div>
</main>
<footer>© 2024 Justin City. All rights reserved. | <a href=https://github.com/Justin-City/minecraft-website>This site is Open-Source</a> </footer>
<script>
document.getElementById("ip").onclick = function () {
/* Get the text from the element */
var textToCopy = this.textContent;
/* Create a temporary input element */
var tempInput = document.createElement("input");
tempInput.setAttribute("value", textToCopy);
document.body.appendChild(tempInput);
/* Select the text in the input element */
tempInput.select();
tempInput.setSelectionRange(0, 99999); /* For mobile devices */
/* Copy the selected text to the clipboard */
document.execCommand("copy");
/* Remove the temporary input element */
document.body.removeChild(tempInput);
/* Optionally, provide some feedback to the user */
alert("Text copied to clipboard: " + textToCopy);
};
</script>
<script src="script.js"></script>
<script
src="https://kit.fontawesome.com/5acf4d9e80.js"
crossorigin="anonymous"
></script>
</body>
</html>