added example script for map exit
This commit is contained in:
parent
006195e8cc
commit
8f6c65384a
@ -1,6 +1,8 @@
|
||||
/// <reference path="../../front/src/iframe_api.ts" />
|
||||
var zoneName = "popUpGoToPageZone";
|
||||
var urlPricing = "https://workadventu.re/pricing";
|
||||
var urlGettingStarted = "https://workadventu.re/getting-started";
|
||||
var urlRelativeMap = "script_api.json";
|
||||
var isCoWebSiteOpened = false;
|
||||
|
||||
WA.onChatMessage((message => {
|
||||
@ -24,8 +26,7 @@ WA.onEnterZone(zoneName, () => {
|
||||
popup.close();
|
||||
})
|
||||
|
||||
}
|
||||
,
|
||||
},
|
||||
{
|
||||
label: "openCoWebSite", className: "popUpElement",
|
||||
callback: (popup => {
|
||||
@ -34,6 +35,14 @@ WA.onEnterZone(zoneName, () => {
|
||||
popup.close();
|
||||
})
|
||||
|
||||
}, {
|
||||
label: "load grouped map",
|
||||
className: "popUpElement",
|
||||
callback: (popup => {
|
||||
WA.loadPage(urlRelativeMap);
|
||||
popup.close();
|
||||
})
|
||||
|
||||
}]);
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user