Skip to content

Commit

Permalink
Merge branch 'cobblesteve01:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinki-bix authored Dec 17, 2024
2 parents 497dce2 + 3457846 commit 77fe085
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"liveServer.settings.port": 5501
"liveServer.settings.port": 5502
}
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@ Here are some things about me:
- Learning JavaScript
- Barely knows JavaScript


### Hey there! I'm Bahabryra.

Here are some things about me:
- Knows HTML, CSS, and Scratch
- Learning Python and JavaScript
- Barely knows Python and Javascript
### Hey there! I'm SprintingSnail69
- Knows HTML, CSS, and a little JavaScript
- Learning more JavaScript
- Has a YouTube channel --> https://youtube.com/@SprintingSnail123
- Insane at Brawl Stars
- yea :(

### Thanks to Thundiverter for making the MC Quick Guide!
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h1 style="font-size: 42px; font-family: inter-bold; margin-top: 60px;">Eaglercr
<br><br>

<div class="container">
<button class="big-button"><u>Announcements</u> <br><br>Eaglercraft 1.9, 1.11, 1.14, <br> Starlike, and 1.8-u39 are out now!</button>
<button class="big-button"><u>Announcements</u> <br><br>Eaglercraft 1.9, 1.11, 1.14, <br> Starlike, and 1.8-u39 are out now! <br> IP 2 for Time Legacy added</button>
<button class="big-button">Need Help?<br><br>Fill out an issue or a discussion! We'll be sure to get back to it.</button>
</div>

Expand Down
42 changes: 22 additions & 20 deletions servers.html
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ <h1 style="margin-bottom: -7px; margin-top: 5px; font-size: 30px;">Creacraft</h1
<div class="button-container">
<div class="container">
<button class="button" style="height: 275px; margin-left: 10px; margin-right: 10px;" data-server="ep.rufan.tech">
<h1 style="margin-bottom: -7px; margin-top: 5px; font-size: 30px;">Time Legacy</h1>
<h1 style="margin-bottom: -7px; margin-top: 5px; font-size: 30px;">Time Legacy (IP 1)</h1>
<p style="font-size: 17px;">Skyblock</p>
<a class="status">Status: <span class="online">Online</span></a>
<br><br>
Expand All @@ -224,6 +224,18 @@ <h1 style="margin-bottom: -7px; margin-top: 5px; font-size: 30px;">Time Legacy</
</span>&nbsp;Copy IP</a>
</button>

<div class="button-container">
<div class="container">
<button class="button" style="height: 275px; margin-left: 10px; margin-right: 10px;" data-server="ep.rufan.tech">
<h1 style="margin-bottom: -7px; margin-top: 5px; font-size: 30px;">Time Legacy (IP 2)</h1>
<p style="font-size: 17px;">Skyblock</p>
<a class="status">Status: <span class="online">Online</span></a>
<br><br>
<a class="copyLink" data-link="wss://mc.time-legacy.net"><span class="material-icons-round" style="vertical-align: -3px; scale: 110%;">
content_copy
</span>&nbsp;Copy IP</a>
</button>

<button class="button" style="height: 275px; margin-left: 10px; margin-right: 10px;" data-server="x.mess.eu.org/">
<h1 style="margin-bottom: -7px; margin-top: 5px; font-size: 30px;">Messcraft</h1>
<p style="font-size: 17px;">Survival</p>
Expand All @@ -233,7 +245,7 @@ <h1 style="margin-bottom: -7px; margin-top: 5px; font-size: 30px;">Messcraft</h1
content_copy
</span>&nbsp;Copy IP</a>
</button>

</div>
<button class="button" style="height: 275px; margin-left: 10px; margin-right: 10px;" data-server="mcus1.dxomg.link">
<h1 style="margin-bottom: -7px; margin-top: 5px; font-size: 30px;">Dxomg Proxy</h1>
<p style="font-size: 17px;">Proxy for cracked Java servers</p>
Expand All @@ -254,9 +266,7 @@ <h1 style="margin-bottom: -7px; margin-top: 5px; font-size: 30px;">Gmod9 Anarchy
</span>&nbsp;Copy IP</a>
</button>
</div>
</div>

<div class="button-container">
<div class="container">
<button class="button" style="height: 275px; margin-left: 10px; margin-right: 10px;" data-server="mc.zyth.me">
<h1 style="margin-bottom: -7px; margin-top: 5px; font-size: 30px;">Zyth MC</h1>
Expand All @@ -267,7 +277,9 @@ <h1 style="margin-bottom: -7px; margin-top: 5px; font-size: 30px;">Zyth MC</h1>
content_copy
</span>&nbsp;Copy IP</a>
</button>
</div>

<div class="container">
<button class="button" style="height: 275px; margin-left: 10px; margin-right: 10px;" data-server="proxy.theludos.com/">
<h1 style="margin-bottom: -7px; margin-top: 5px; font-size: 30px;">Ludos Proxy</h1>
<p style="font-size: 17px;">Proxy for cracked Java servers</p>
Expand All @@ -278,39 +290,33 @@ <h1 style="margin-bottom: -7px; margin-top: 5px; font-size: 30px;">Ludos Proxy</
</span>&nbsp;Copy IP</a>
</button>
</div>
</div>

<script>
// Function to copy text to clipboard
function copyToClipboard(text) {
const tempInput = document.createElement('input');
tempInput.value = text;
document.body.appendChild(tempInput);
tempInput.select();
tempInput.setSelectionRange(0, 99999); // For mobile devices
tempInput.setSelectionRange(0, 99999);
document.execCommand('copy');
document.body.removeChild(tempInput);
alert('IP Copied!');
}

// Add event listeners to all links with class "copyLink"

document.querySelectorAll('.copyLink').forEach(link => {
link.addEventListener('click', function(event) {
event.preventDefault(); // Prevent the default action of the <a> element
event.preventDefault();
const link = this.getAttribute('data-link');
copyToClipboard(link);
});
});
</script>

<script>
// Function to update server status
function updateServerStatus(serverAddress, statusElement) {
// Make a request to the mcstatus.io API
fetch(`https://api.mcstatus.io/v2/status/java/${serverAddress}`)
.then(response => response.json())
.then(data => {
// Check if the server is online
if (data.online) {
statusElement.innerHTML = `Status: <span class="online">Online</span>`;
} else {
Expand All @@ -322,22 +328,18 @@ <h1 style="margin-bottom: -7px; margin-top: 5px; font-size: 30px;">Ludos Proxy</
statusElement.innerHTML = `Status: <span class="unknown">Unknown</span>`;
});
}

// Get all buttons with class 'button'

const buttons = document.querySelectorAll('.button');

// Loop through each button and attach event listener

buttons.forEach(button => {
const serverAddress = button.dataset.server;
const statusElement = button.querySelector('.status');
// Update status on button click
button.addEventListener('click', () => {
updateServerStatus(serverAddress, statusElement);
});
// Initial status check
updateServerStatus(serverAddress, statusElement);
});
</script>

</body>
</html>
</html>

0 comments on commit 77fe085

Please sign in to comment.