Skip to content

Commit

Permalink
changed file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
RabbitTV22 committed Oct 1, 2024
1 parent 9224c2a commit 2eaa1b0
Show file tree
Hide file tree
Showing 3 changed files with 221 additions and 0 deletions.
127 changes: 127 additions & 0 deletions en/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
<!DOCTYPE html>
<html lang="en">

<head>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-1Z5DNPCXWE"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-1Z5DNPCXWE');

</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Rabbit Network</title>
<link rel="stylesheet" href="/css/index.css">
<script type="text/javascript" src="/js/ipcopy.js"></script>
</head>

<body>
<header>
<nav class="navbar">
<ul>
<li><a href="changelog.html">Changelog</a></li>
<li><a href="/store/store.html">Store</a></li>
<li><a href="information.html">Information</a></li>
</ul>
</nav>
</header>
<div class="hero-section">
<div class="hero-content">
<h1>Rabbit Network</h1>
<p>Welcome to Rabbit Network, a place with exciting gamemodes and endless possibilities!</p>
</div>
</div>

<!-- Adding an image of a castle -->
<section>
<img src="/images/castle.png" alt="Castle Image" class="section-image">
</section>

<section class="server-info">
<h2>Server Information</h2>
<ul>
<li>IP: <code style="font-size: 20px">rabbit-network.net</code> <button onclick="copyToClipboard('rabbit-network.net')">Copy IP</button></li>
<li>Minecraft Version: 1.21+ Bedrock and Java compatible (works on 1.19.4+ even though it is not recommended)</li>
<li>Bedrock Port: 19135</li>
<li>Discord Server: <a href="https://discord.gg/AGnu449cMf" target="_blank">Join us on Discord</a></li>
<li>Twitch: <a href="https://twitch.tv/rabbittv" target="_blank">Watch us on Twitch</a></li>
<li>YouTube: <a href="https://youtube.com/@rabbittv_" target="_blank">Subscribe on YouTube</a></li>
</ul>
</section>
<div id="alertBox">Copied the IP to clipboard!</div>

<!-- Adding an image of the Nether with purple color -->
<section>
<img src="/images/mountains.png" alt="Mountains Image" class="section-image">
</section>

<section>
<h2>Gamemodes</h2>
<div class="feature-box creative">
<h3>Creative</h3>
<p>Are you tired of always having to vote for world edit and those super small plots? Well on Rabbit Network, you have all world edit command for free no voting required! Also you get a 450x450 block plot so you never run out of space.</p>
</div>
<div class="feature-box survival">
<h3>Survival</h3>
<p>Our survival world is nothing like others! It features a bunch of cool custom biomes in all three dimensions! It also has a wide variety of custom structures with special enchantments and special items. All of this with grief protection for those who don't like having their base destroyed!</p>
</div>
</section>




<section>
<h2>Server Specifications</h2>
<ul>
<li>Processor: Intel Core i3-12100f</li>
<li>RAM: 32GB DDR4 @ 3200MHz</li>
<li>Storage: 512GB NVME SSD</li>
<li>Network: 1+ GB/s Ethernet</li>
</ul>
</section>

<!-- Adding an image of a cave -->
<section>
<img src="/images/cave.png" alt="Cave Image" class="section-image">
</section>

<section>
<h2>Additional Server IPs</h2>
<ul>
<li><code>mc.rabbit-network.net</code></li>
<li><code>play.rabbit-network.net</code></li>
</ul>
</section>

<section>
<h2>Software Used</h2>
<p>Server proxy is Velocity. All backend servers are running Purpur 1.21.1. The physical server is running Ubuntu server and the servers are managed with Crafty Controller.</p>
</section>

<section>
<h2>Staff</h2>
<ul class="staff-list">
<li>[OWNER] RabbitTV</li>
<li>[ADMIN] Aporm</li>
<li></li>
</ul>
</section>
<center>
<footer id="footer"><b>
&copy; 2023 - 2024 Rabbit Network. All rights Reserved. <a href="https://github.com/RabbitTV22/Website">Source code</a></b>
</footer>
</center>
</body>

</html>
18 changes: 18 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
<meta charset="UTF-8">
<meta http-equiv="Refresh" content="0; url=www.rabbit-network.net/en/">
<title>Rabbit Network</title>
</head>
<body>

</body>
</html>
76 changes: 76 additions & 0 deletions js/ipcopy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
// JavaScript for slideshow/carousel
let slideIndex = 0;
const slides = document.querySelectorAll('.slideshow-slide');
const totalSlides = slides.length;

function showSlides() {
slides.forEach(slide => {
slide.style.display = 'none';
});

slideIndex++;

if (slideIndex > totalSlides) {
slideIndex = 1;
}

slides[slideIndex - 1].style.display = 'block';
setTimeout(showSlides, 5000); // Change slide every 5 seconds
}

showSlides();

// JavaScript for form validation
const form = document.querySelector('form');

form.addEventListener('submit', function(event) {
const emailInput = document.querySelector('#email');
const emailValue = emailInput.value.trim();

if (!isValidEmail(emailValue)) {
event.preventDefault();
alert('Please enter a valid email address.');
}
});

function isValidEmail(email) {
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
return emailRegex.test(email);
}

// JavaScript for toggling light/dark mode
const toggleSwitch = document.querySelector('.theme-switch input[type="checkbox"]');
const currentTheme = localStorage.getItem('theme');

if (currentTheme) {
document.documentElement.setAttribute('data-theme', currentTheme);

if (currentTheme === 'dark') {
toggleSwitch.checked = true;
}
}

toggleSwitch.addEventListener('change', function(event) {
if (event.target.checked) {
document.documentElement.setAttribute('data-theme', 'dark');
localStorage.setItem('theme', 'dark');
} else {
document.documentElement.setAttribute('data-theme', 'light');
localStorage.setItem('theme', 'light');
}
});

function copyToClipboard(text) {
navigator.clipboard.writeText(text).then(function() {
/* Show the alert box */
showAlert();
}, function(err) {
console.error('Async: Could not copy text: ', err);
});
}

function showAlert() {
var alertBox = document.getElementById("alertBox");
alertBox.className = "show";
setTimeout(function(){ alertBox.className = alertBox.className.replace("show", ""); }, 3000);
}

0 comments on commit 2eaa1b0

Please sign in to comment.