]> gitweb.michael.orlitzky.com - charm-bypass.git/commitdiff
index.html.in: use a better variable name for the ticketbottombg
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 10 Sep 2025 02:40:33 +0000 (22:40 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Wed, 10 Sep 2025 02:40:33 +0000 (22:40 -0400)
We were using "tbg", but "tbbg" is better.

index.html.in

index 4964b04a64eb6428355b27cf476693f88626df4b..719158d12f3c5b09b6def944eade8d1d775ca00e 100644 (file)
       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)");
         }