end of day commit

This commit is contained in:
Faye Li Si Fi 2017-01-18 18:03:16 -08:00
parent 75b1eba84e
commit 5ad1cc6f4d
2 changed files with 21 additions and 1 deletions

View file

@ -12,5 +12,25 @@
</head>
<body>
<h1> Hello Users </h1>
<button type="button" onclick="pollUsers()">Poll Users</button>
<div id="dev-div"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script>
var METAVERSE_API_URL = "https://metaverse.highfidelity.com/api/v1/users?status=online";
function pollUsers() {
$("#dev-div").html("polling users");
$.ajax({
url: METAVERSE_API_URL,
success: function(response) {
$("#dev-div").html(response);
}
});
}
$(document).ready(function() {
$("#dev-div").html("ready");
});
</script>
</body>
</html>

View file

@ -11,7 +11,7 @@
//
(function() { // BEGIN LOCAL_SCOPE
var USERS_URL = "https://hifi-content.s3.amazonaws.com/faye/tablet-dev/users.html";
var USERS_URL = Script.resolvePath("html/users.html");
var tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system");
var button = tablet.addButton({
// TODO: work with Alan to make new icon art