replaced console.log, installed envify, added appendVersion
This commit is contained in:
@@ -8,6 +8,7 @@ require("jbox/dist/jBox.all.css");
|
||||
import * as Cart from "./modules/cart";
|
||||
import * as BookingBtn from "./modules/bookingButton";
|
||||
import * as Child from './modules/child';
|
||||
import * as UI from "./modules/ui";
|
||||
|
||||
window.addEventListener('load', () => {
|
||||
// Inject JSC (jQuery Seat Charts)
|
||||
@@ -31,6 +32,8 @@ window.addEventListener('load', () => {
|
||||
Events.addModalCart();
|
||||
Events.addDropdownSeatmap();
|
||||
|
||||
// Change version configured in config
|
||||
UI.appendVersion();
|
||||
});
|
||||
|
||||
// Hide header when height of window is smaller than ...
|
||||
@@ -40,7 +43,6 @@ window.onresize = function () {
|
||||
const innerHeight = window.innerHeight;
|
||||
|
||||
if (innerHeight < 576) {
|
||||
console.log("small");
|
||||
jQuery("#containerEventInfoRow").hide();
|
||||
panzoom?.reset();
|
||||
}
|
||||
@@ -56,8 +58,8 @@ function messageHandler(inE: any) {
|
||||
|
||||
const data: I.Message = JSON.parse(inE.data);
|
||||
|
||||
console.log(`child: received from ${data.from}`);
|
||||
console.log(data);
|
||||
Utils.consoleLog(`child: received from ${data.from}`);
|
||||
Utils.consoleLog(data);
|
||||
|
||||
switch (data.event) {
|
||||
case "parent_init_venue": {
|
||||
|
||||
Reference in New Issue
Block a user