Tapping the ticket (anything but the QR code) in CharmPass does
nothing; i.e. it does not change the background from day to night.
We mimic that with a dummy click handler on the ticket.
/* Focus (grow) or unfocus (ungrow) the QR code */
document.getElementById("qr").addEventListener("click",
toggle_qr_focus);
+
+ /* Dummy handler to prevent taps on the ticket from
+ * swapping day and night. Events bubble "up" by default
+ * so, even though the QR code is part of the ticket,
+ * taps on the QR should still be handled. */
+ document.getElementById("ticket").addEventListener(
+ "click",
+ event => { event.stopPropagation(); }
+ );
}
else {
/* If we haven't submitted the form yet, set up change handlers