Mercurial > prosody-modules
comparison mod_invites_page/html/invite.html @ 4130:f4a79b081c66
mod_invites_page: Some HTML fixes to please the W3C validator
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 15 Sep 2020 14:35:00 +0100 |
parents | 24404c289014 |
children | 330b1948bdc0 |
comparison
equal
deleted
inserted
replaced
4129:ca099bd28bf5 | 4130:f4a79b081c66 |
---|---|
13 <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"> | 13 <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"> |
14 <meta name="msapplication-TileColor" content="#fbd308"> | 14 <meta name="msapplication-TileColor" content="#fbd308"> |
15 <meta name="theme-color" content="#fbd308"> | 15 <meta name="theme-color" content="#fbd308"> |
16 </head> | 16 </head> |
17 <body> | 17 <body> |
18 <div id="background" class="fixed-top overflow-hidden" aria-role="none presentation"></div> | 18 <div id="background" class="fixed-top overflow-hidden"></div> |
19 <div id="form" class="container col-md-10 col-md-offset-1 col-sm-8 col-sm-offset-2 col-lg-10 col-lg-offset-1 mt-2 mt-md-5"> | 19 <div id="form" class="container col-md-10 col-md-offset-1 col-sm-8 col-sm-offset-2 col-lg-10 col-lg-offset-1 mt-2 mt-md-5"> |
20 <div class="card rounded-lg shadow"> | 20 <div class="card rounded-lg shadow"> |
21 <h1 class="card-header rounded-lg rounded-lg"> | 21 <h1 class="card-header rounded-lg rounded-lg"> |
22 Invite to {site_name}<br/> | 22 Invite to {site_name}<br/> |
23 </h1> | 23 </h1> |
26 <strong>Tip:</strong> You can open this invite | 26 <strong>Tip:</strong> You can open this invite |
27 on your mobile device by scanning a barcode with | 27 on your mobile device by scanning a barcode with |
28 your camera. | 28 your camera. |
29 <button id="qr-modal-show" class="mt-2 d-block btn btn-info" title="Send this invite to your device" | 29 <button id="qr-modal-show" class="mt-2 d-block btn btn-info" title="Send this invite to your device" |
30 data-toggle="modal" data-target="#qr-modal"> | 30 data-toggle="modal" data-target="#qr-modal"> |
31 <img src="{static}/qr-logo.png" class="align-middle h-50 mt-1" style="display:inline" > | 31 <img src="{static}/qr-logo.png" alt="QR code icon" class="align-middle h-50 mt-1" style="display:inline" > |
32 Scan with mobile device | 32 Scan with mobile device |
33 </button> | 33 </button> |
34 </div> | 34 </div> |
35 | 35 |
36 {inviter?<p>You have been invited to chat on {site_name} using XMPP, | 36 {inviter?<p>You have been invited to chat on {site_name} using XMPP, |
113 | 113 |
114 <script src="/share/jquery/jquery.min.js"></script> | 114 <script src="/share/jquery/jquery.min.js"></script> |
115 <script src="/share/bootstrap4/js/bootstrap.min.js"></script> | 115 <script src="/share/bootstrap4/js/bootstrap.min.js"></script> |
116 <script src="{static}/qrcode.min.js"></script> | 116 <script src="{static}/qrcode.min.js"></script> |
117 <script src="{static}/platform.min.js"></script> | 117 <script src="{static}/platform.min.js"></script> |
118 <script type="text/javascript"> | 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 $('#qr-modal').one('show.bs.modal', function (e) { |
123 new QRCode(document.getElementById("qr-invite-page"), document.location.href); | 123 new QRCode(document.getElementById("qr-invite-page"), document.location.href); |