mobile is supported by eaglercraft now
This commit is contained in:
parent
815eee3bab
commit
bcf07e7228
@ -44,10 +44,6 @@
|
|||||||
<button>1.8</button>
|
<button>1.8</button>
|
||||||
<button>1.5</button>
|
<button>1.5</button>
|
||||||
</div>
|
</div>
|
||||||
<div id="mobileSelector">
|
|
||||||
<button>Mobile</button>
|
|
||||||
<button>Desktop</button>
|
|
||||||
</div>
|
|
||||||
<!-- add iframes for all the eaglercraft versions-->
|
<!-- add iframes for all the eaglercraft versions-->
|
||||||
|
|
||||||
<h3>DANGER ZONE</h3>
|
<h3>DANGER ZONE</h3>
|
||||||
@ -63,8 +59,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<script src="js/mobilecheck.js"></script>
|
|
||||||
<script src="js/searchbar.js"></script>
|
<script src="js/searchbar.js"></script>
|
||||||
|
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
|
@ -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();
|
|
||||||
});
|
|
Loading…
x
Reference in New Issue
Block a user