Modif popup positions and add arrow

This commit is contained in:
DESKTOP-FMM8UI0\CLV 2021-04-08 09:41:53 +02:00
parent 39074511a4
commit af69510bc8
35 changed files with 82 additions and 29 deletions

View file

@ -5,6 +5,7 @@ var zoneTCMName = "popupTCMZone";
var urlPricing = "https://workadventu.re/pricing";
var urlSchoolOffer = "https://workadventu.re/school-offer";
var urlEvent = "https://workadventu.re/events";
var currentPopup = undefined;
WA.onEnterZone(zoneOfficeName, () => {
@ -21,10 +22,10 @@ WA.onEnterZone(zoneOfficeName, () => {
WA.onEnterZone(zoneEventName, () => {
currentPopup = WA.openPopup("popUpEvent","You can create your own Event in WorkAdventure",[
{
label: "See the pricing",
label: "See the event page",
className: "popUpElement",
callback: (popup => {
WA.openTab(urlPricing);
WA.openTab(urlEvent);
})
}]);
})