From de784cb26de7eb5f1a6711d9e00c28c5bb2a175b Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 9 Sep 2025 22:40:33 -0400 Subject: [PATCH] index.html.in: use a better variable name for the ticketbottombg We were using "tbg", but "tbbg" is better. --- index.html.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html.in b/index.html.in index 4964b04..719158d 100644 --- a/index.html.in +++ b/index.html.in @@ -596,7 +596,7 @@ 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"); @@ -604,7 +604,7 @@ /* 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 @@ -617,7 +617,7 @@ } 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)"); } -- 2.49.0