43 lines
1.5 KiB
HTML
43 lines
1.5 KiB
HTML
<!--
|
|
cleanupp_app/app.html
|
|
Created by Liv Erickson on 11/6/17.
|
|
Copyright 2017 High Fidelity, Inc.
|
|
|
|
Distributed under the Apache License, Version 2.0.
|
|
See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
-->
|
|
<html>
|
|
<head>
|
|
<title> Cleanup </title>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
|
|
</head>
|
|
<body>
|
|
<div class="top-bar">
|
|
<h2>Make Item Wearable</h2>
|
|
<p> Select the item you want to populate the entityID field. Click 'Remove' to try and remove.
|
|
</p>
|
|
</div>
|
|
<div class="content">
|
|
<input class="id" type="text" placeholder="EntityID to remove">
|
|
<input type="submit" class="submit-button" value="Remove">
|
|
</div>
|
|
<script>
|
|
function main(){
|
|
$(".submit-button").click(function() {
|
|
var clickEvent = {
|
|
type: "submit",
|
|
entityID: $(".id").val(),
|
|
};
|
|
EventBridge.emitWebEvent(JSON.stringify(clickEvent));
|
|
});
|
|
EventBridge.scriptEventReceived.connect(function(scriptEvent){
|
|
$(".id").val(scriptEvent);
|
|
});
|
|
}
|
|
$(document).ready(main);
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|