diff mod_invites_page/html/client.html @ 5724:b117b63bcdbb

mod_invites_page: Also remove jQuery usage in client page
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 16 Nov 2023 19:18:05 +0100
parents 8cd617c0b701
children
line wrap: on
line diff
--- a/mod_invites_page/html/client.html	Thu Nov 16 19:17:44 2023 +0100
+++ b/mod_invites_page/html/client.html	Thu Nov 16 19:18:05 2023 +0100
@@ -116,15 +116,13 @@
 	<script src="/share/bootstrap4/js/bootstrap.min.js"></script>
 	<script src="{static}/qrcode.min.js"></script>
 	<script>
-		$(function () {
+		(function () {
 			// If QR lib loaded ok, show QR button on desktop devices
 			if(window.QRCode) {
-				$('#qr-modal').one('show.bs.modal', function (e) {
-					new QRCode(document.getElementById("qr-invite-page"), document.location.href);
-				});
-				$('#qr-button-container').addClass("d-md-block");
+				new QRCode(document.getElementById("qr-invite-page"), document.location.href);
+				document.getElementById('qr-button-container').classList.add("d-md-block");
 			}
-		});
+		})();
 	</script>
 </body>
 </html>