content/hifi-public/tony/html/handshake.html
Dale Glass 0d14e5a379 Initial data.
Needs a lot of cleanup. Data has been de-duplicated, and where identical copies existed, one of them
has been replaced with a symlink.

Some files have been excluded, such as binaries, installers and debug dumps. Some of that may still
be present.
2022-02-13 18:59:11 +01:00

48 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<script>
$(document).bind('pageinit', function () {
function sliderHandlerMaker(name) {
return function (event, ui) {
EventBridge.emitWebEvent({name: name, value: $('#slider-' + name).val()});
};
}
var sliders = [
'SHAKE_MIX',
];
sliders.forEach(function (name) {
$('#slider-' + name).bind('change', sliderHandlerMaker(name));
});
function buttonHandlerMaker(buttonName) {
return function (msg) {
EventBridge.emitWebEvent({name: buttonName, value: 1});
};
}
var buttons = ["#show-controllers"];
buttons.forEach(function (buttonName) {
$(buttonName).click(buttonHandlerMaker(buttonName));
});
});
</script>
<head>
<meta charset="utf-8" />
<body>
<div style="margin:10px">
<label for="slider-SHAKE_MIX">SHAKE_MIX:</label>
<input type="range" name="slider-SHAKE_MIX" id="slider-SHAKE_MIX" value="0" min="0" max="100">
<button id="show-controllers" class="ui-btn ui-corner-all">Show Controllers</button>
</div>
</body>
</head>
</html>