/* Otherwise, leave it at "BaltimoreLink" */
}
+
+ /************************/
+ /* Set the service zone */
+ /************************/
+ function set_service_zone() {
+ const z = document.getElementById("zone");
+
+ /* Get the "zone" from the querystring if it's there */
+ const params = new URLSearchParams(document.location.search);
+ if (params.get("zone")) {
+ z.textContent = params.get("zone");
+ z.style.display = "block"; /* It's hidden by default */
+ }
+
+ /* Otherwise, leave it blank (and hidden) */
+ }
+
/***********************************************************/
/* Resize the ticket background based on the service name */
/***********************************************************/
/* Set the service name when the page has loaded */
window.addEventListener("load", set_service_name);
+ /* Set the service zone when the page has loaded */
+ window.addEventListener("load", set_service_zone);
+
/* Resize the ticket background if necessary */
window.addEventListener("load", resize_ticket);