mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-07 07:22:31 +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()">
|
||||
|
||||
<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">
|
||||
|
||||
|
@ -85,15 +88,36 @@
|
|||
<script>
|
||||
|
||||
function myDomainAddressInputGoTo() {
|
||||
var hifiUrl = document.getElementById("domainAddressInput").value;
|
||||
if (hifiUrl != "") {
|
||||
var vircadiaUrl = document.getElementById("domainAddressInput").value;
|
||||
if (vircadiaUrl != "") {
|
||||
var readyEvent = {
|
||||
"action": "goToUrl",
|
||||
"visit": hifiUrl,
|
||||
"visit": vircadiaUrl,
|
||||
};
|
||||
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) {
|
||||
var readyEvent = {
|
||||
|
|
|
@ -82,12 +82,25 @@
|
|||
|
||||
} else if (messageData.action == "goToUrl") {
|
||||
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") {
|
||||
|
||||
var locationBoxUserData = {
|
||||
owner: messageData.owner,
|
||||
domainName: messageData.domainName,
|
||||
port: messageData.Port,
|
||||
ipAddress: null,
|
||||
avatarCountRadius: null,
|
||||
customPath: null,
|
||||
grabbableKey: {
|
||||
grabbable: false
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue