mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 04:23:33 +02:00
Update Explore app to latest.
This commit is contained in:
parent
6e7b3a387d
commit
05837d178a
2 changed files with 40 additions and 3 deletions
|
@ -73,6 +73,9 @@
|
||||||
<body onload="retrieveAddressList()">
|
<body onload="retrieveAddressList()">
|
||||||
|
|
||||||
<h3>Explore</h3>
|
<h3>Explore</h3>
|
||||||
|
<button class="myButton" onclick="navigateBack()">< Back</button>
|
||||||
|
<button class="myButton" onclick="navigateHome()">Home</button>
|
||||||
|
<button class="myButton" onclick="navigateForward()">Forward ></button>
|
||||||
|
|
||||||
<input type="text" id="domainAddressInput" placeholder="Type domain address here">
|
<input type="text" id="domainAddressInput" placeholder="Type domain address here">
|
||||||
|
|
||||||
|
@ -85,15 +88,36 @@
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
function myDomainAddressInputGoTo() {
|
function myDomainAddressInputGoTo() {
|
||||||
var hifiUrl = document.getElementById("domainAddressInput").value;
|
var vircadiaUrl = document.getElementById("domainAddressInput").value;
|
||||||
if (hifiUrl != "") {
|
if (vircadiaUrl != "") {
|
||||||
var readyEvent = {
|
var readyEvent = {
|
||||||
"action": "goToUrl",
|
"action": "goToUrl",
|
||||||
"visit": hifiUrl,
|
"visit": vircadiaUrl,
|
||||||
};
|
};
|
||||||
EventBridge.emitWebEvent(JSON.stringify(readyEvent));
|
EventBridge.emitWebEvent(JSON.stringify(readyEvent));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function navigateBack() {
|
||||||
|
var readyEvent = {
|
||||||
|
"action": "navigateBack"
|
||||||
|
}
|
||||||
|
EventBridge.emitWebEvent(JSON.stringify(readyEvent));
|
||||||
|
}
|
||||||
|
|
||||||
|
function navigateHome() {
|
||||||
|
var readyEvent = {
|
||||||
|
"action": "navigateHome"
|
||||||
|
}
|
||||||
|
EventBridge.emitWebEvent(JSON.stringify(readyEvent));
|
||||||
|
}
|
||||||
|
|
||||||
|
function navigateForward() {
|
||||||
|
var readyEvent = {
|
||||||
|
"action": "navigateForward"
|
||||||
|
}
|
||||||
|
EventBridge.emitWebEvent(JSON.stringify(readyEvent));
|
||||||
|
}
|
||||||
|
|
||||||
function navigateTo(url) {
|
function navigateTo(url) {
|
||||||
var readyEvent = {
|
var readyEvent = {
|
||||||
|
|
|
@ -82,12 +82,25 @@
|
||||||
|
|
||||||
} else if (messageData.action == "goToUrl") {
|
} else if (messageData.action == "goToUrl") {
|
||||||
Window.location = messageData.visit;
|
Window.location = messageData.visit;
|
||||||
|
} else if (messageData.action == "navigateBack") {
|
||||||
|
location.goBack();
|
||||||
|
} else if (messageData.action == "navigateHome") {
|
||||||
|
if (LocationBookmarks.getHomeLocationAddress()) {
|
||||||
|
location.handleLookupString(LocationBookmarks.getHomeLocationAddress());
|
||||||
|
} else {
|
||||||
|
location.goToLocalSandbox();
|
||||||
|
}
|
||||||
|
} else if (messageData.action == "navigateForward") {
|
||||||
|
location.goForward();
|
||||||
} else if (messageData.action == "addLocation") {
|
} else if (messageData.action == "addLocation") {
|
||||||
|
|
||||||
var locationBoxUserData = {
|
var locationBoxUserData = {
|
||||||
owner: messageData.owner,
|
owner: messageData.owner,
|
||||||
domainName: messageData.domainName,
|
domainName: messageData.domainName,
|
||||||
port: messageData.Port,
|
port: messageData.Port,
|
||||||
|
ipAddress: null,
|
||||||
|
avatarCountRadius: null,
|
||||||
|
customPath: null,
|
||||||
grabbableKey: {
|
grabbableKey: {
|
||||||
grabbable: false
|
grabbable: false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue