From: Michael Orlitzky Date: Wed, 10 Sep 2025 02:40:33 +0000 (-0400) Subject: index.html.in: use a better variable name for the ticketbottombg X-Git-Url: http://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=de784cb26de7eb5f1a6711d9e00c28c5bb2a175b;p=charm-bypass.git index.html.in: use a better variable name for the ticketbottombg We were using "tbg", but "tbbg" is better. --- 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)"); }