content/hifi-public/tony/html/elbowikdbg.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

65 lines
2.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 controlHandlerMaker(name) {
return function (event, ui) {
var val = $('#' + name).val();
var checked = $('#' + name).is(":checked");
EventBridge.emitWebEvent({name: name, val: val, checked: checked});
};
}
var controls = [
'use-new-model',
'solution-source',
'use-pole-vector',
'use-hmd-recenter'
];
controls.forEach(function (name) {
$('#' + name).bind('change', controlHandlerMaker(name));
});
EventBridge.scriptEventReceived.connect(function (msg) {
console.log('AJT: msg = ' + msg);
var array = JSON.parse(msg);
array.forEach(function (obj) {
var widget = $('#' + obj.name);
if (widget) {
if (widget.attr('type') === "checkbox") {
$('#' + obj.name).prop('checked', obj.checked).checkboxradio('refresh');
} else if (widget.attr('type') === "number") {
$('#' + obj.name).val(obj.val).slider('refresh');
}
}
});
});
EventBridge.emitWebEvent({name: 'init-complete'});
});
</script>
<head>
<meta charset="utf-8" />
<body>
<div style="margin:10px">
<h1>Elbow IK Debug Parameters</h1>
<label for="solution-source">Solution Source: (Rlx2Undr, Rlx2Cntr, Prev, Undr, Cntr)</label>
<input type="range" name="solution-source" id="solution-source" value="0" min="0" max="4">
<fieldset data-role="controlgroup">
<input type="checkbox" name="use-new-model" id="use-new-model">
<label for="use-new-model">Use New Elbow Model</label>
<input type="checkbox" name="use-pole-vector" id="use-pole-vector">
<label for="use-pole-vector">Use Elbow Pole Vector</label>
<input type="checkbox" name="use-hmd-recenter" id="use-hmd-recenter">
<label for="use-hmd-recenter">Use HMD Lean Recenter</label>
</fieldset>
</div>
</body>
</head>
</html>