1st working discussed prototype
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user