1st working discussed prototype

This commit is contained in:
zino
2021-05-06 13:39:24 +02:00
parent 62b7b22f4c
commit 51157645d6
3 changed files with 33 additions and 5 deletions

View File

@@ -24,6 +24,7 @@ export let state: I.State = {
isValidSeatSelection: false
}
function messagesHandler(inE: any) {
if (typeof (inE.data) !== 'string')
return;
@@ -403,6 +404,19 @@ function initModalCart() {
}
}
window.onresize = function() {
const innerHeight = window.innerHeight;
if (innerHeight < 576) {
console.log("small");
jQuery("#containerEventInfoRow").hide();
panzoom?.reset();
}
else if (innerHeight >= 576) {
jQuery("#containerEventInfoRow").show();
panzoom?.reset();
}
}
window.addEventListener('load', function () {
Utils.inject(config.urlJSCStaging, "js", "head");
Utils.inject(config.urlCSSJSCStaging, "css", "body");
@@ -414,6 +428,17 @@ window.addEventListener('load', function () {
Utils.waitForElement("#modalCart-overlay", initModalCart);
// Utils.waitForElement("#modalCart-overlay", () => jQuery("#modalCart-overlay").hide());
const btnCloseModal = jQuery("#btnCloseModal").get(0);
if (btnCloseModal) {
btnCloseModal.addEventListener("click", function () {
Communication.sendEventToParent("child_closeDialog");
});
}
const btnCart = jQuery("#modalCart .uabb-button").get(0);
if (btnCart) {