mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
end of day commit
This commit is contained in:
parent
75b1eba84e
commit
5ad1cc6f4d
2 changed files with 21 additions and 1 deletions
|
@ -12,5 +12,25 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1> Hello Users </h1>
|
<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>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -11,7 +11,7 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
(function() { // BEGIN LOCAL_SCOPE
|
(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 tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system");
|
||||||
var button = tablet.addButton({
|
var button = tablet.addButton({
|
||||||
// TODO: work with Alan to make new icon art
|
// TODO: work with Alan to make new icon art
|
||||||
|
|
Loading…
Reference in a new issue