mobile is supported by eaglercraft now

This commit is contained in:
PrestonT500 2024-11-22 10:22:46 -08:00
parent 815eee3bab
commit bcf07e7228
2 changed files with 1 additions and 37 deletions

View File

@ -44,10 +44,6 @@
<button>1.8</button>
<button>1.5</button>
</div>
<div id="mobileSelector">
<button>Mobile</button>
<button>Desktop</button>
</div>
<!-- add iframes for all the eaglercraft versions-->
<h3>DANGER ZONE</h3>
@ -63,8 +59,6 @@
</div>
</div>
<script src="js/mobilecheck.js"></script>
<script src="js/searchbar.js"></script>
<div class="footer">

View File

@ -1,30 +0,0 @@
$(document).ready(function() {
function updateVisibility() {
var isChecked = $("#mobileCheckbox").is(":checked");
if (isChecked) {
$("#desktopVersion18").hide();
$("#mobileVersion18").show();
$("#desktopVersion152").hide();
$("#mobileVersion152").show();
} else {
$("#desktopVersion18").show();
$("#mobileVersion18").hide();
$("#desktopVersion152").show();
$("#mobileVersion152").hide();
}
}
function updateLinks() {
$(".version-link").each(function() {
var url = $(this).data("url");
$(this).attr("href", url);
});
}
$("#mobileCheckbox").on("change", function() {
updateVisibility();
updateLinks();
});
updateVisibility();
});