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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bfcd550e947b88f227a2188523ec9f9bde47aedf01856d6d8dfd82c5ec487537
4
- data.tar.gz: d46f2e0109b7497b5ac1287e06f221f0c9ad204302dd3db7058aa4aba1cbf51a
3
+ metadata.gz: cdfa8dccbcd2af23ed36ea281eca43ac79d1b7778f7fae390224ea6e095b752c
4
+ data.tar.gz: 9a44bed5768607380e3ed240f13e3133d92229af10e7e073a391b6186da9f8f3
5
5
  SHA512:
6
- metadata.gz: afcc68a7de81c4907e2a54f552cee3ece969f79df97bc89d1882cb6a6e4735c941f859bc9a7ec01782dadfe3d94a71c82b49c2d76ea828b7be97e2c45422e86d
7
- data.tar.gz: e72046d3bcd541b438d54bceffefca6a9c3e093e6afcdf0fbfc579fce7bb4d34bb947214fc8b179868148303ff767d10d31f2505efb4fe022052fe07dbcaf831
6
+ metadata.gz: f82573be2d5ec5bedc93a3c349a96897b8f9aba23909247ecf31de7f0e86db66e7125a032d85e099f5de12d14b9d832787a8f8108870e4cf85d06c51ee1c27dc
7
+ data.tar.gz: ad212961209cbcb9e4b49741244bca8f5f8ede570a3603d815c7fc48d569e32957ccabc164522f9f72e96047d4c4aac7b43a8cff32490c4bbbd3322487208a9f
@@ -440,9 +440,10 @@ site.removeJquery != true -%}
440
440
  endif
441
441
  -%}
442
442
  ></script>
443
- {%- endif -%} {%- if site.safeui -%}
443
+ {%- endif -%}
444
+
444
445
  <script defer src="/assets/js/theme.js" crossorigin="anonymous"></script>
445
- {%- endif -%} {%- if site.removeBootstrapJs != true -%}
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
- let getLayout = document.getElementById("header");
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");
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appscms-tools-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.4
4
+ version: 3.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek-appscms