Skip to content

Commit

Permalink
MBS-9118: Button added that opens the QR code,code style
Browse files Browse the repository at this point in the history
  • Loading branch information
fdagner committed Jul 13, 2024
1 parent 9d60022 commit 8b8b297
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions templates/qr.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,19 @@
{{#qrurl}}
<a href="{{{qrcodelink}}}">
{{/qrurl}}
<div id="container{{id}}" style="width: {{size}}; max-width: 100%; margin: 0 auto;">
{{^qrcodecontent}}
{{#str}} nocontent, block_qr {{/str}}
{{/qrcodecontent}}
</div>
<div id="container{{id}}" style="width: {{size}}; max-width: 100%; margin: 0 auto;">
{{^qrcodecontent}}
{{#str}} nocontent, block_qr {{/str}}
{{/qrcodecontent}}
</div>
{{#qrurl}}
</a>
{{/qrurl}}
<div class="text-center">
<button class="btn btn-secondary" id="qrcodeModalButton{{id}}">{{#str}}
fullscreen, block_qr
{{/str}}</button>
</div>
<div class="text-center">
<button class="btn btn-secondary" id="qrcodeModalButton{{id}}">{{#str}}
fullscreen, block_qr
{{/str}}</button>
</div>
<hr>
{{^calendar}}
<p class="text-center">{{description}}<br></p>
Expand Down Expand Up @@ -108,15 +108,15 @@
{{/wifissid}}

{{#fullview}}
{{#configshortlink}}
<p class="text-center">
<i class="fa fa-location-arrow"></i>
<a href="{{urlshort}}" target="_blank">
{{#str}}
urlshortlabel, block_qr
{{/str}}
</a>
</p>
{{#configshortlink}}
<p class="text-center">
<i class="fa fa-location-arrow"></i>
<a href="{{urlshort}}" target="_blank">
{{#str}}
urlshortlabel, block_qr
{{/str}}
</a>
</p>
{{/configshortlink}}
{{/fullview}}
<div style="width: 100%;text-align: center">
Expand All @@ -125,14 +125,14 @@
<script src="{{javascript}}"></script>
{{#js}}
if (typeof QRCode !== 'undefined') {
// Configuration for QR Code
let config{{id}} = {
content: "{{{qrcodecontent}}}",
color: "#000000",
background: "#ffffff",
ecl: "M", // Error correction level (L, M, H, Q).
container: "svg-viewbox", // Responsive use.
join: true // Crisp rendering and 4-5x reduced file size.
// Configuration for QR Code
let config{{id}} = {
content: "{{{qrcodecontent}}}",
color: "#000000",
background: "#ffffff",
ecl: "M", // Error correction level (L, M, H, Q).
container: "svg-viewbox", // Responsive use.
join: true // Crisp rendering and 4-5x reduced file size.
};

let qrcode{{id}} = new QRCode(config{{id}});
Expand Down

0 comments on commit 8b8b297

Please sign in to comment.