From: Michael Orlitzky Date: Thu, 26 Oct 2023 00:51:46 +0000 (-0400) Subject: index.html.in: remove references to tspans within text elements X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=bdfc1265da676cf3b856e0d48776a08c27ee3129;p=charm-bypass.git index.html.in: remove references to tspans within text elements The new XSL processing step removes them. --- 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");