X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=index.html.in;h=b1d73c312dcc2d364ee38659afab5e8850382541;hb=bdfc1265da676cf3b856e0d48776a08c27ee3129;hp=866ac109574bc1821c731ac1b17f4aa059438003;hpb=27aa29e50a67820fa181278288001c936b27d080;p=charm-bypass.git 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");