function resize_ticket() {
/* Get the "servicename" from the querystring if it's there */
const params = new URLSearchParams(document.location.search);
- const tbg = document.getElementById("ticketbottombg");
+ const tbbg = document.getElementById("ticketbottombg");
const t = document.getElementById("ticket");
const sn = document.getElementById("servicename");
/* Scale the bottom part of the ticket (the white background
* only) downwards. There's no real motivation for this scale
* factor except that, visually, it gives the right result. */
- tbg.setAttribute("transform", "scale(1 1.16)");
+ tbbg.setAttribute("transform", "scale(1 1.16)");
/* Now translate the entire ticket up by the magic amount.
* This number was found by measuring pixels in side-by-side
}
else if (params.get("servicename") === "MARC Train") {
/* insane tricks are explained above */
- tbg.setAttribute("transform", "scale(1 1.395)");
+ tbbg.setAttribute("transform", "scale(1 1.395)");
t.setAttribute("transform", "translate(0 -67.17)");
sn.setAttribute("transform", "translate(0 131.0)");
}