diff --git a/en/home.html b/en/home.html new file mode 100644 index 0000000..69941fc --- /dev/null +++ b/en/home.html @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + Rabbit Network + + + + + +
+ +
+
+
+

Rabbit Network

+

Welcome to Rabbit Network, a place with exciting gamemodes and endless possibilities!

+
+
+ + +
+ Castle Image +
+ +
+

Server Information

+ +
+
Copied the IP to clipboard!
+ + +
+ Mountains Image +
+ +
+

Gamemodes

+
+

Creative

+

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.

+
+
+

Survival

+

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!

+
+
+ + + + +
+

Server Specifications

+ +
+ + +
+ Cave Image +
+ +
+

Additional Server IPs

+ +
+ +
+

Software Used

+

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.

+
+ +
+

Staff

+ +
+
+ +
+ + + diff --git a/index.html b/index.html new file mode 100644 index 0000000..fab736e --- /dev/null +++ b/index.html @@ -0,0 +1,18 @@ + + + + + + + + + + + + + Rabbit Network + + + + + \ No newline at end of file diff --git a/js/ipcopy.js b/js/ipcopy.js new file mode 100644 index 0000000..12b27cb --- /dev/null +++ b/js/ipcopy.js @@ -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); +}