comparison 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
comparison
equal deleted inserted replaced
5723:5f7f6ee32a11 5724:b117b63bcdbb
114 114
115 <script src="/share/jquery/jquery.min.js"></script> 115 <script src="/share/jquery/jquery.min.js"></script>
116 <script src="/share/bootstrap4/js/bootstrap.min.js"></script> 116 <script src="/share/bootstrap4/js/bootstrap.min.js"></script>
117 <script src="{static}/qrcode.min.js"></script> 117 <script src="{static}/qrcode.min.js"></script>
118 <script> 118 <script>
119 $(function () { 119 (function () {
120 // If QR lib loaded ok, show QR button on desktop devices 120 // If QR lib loaded ok, show QR button on desktop devices
121 if(window.QRCode) { 121 if(window.QRCode) {
122 $('#qr-modal').one('show.bs.modal', function (e) { 122 new QRCode(document.getElementById("qr-invite-page"), document.location.href);
123 new QRCode(document.getElementById("qr-invite-page"), document.location.href); 123 document.getElementById('qr-button-container').classList.add("d-md-block");
124 });
125 $('#qr-button-container').addClass("d-md-block");
126 } 124 }
127 }); 125 })();
128 </script> 126 </script>
129 </body> 127 </body>
130 </html> 128 </html>