appscms-tools-theme 3.3.4 → 3.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/script.html +3 -2
- data/assets/js/theme.js +23 -17
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdfa8dccbcd2af23ed36ea281eca43ac79d1b7778f7fae390224ea6e095b752c
|
4
|
+
data.tar.gz: 9a44bed5768607380e3ed240f13e3133d92229af10e7e073a391b6186da9f8f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f82573be2d5ec5bedc93a3c349a96897b8f9aba23909247ecf31de7f0e86db66e7125a032d85e099f5de12d14b9d832787a8f8108870e4cf85d06c51ee1c27dc
|
7
|
+
data.tar.gz: ad212961209cbcb9e4b49741244bca8f5f8ede570a3603d815c7fc48d569e32957ccabc164522f9f72e96047d4c4aac7b43a8cff32490c4bbbd3322487208a9f
|
data/_includes/script.html
CHANGED
@@ -440,9 +440,10 @@ site.removeJquery != true -%}
|
|
440
440
|
endif
|
441
441
|
-%}
|
442
442
|
></script>
|
443
|
-
{%- endif -%}
|
443
|
+
{%- endif -%}
|
444
|
+
|
444
445
|
<script defer src="/assets/js/theme.js" crossorigin="anonymous"></script>
|
445
|
-
{%-
|
446
|
+
{%- if site.removeBootstrapJs != true -%}
|
446
447
|
<script
|
447
448
|
defer="defer"
|
448
449
|
src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"
|
data/assets/js/theme.js
CHANGED
@@ -1,24 +1,26 @@
|
|
1
1
|
---
|
2
2
|
---
|
3
3
|
|
4
|
-
document.addEventListener("DOMContentLoaded", function () {
|
5
|
-
var safuiAlert = document.querySelector("#safeui-alert");
|
6
|
-
if (safuiAlert) {
|
7
|
-
setTimeout(function () {
|
8
|
-
safuiAlert.style.transition = "1s";
|
9
|
-
safuiAlert.style.height = "0";
|
10
|
-
safuiAlert.style.paddingTop = "0";
|
11
|
-
safuiAlert.style.paddingBottom = "0";
|
12
|
-
safuiAlert.style.marginTop = "0";
|
13
|
-
safuiAlert.style.marginBottom = "0";
|
14
|
-
setTimeout(function () {
|
15
|
-
safuiAlert.parentNode.removeChild(safuiAlert);
|
16
|
-
}, 1000);
|
17
|
-
}, 10000);
|
18
|
-
}
|
19
|
-
});
|
20
4
|
|
21
|
-
|
5
|
+
console.log('');
|
6
|
+
if ("{{ site.safeui }}"==="true") {
|
7
|
+
document.addEventListener("DOMContentLoaded", function () {
|
8
|
+
var safuiAlert = document.querySelector("#safeui-alert");
|
9
|
+
if (safuiAlert) {
|
10
|
+
setTimeout(function () {
|
11
|
+
safuiAlert.style.transition = "1s";
|
12
|
+
safuiAlert.style.height = "0";
|
13
|
+
safuiAlert.style.paddingTop = "0";
|
14
|
+
safuiAlert.style.paddingBottom = "0";
|
15
|
+
safuiAlert.style.marginTop = "0";
|
16
|
+
safuiAlert.style.marginBottom = "0";
|
17
|
+
setTimeout(function () {
|
18
|
+
safuiAlert.parentNode.removeChild(safuiAlert);
|
19
|
+
}, 1000);
|
20
|
+
}, 10000);
|
21
|
+
}
|
22
|
+
});
|
23
|
+
let getLayout = document.getElementById("header");
|
22
24
|
const layout = getLayout.dataset.layout;
|
23
25
|
if (layout == "feature-1") {
|
24
26
|
var removeNav = () => {
|
@@ -53,6 +55,10 @@ if (layout == "feature-1") {
|
|
53
55
|
}
|
54
56
|
};
|
55
57
|
}
|
58
|
+
}
|
59
|
+
|
60
|
+
|
61
|
+
|
56
62
|
if ("{{ site.removeBootstrapJs }}"==="true") {
|
57
63
|
const languagesModal = document.querySelector("#staticBackdrop");
|
58
64
|
const intModalBtn = document.querySelector("#int-modal-btn");
|