-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
122 lines (107 loc) · 5.04 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Home - School SMP</title>
<link rel="stylesheet" href="style.css">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="manifest" href="/manifest.json"> <!-- Manifest link -->
<!-- Google AdSense -->
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3309273645696464"
crossorigin="anonymous"></script>
<style>
/* Cookie banner styling */
#cookie-banner {
position: fixed;
bottom: -100px; /* Initially hide the banner off-screen */
left: 0;
width: 100%;
background-color: #333;
color: white;
text-align: center;
padding: 15px;
display: none;
z-index: 1000;
border-top-right-radius: 10px;
border-top-left-radius: 10px;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
transition: bottom 0.5s ease-in-out; /* Slide-in effect */
}
#cookie-banner button {
background-color: #4CAF50;
color: white;
padding: 5px 10px;
border: none;
cursor: pointer;
font-size: 14px;
}
</style>
</head>
<body>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About SMP</a></li>
<li><a href="rules.html">Rules</a></li>
<li><a href="downloads.html">Downloads</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a href="login.html">Login</a> / <a href="signup.html">Signup</a></li>
</ul>
</nav>
<main>
<h1>Welcome to Our School SMP!</h1>
<p>
This is the official website for our School Minecraft SMP (Survival Multiplayer) server. Whether you’re a student on Bedrock or Java Edition, our SMP is the perfect place to play Minecraft with friends from school in a safe, fun, and creative environment. 🎮<br><br>
The School SMP is a student-run project supported by our school community. It's more than just a server — it’s a place where creativity meets teamwork, where you can build your dream base, go on epic adventures, or collaborate with classmates to make amazing creations.<br><br>
All players must follow server rules to keep the experience positive and respectful for everyone. New to the server? Make sure to read the <a href="rules.html">Rules & How to Join</a> page to learn how to get whitelisted and join the fun! We accept students using school emails that end in <strong>@ssdedu.org</strong> — make sure you’re using the correct email when signing up or contacting us.<br><br>
We’ll also be hosting awesome events, like build competitions, scavenger hunts, and survival challenges. Stay tuned for updates!<br><br>
Ready to get started? Use the navigation above to explore the site. You can learn more about the SMP, view the rules, download any needed files, contact the admins, or create an account.<br><br>
Have fun, play fair, and build something epic! 🌍🧱🔥
</p>
</main>
<footer>
<p>© 2025 School SMP. All rights reserved.</p>
<p>Powered by School SMP</p>
</footer>
<!-- Cookie consent banner -->
<div id="cookie-banner">
<p>We use cookies to improve your experience. By continuing to use this site, you agree to our use of cookies.
<button id="accept-cookies">Accept</button>
</p>
</div>
<script>
// Function to check if cookies have been accepted
function checkCookieConsent() {
if (!localStorage.getItem('cookiesAccepted')) {
document.getElementById('cookie-banner').style.display = 'block';
setTimeout(function() {
document.getElementById('cookie-banner').style.bottom = '0'; // Animate the banner from below
}, 100); // Short delay before sliding in
}
}
// Function to handle the acceptance of cookies
document.getElementById('accept-cookies').addEventListener('click', function() {
localStorage.setItem('cookiesAccepted', 'true'); // Store cookie consent in localStorage
document.getElementById('cookie-banner').style.bottom = '-100px'; // Hide the banner by sliding it out
setTimeout(function() {
document.getElementById('cookie-banner').style.display = 'none'; // Completely hide it after animation
}, 500); // Wait for the slide-out animation to finish
});
// Check cookie consent status on page load
window.onload = function () {
showProfileBar(); // Display profile bar if logged in
checkCookieConsent(); // Check cookie consent status
};
if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
navigator.serviceWorker.register('/service-worker.js').then(function(registration) {
console.log('Service Worker registered with scope: ', registration.scope);
}).catch(function(error) {
console.log('Service Worker registration failed: ', error);
});
});
}
</script>
<script defer src="auth.js"></script>
</body>
</html>