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.
80 lines
No EOL
5.4 KiB
HTML
80 lines
No EOL
5.4 KiB
HTML
<!DOCTYPE html>
|
|
<!-- saved from url=(0063)https://s3.amazonaws.com/hifi-public/tony/html/puck-attach.html -->
|
|
<html lang="en" class="ui-mobile"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><!--<base href="https://s3.amazonaws.com/hifi-public/tony/html/puck-attach.html">--><base href="."><link rel="stylesheet" href="./puck-attach_files/jquery.mobile-1.4.5.min.css">
|
|
<script src="./puck-attach_files/jquery-1.11.1.min.js.download"></script>
|
|
<script src="./puck-attach_files/jquery.mobile-1.4.5.min.js.download"></script>
|
|
<script>
|
|
$(document).ready(function () {
|
|
// hook up a handler for events that come from hifi.
|
|
EventBridge.scriptEventReceived.connect(function (msg) {
|
|
console.log("AJT: received msg = " + msg);
|
|
// add available tracked object to selector
|
|
var selector = $("#puckno");
|
|
var availableTrackedObjects = JSON.parse(msg);
|
|
if (Array.isArray(availableTrackedObjects)) {
|
|
for (var i = 0; i < availableTrackedObjects.length; i++) {
|
|
selector.append('<option value="' + availableTrackedObjects[i] + '">TrackedObject' + availableTrackedObjects[i] + '</option>');
|
|
}
|
|
}
|
|
selector.trigger("change");
|
|
});
|
|
|
|
$("#attach").click(function () {
|
|
var obj = {cmd: "attach"};
|
|
var names = ["puckno", "modelurl", "posx", "posy", "posz", "rotx", "roty", "rotz"];
|
|
names.forEach(function (name) {
|
|
obj[name] = $("#" + name).val();
|
|
});
|
|
var msg = JSON.stringify(obj);
|
|
EventBridge.emitWebEvent(msg);
|
|
});
|
|
$("#destroy").click(function () {
|
|
EventBridge.emitWebEvent(JSON.stringify({cmd: "detach"}));
|
|
});
|
|
});
|
|
</script>
|
|
|
|
|
|
<title></title></head><body class="ui-mobile-viewport ui-overlay-a"><div data-role="page" data-url="/hifi-public/tony/html/puck-attach.html" tabindex="0" class="ui-page ui-page-theme-a ui-page-active" style="min-height: 901px;">
|
|
<div style="margin:10px">
|
|
<div class="ui-field-contain">
|
|
<label for="puckno">Tracked Object:</label>
|
|
<div class="ui-select"><a href="https://s3.amazonaws.com/hifi-public/tony/html/puck-attach.html#" role="button" id="puckno-button" aria-haspopup="true" class="ui-btn ui-icon-carat-d ui-btn-icon-right ui-corner-all ui-shadow"><span>NONE</span></a><select name="puckno" id="puckno" data-native-menu="false" tabindex="-1">
|
|
<option value="-1">NONE</option>
|
|
</select><div style="display: none;" id="puckno-listbox-placeholder"><!-- placeholder for puckno-listbox --></div></div>
|
|
</div>
|
|
<div class="ui-field-contain">
|
|
<label for="name">Model URL:</label>
|
|
<div class="ui-input-text ui-body-inherit ui-corner-all ui-shadow-inset"><input type="text" name="name" id="modelurl" value="https://hifi-public.s3.amazonaws.com/anshuman/acc_gtr.fbx"></div>
|
|
</div>
|
|
<div class="ui-field-contain">
|
|
<label for="name">Position X:</label>
|
|
<div class="ui-input-text ui-body-inherit ui-corner-all ui-shadow-inset"><input type="number" name="name" id="posx" value="0.0"></div>
|
|
</div>
|
|
<div class="ui-field-contain">
|
|
<label for="name">Position Y:</label>
|
|
<div class="ui-input-text ui-body-inherit ui-corner-all ui-shadow-inset"><input type="number" name="name" id="posy" value="0.0"></div>
|
|
</div>
|
|
<div class="ui-field-contain">
|
|
<label for="name">Position Z:</label>
|
|
<div class="ui-input-text ui-body-inherit ui-corner-all ui-shadow-inset"><input type="number" name="name" id="posz" value="0.0"></div>
|
|
</div>
|
|
<div class="ui-field-contain">
|
|
<label for="name">Rot X (deg):</label>
|
|
<div class="ui-input-text ui-body-inherit ui-corner-all ui-shadow-inset"><input type="number" name="name" id="rotx" value="0.0"></div>
|
|
</div>
|
|
<div class="ui-field-contain">
|
|
<label for="name">Rot Y (deg):</label>
|
|
<div class="ui-input-text ui-body-inherit ui-corner-all ui-shadow-inset"><input type="number" name="name" id="roty" value="0.0"></div>
|
|
</div>
|
|
<div class="ui-field-contain">
|
|
<label for="name">Rot Z (deg):</label>
|
|
<div class="ui-input-text ui-body-inherit ui-corner-all ui-shadow-inset"><input type="number" name="name" id="rotz" value="0.0"></div>
|
|
</div>
|
|
<button id="attach" class="ui-btn ui-corner-all">Create Attachment</button>
|
|
<button id="destroy" class="ui-btn ui-corner-all">Destroy Attachment</button>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="ui-screen-hidden ui-popup-screen ui-overlay-inherit" id="puckno-listbox-screen"></div><div class="ui-popup-container ui-popup-hidden ui-popup-truncate" id="puckno-listbox-popup"><div id="puckno-listbox" class="ui-selectmenu ui-popup ui-body-inherit ui-overlay-shadow ui-corner-all"><div class="ui-header ui-bar-inherit ui-screen-hidden"><h1 class="ui-title"></h1></div><ul class="ui-selectmenu-list ui-listview" id="puckno-menu" role="listbox" aria-labelledby="puckno-button"><li data-option-index="0" data-icon="false" class="ui-first-child ui-last-child" role="option" aria-selected="true"><a href="https://s3.amazonaws.com/hifi-public/tony/html/puck-attach.html#" tabindex="-1" class="ui-btn ui-btn-active">NONE</a></li></ul></div></div></div><div class="ui-loader ui-corner-all ui-body-a ui-loader-default"><span class="ui-icon-loading"></span><h1>loading</h1></div></body></html> |