before config state

This commit is contained in:
zino
2021-05-14 13:48:13 +02:00
parent 126b9be7ea
commit e7242594b4
9 changed files with 299 additions and 251 deletions

View File

@@ -73,4 +73,18 @@ export function getVenueImage(): { venueImageSrc: string, venueImageHeight: numb
}
return undefined;
}
export function getSMAP(): string | undefined {
if (jQuery("#seating_map_url").length === 0)
return undefined;
const str: string = jQuery("#seating_map_url a").attr("onclick");
const re = /openNewWindow\(\'(\d+)\'/;
const found: RegExpMatchArray | null = str.match(re);
if (found)
return found[1];
else
return undefined;
}