From bdfc1265da676cf3b856e0d48776a08c27ee3129 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Wed, 25 Oct 2023 20:51:46 -0400 Subject: [PATCH] index.html.in: remove references to tspans within text elements The new XSL processing step removes them. --- index.html.in | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/index.html.in b/index.html.in index 866ac10..b1d73c3 100644 --- a/index.html.in +++ b/index.html.in @@ -261,11 +261,6 @@ /****************************************/ function set_code() { - /* All elements produced by inkscape contain a single - * that itself contains the actual text. This does something real - * sneaky, and actually OVERWRITES that tspan with our own text - * content. This turns out to be what we need anyway because trying - * to center a (display: inline) tspan is a pain in the butt. */ const ct = document.getElementById("codetext"); /* Get the "code" from the querystring if it's there */ @@ -328,9 +323,7 @@ * corner cases (well, for a few more decades). */ date.setTime(date.getTime() + (90*60*1000)); - /* All elements produced by inkscape contain a single - * that itself contains the actual text. */ - tt = document.getElementById("tickettime").firstChild; + tt = document.getElementById("tickettime"); tt.textContent = date.toLocaleTimeString(); const td = document.getElementById("ticketdate"); -- 2.44.2