/****************************************/
function set_code() {
- /* All <text> elements produced by inkscape contain a single <tspan>
- * 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 */
* corner cases (well, for a few more decades). */
date.setTime(date.getTime() + (90*60*1000));
- /* All <text> elements produced by inkscape contain a single <tspan>
- * that itself contains the actual text. */
- tt = document.getElementById("tickettime").firstChild;
+ tt = document.getElementById("tickettime");
tt.textContent = date.toLocaleTimeString();
const td = document.getElementById("ticketdate");