forked from ValdoTR/medium-networking
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathscript.js
More file actions
2 lines (2 loc) · 966 Bytes
/
script.js
File metadata and controls
2 lines (2 loc) · 966 Bytes
1
2
(()=>{"use strict";let e,o;console.log("Script started successfully");const a=[{zone:"needHelp",message:"Do you need some guidance? We are happy to help you out.",cta:[{label:"Meet us",className:"primary",callback:()=>WA.openTab("https://play.staging.workadventu.re/@/tcm/workadventure/wa-village")}]},{zone:"followUs",message:"Hey! Have you already started following us?",cta:[{label:"LinkedIn",className:"primary",callback:()=>WA.openTab("https://www.linkedin.com/company/workadventu-re")},{label:"Twitter",className:"primary",callback:()=>WA.openTab("https://twitter.com/workadventure_")}]}];function n(e,n){const l=a.find((o=>o.zone==e));void 0!==l&&(o=WA.openPopup(n,l.message,l.cta))}function l(){void 0!==typeof o&&(o.close(),o=void 0)}WA.onEnterZone("needHelp",(()=>{e="needHelp",n(e,e+"Popup")})),WA.onEnterZone("followUs",(()=>{e="followUs",n(e,e+"Popup")})),WA.onLeaveZone("needHelp",l),WA.onLeaveZone("followUs",l)})();
//# sourceMappingURL=script.js.map