63 lines
2.5 KiB
HTML
63 lines
2.5 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en-US">
|
||
|
<head>
|
||
|
<meta charset="utf-8"/>
|
||
|
<link rel="stylesheet" type="text/css" href="style.css">
|
||
|
<link rel="stylesheet" type="text/css" href="style_button.css">
|
||
|
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
|
||
|
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
|
||
|
<script src="handleBalls.js"></script>
|
||
|
<script>
|
||
|
function checkBoxAutoSort() {
|
||
|
/*if (document.getElementById("myonoffswitch").checked == false){
|
||
|
document.getElementById("autosortButton").disabled = false;
|
||
|
document.getElementById("startSortingButton").disabled = false;
|
||
|
} else {
|
||
|
document.getElementById("autosortButton").disabled = true;
|
||
|
document.getElementById("startSortingButton").disabled = true;
|
||
|
}*/
|
||
|
alert("You have to buy a premium-account to switch Live-Mode off")
|
||
|
//$("#myonoffswitch").prop("checked", true);
|
||
|
//$("#myonoffswitch").attr("checked", true);
|
||
|
document.getElementById("myonoffswitch").checked = true;
|
||
|
}
|
||
|
</script>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="msg" id="playBalls" style="visibility: hidden;">
|
||
|
Please wait<br>while I'm playing<br>with your balls!
|
||
|
</div>
|
||
|
<div class="msg" id="stareBalls" style="visibility: hidden;">
|
||
|
Please wait while I'm having an intense look at your balls!
|
||
|
</div>
|
||
|
<div id="nav">
|
||
|
<form>
|
||
|
<div id="navL">
|
||
|
<button type="button" name="empty" class="button" onclick="emptyShelf(this.value)">Empty Shelf</button> <br>
|
||
|
<button type="button" name="refresh" class="button" onclick="updateBallPos()">Refresh Positions</button> <br>
|
||
|
</div>
|
||
|
<div id="navM">
|
||
|
<span style="margin-left: 8px; font-size: 16px;"> Live-Sort </span>
|
||
|
<div class="onoffswitch">
|
||
|
<input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="myonoffswitch" onclick="checkBoxAutoSort()" checked>
|
||
|
<label class="onoffswitch-label" for="myonoffswitch">
|
||
|
<span class="onoffswitch-inner"></span>
|
||
|
<span class="onoffswitch-switch"></span>
|
||
|
</label>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div id="navR">
|
||
|
<button type="button" name="autosort" class="button" onclick="autoSort()" id="autosortButton" disabled="">Auto Sort</button>
|
||
|
<button type="button" name="start" class="button" onclick="startSorting()" id="startSortingButton" disabled="">Start Sorting</button>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
<div id="unclickableCircle" style="visibility: hidden;"></div>
|
||
|
<div id="ballBox">
|
||
|
<!-- Balls on Plate are created dynamically -->
|
||
|
</div>
|
||
|
<div id="shelfBox" class="ui-widget-content ui-state-default">
|
||
|
<!-- Balls in Shelf are created dynamically -->
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|