forked from flighter18/photobooth-statistic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.js
37 lines (34 loc) · 1.33 KB
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
const body = qrCodeModal.find('.modal__body');
if (config.nextcloudqrcode.enabled) {
$(this).appendTo(body);
$('<p>')
.css('max-width', this.width + 'px')
.html(config.qrcodetext.text)
.appendTo(body);
} else {
$(this).appendTo(body);
$('<p>')
.css('max-width', this.width + 'px')
.html(api.getTranslation('qrHelp') + '</br><b>' + config.webserver.ssid + '</b>')
.appendTo(body);
}
});
=====================================================
img = img.split('\\').pop().split('/').pop();
if (config.nextcloudqrcode.enabled) {
$('<img>')
.attr('src', 'api/qrcode.php?filename=' + img)
.appendTo(pswpQR);
$('<p>')
.css('max-width', this.width + 'px')
.html(config.qrcodetext.text)
.appendTo(pswpQR);
} else {
$('<img>')
.attr('src', 'api/qrcode.php?filename=' + img)
.appendTo(pswpQR);
$('<p>')
.css('max-width', this.width + 'px')
.html(photoBooth.getTranslation('qrHelp') + '<b>' + config.webserver.ssid + '</b>')
.appendTo(pswpQR);
}