Added show modded checkbox and starlike client
This commit is contained in:
parent
dcbff50c88
commit
681abf0527
47795
eagler-files/modded/1.8/Starlike_Client_Offline.html
Normal file
47795
eagler-files/modded/1.8/Starlike_Client_Offline.html
Normal file
File diff suppressed because one or more lines are too long
11
index.html
11
index.html
@ -15,6 +15,7 @@
|
||||
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2593894696548093" crossorigin="anonymous"></script>
|
||||
<script src="js/ga4.js"></script> <!-- if you put the ga4 script in ANY other file, put a "/" before "js" -->
|
||||
<script src="js/darkmode.js"></script>
|
||||
<script src="js/showmodded.js"></script>
|
||||
</head>
|
||||
<body style="background-color: rgb(241, 241, 241); color: black;">
|
||||
<h1 style="color: black;">Welcome to EaglerCraftX</h1>
|
||||
@ -33,6 +34,8 @@
|
||||
<a href="https://discord.gg/czV7M8JXXM" class="dsc-btn" target="_blank">Discord Server</a>
|
||||
<p style="color: black;">Scroll down to the bottom for buttons/links.</p>
|
||||
<h2 class="pick-client" style="color: black;">Pick a Client:</h2>
|
||||
<label for="showModded">Show Modded Clients</label>
|
||||
<input type="checkbox" id="showModded">
|
||||
<div class="search-container">
|
||||
<input type="text" id="search-bar" placeholder="Search Clients...">
|
||||
</div>
|
||||
@ -66,6 +69,14 @@
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div id="moddedButtons">
|
||||
<p class="version-text" style="color: black;">Version 1.8 Modded Clients</p>
|
||||
<div class="Container18">
|
||||
<a class="modded-buttons filter-button" href="./eagler-files/modded/1.8/Starlike_Client_Offline.html">
|
||||
<button style="background-color: rgb(76, 175, 80);">Starlike Client</button>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Version 1.5.2 Section -->
|
||||
<div id="desktopVersion152">
|
||||
<p class="version-text" style="color: black;">Version 1.5.2</p>
|
||||
|
21
js/showmodded.js
Normal file
21
js/showmodded.js
Normal file
@ -0,0 +1,21 @@
|
||||
$(document).ready(function() {
|
||||
function updateShowModded() {
|
||||
var isChecked = $("#showModded").is(":checked");
|
||||
if (isChecked) {
|
||||
$("#moddedButtons").show();
|
||||
} else {
|
||||
$("#moddedButtons").hide();
|
||||
}
|
||||
}
|
||||
function updateButtons() {
|
||||
$(".modded-buttons").each(function() {
|
||||
var url = $(this).data("url");
|
||||
$(this).attr("href", url);
|
||||
});
|
||||
}
|
||||
$("#showModded").on("change", function() {
|
||||
updateShowModded();
|
||||
updateButtons();
|
||||
});
|
||||
updateShowModded();
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user