Compare commits
37 Commits
a180d3bb82
...
f959ad27f5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f959ad27f5 | ||
|
|
468f0a46b0 | ||
|
|
27aa67889f | ||
|
|
8153040f0e | ||
|
|
e707d378cc | ||
|
|
55498c9ee6 | ||
|
|
d1f2afaccf | ||
|
|
6bb67a1f4f | ||
|
|
d432d8c0a9 | ||
|
|
2558178994 | ||
|
|
a0a41ca3eb | ||
|
|
5813b84fc5 | ||
|
|
ad7d867600 | ||
|
|
48f9cfa321 | ||
|
|
25d2c51328 | ||
|
|
8f1b7bb786 | ||
|
|
3b45932549 | ||
|
|
493cd6852f | ||
|
|
6915b831cf | ||
|
|
d4af93a44a | ||
|
|
5aaaa50dbe | ||
|
|
c0db2e3251 | ||
|
|
9499f2d5d7 | ||
|
|
456ac53443 | ||
|
|
6339c51235 | ||
|
|
9896fa1488 | ||
|
|
2ed30c5630 | ||
|
|
d80ac6a19f | ||
|
|
35f914f938 | ||
|
|
e73ecc8747 | ||
|
|
99752b9e32 | ||
|
|
22e5afeb3f | ||
|
|
91826bd305 | ||
|
|
500d23b117 | ||
|
|
e45825a9dc | ||
|
|
4f2ded59cb | ||
|
|
27c4e2043f |
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
#package.json merge=ours
|
||||||
1
client/dist/inject.css
vendored
Normal file
1
client/dist/inject.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
#containerBookingBtn{display:none;margin:0;text-align:center}#get_flash{display:none}.ui-dialog-title{text-align:center;display:none}.ui-widget-overlay{background:#fff;opacity:1;width:100vw;height:100vh}#openSeatmap img{width:64px}#openSeatmap{padding:1rem!important;cursor:pointer;border-radius:5px}#openSeatmap span{font-size:1.2rem}#foobarParent{display:none}div#dialogSeatmap{padding-top:0}.ui-widget-header{background:#fff;border:1px solid #c6c6c6;border-bottom-right-radius:0;border-bottom-left-radius:0}.ui-dialog{background:#fff;left:0!important;padding:0;top:0!important;right:0!important}.ui-dialog .ui-dialog-content{padding:0}.ui-dialog-titlebar{margin-left:0;margin-right:0;padding:0!important;display:none}#iframeSeatmap{height:100vh;background:#fff;width:100%}.ui-corner-all{border-radius:0}.ui-widget{border:none!important}
|
||||||
1635
client/dist/inject.js
vendored
Normal file
1635
client/dist/inject.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
client/dist/seatmap.css
vendored
Normal file
1
client/dist/seatmap.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1635
client/dist/seatmap.js
vendored
Normal file
1635
client/dist/seatmap.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -15,18 +15,21 @@ window.addEventListener('load', () => {
|
|||||||
// Parse (hidden) inputs and their values
|
// Parse (hidden) inputs and their values
|
||||||
const content: string = new XMLSerializer().serializeToString(document);
|
const content: string = new XMLSerializer().serializeToString(document);
|
||||||
inputsWithValue = { ...inputsWithValue, ...Parser.getInputs(content) };
|
inputsWithValue = { ...inputsWithValue, ...Parser.getInputs(content) };
|
||||||
|
if (jQuery("#get_flash").length) jQuery("#get_flash").hide();
|
||||||
|
|
||||||
Utils.consoleLog(inputsWithValue);
|
Utils.consoleLog(inputsWithValue);
|
||||||
Utils.consoleLog(`trxstate: ${inputsWithValue["trxstate"]}`);
|
Utils.consoleLog(`trxstate: ${inputsWithValue["trxstate"]}`);
|
||||||
|
|
||||||
// "posturl" in function showMap() only available if "pvmapse" PVO code is true.
|
// "posturl" in function showMap() only available if "pvmapse" is true, false disables seatmap
|
||||||
// "pvmapse" false disables seatmap
|
|
||||||
const posturlAvail: boolean = /posturl:"(.+?)"/.test(content);
|
const posturlAvail: boolean = /posturl:"(.+?)"/.test(content);
|
||||||
|
const couponCodeBoxAvail: boolean = !!jQuery("#coupon_code_box").length;
|
||||||
|
const couponSuccessfull: boolean = !!jQuery("#coupon_successful").length;
|
||||||
|
|
||||||
|
Utils.consoleLog(`couponCodeBoxAvail: ${couponCodeBoxAvail}`);
|
||||||
Utils.consoleLog(`posturl available: ${posturlAvail}`);
|
Utils.consoleLog(`posturl available: ${posturlAvail}`);
|
||||||
|
|
||||||
// Only inject on page with trxstate 20 and if seatmap is enabled with PVO code "pvmapse"
|
// Only inject on page with trxstate 20 and if seatmap is enabled with PVO code "pvmapse"
|
||||||
if (inputsWithValue["trxstate"] !== "20" || posturlAvail === false)
|
if (inputsWithValue["trxstate"] !== "20" || posturlAvail === false || couponCodeBoxAvail === true || couponSuccessfull === true)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Inject parent CSS
|
// Inject parent CSS
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import * as I from "../types/types";
|
|||||||
export const config: I.Config = {
|
export const config: I.Config = {
|
||||||
childHasVenueXML: false,
|
childHasVenueXML: false,
|
||||||
debug: true,
|
debug: true,
|
||||||
branch: "staging",
|
branch: "master",
|
||||||
version: "0.2.0",
|
version: "0.2.0",
|
||||||
maxSelectedSeats: 10,
|
maxSelectedSeats: 10,
|
||||||
resources: {
|
resources: {
|
||||||
|
|||||||
@@ -18,8 +18,6 @@ export function convertLegendToDropdown(inID: string): void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function generateLegend(inNode: string): I.JSCLegend {
|
export function generateLegend(inNode: string): I.JSCLegend {
|
||||||
|
|
||||||
|
|
||||||
return <I.JSCLegend>{
|
return <I.JSCLegend>{
|
||||||
node: jQuery(inNode),
|
node: jQuery(inNode),
|
||||||
items: createLegendItems()
|
items: createLegendItems()
|
||||||
|
|||||||
Reference in New Issue
Block a user