appscms-tools-theme 3.3.3 → 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: 98c0bd7265c75a35bc84810aad6de7b6d499752e9858f2ea83d13036f1dbb593
4
- data.tar.gz: 0a5623ffb3336ea7a12be356498cdeb49f2f757ecdea490a1847216285f3994b
3
+ metadata.gz: cdfa8dccbcd2af23ed36ea281eca43ac79d1b7778f7fae390224ea6e095b752c
4
+ data.tar.gz: 9a44bed5768607380e3ed240f13e3133d92229af10e7e073a391b6186da9f8f3
5
5
  SHA512:
6
- metadata.gz: 6d2ce24334dc2d538d53f44543e59653dc7781d4d98daeabe209c4d93a21a5c642d6396c865a8b124c3fe180c127017eb2ed1833272dfce1de4e6a3763769467
7
- data.tar.gz: 6d66fb1ec23174c02e3b61a303973811ced26041fb41f053c8182e6bc9ff6d5b141ac9458ad4b66fd4130f8d4f548a4576632ca1b902d1d986bd6176babde5a9
6
+ metadata.gz: f82573be2d5ec5bedc93a3c349a96897b8f9aba23909247ecf31de7f0e86db66e7125a032d85e099f5de12d14b9d832787a8f8108870e4cf85d06c51ee1c27dc
7
+ data.tar.gz: ad212961209cbcb9e4b49741244bca8f5f8ede570a3603d815c7fc48d569e32957ccabc164522f9f72e96047d4c4aac7b43a8cff32490c4bbbd3322487208a9f
@@ -59,7 +59,7 @@
59
59
  {% endfor %}
60
60
  {%- if site.internationalization -%}
61
61
  <div class="privacy-links-item">
62
- <button type="button" class="drop-down-btn" data-toggle="modal"
62
+ <button type="button" class="drop-down-btn" id="int-modal-btn" data-toggle="modal"
63
63
  data-target="#staticBackdrop">
64
64
  <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor">
65
65
  <path
@@ -84,7 +84,7 @@
84
84
  <h5 class="modal-title text-center w-100 " id="staticBackdropLabel">Select
85
85
  Language
86
86
  </h5>
87
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
87
+ <button type="button" class="close" id="close-modal" data-dismiss="modal" aria-label="Close">
88
88
  <span aria-hidden="true">&times;</span>
89
89
  </button>
90
90
  </div>
@@ -167,7 +167,7 @@
167
167
  {%- else -%}
168
168
  {%- if site.internationalizationall -%}
169
169
  <div class="privacy-links-item">
170
- <button type="button" class="drop-down-btn" data-toggle="modal"
170
+ <button type="button" class="drop-down-btn" id="int-modal-btn" data-toggle="modal"
171
171
  data-target="#staticBackdrop">
172
172
  <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor">
173
173
  <path
@@ -184,7 +184,7 @@
184
184
  style="color:#000" id="staticBackdropLabel">Select
185
185
  Language
186
186
  </h5>
187
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
187
+ <button type="button" class="close" id="close-modal" data-dismiss="modal" aria-label="Close">
188
188
  <span aria-hidden="true">&times;</span>
189
189
  </button>
190
190
  </div>
@@ -331,7 +331,7 @@
331
331
  {% endfor %}
332
332
  {%- if site.internationalization -%}
333
333
  <div class="privacy-links-item">
334
- <button type="button" class="drop-down-btn" data-toggle="modal"
334
+ <button type="button" class="drop-down-btn" id="int-modal-btn" data-toggle="modal"
335
335
  data-target="#staticBackdrop">
336
336
  <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor">
337
337
  <path
@@ -356,7 +356,7 @@
356
356
  <h5 class="modal-title text-center w-100 " id="staticBackdropLabel">Select
357
357
  Language
358
358
  </h5>
359
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
359
+ <button type="button" class="close" id="close-modal" data-dismiss="modal" aria-label="Close">
360
360
  <span aria-hidden="true">&times;</span>
361
361
  </button>
362
362
  </div>
@@ -439,7 +439,7 @@
439
439
  {%- else -%}
440
440
  {%- if site.internationalizationall -%}
441
441
  <div class="privacy-links-item">
442
- <button type="button" class="drop-down-btn" data-toggle="modal"
442
+ <button type="button" class="drop-down-btn" id="int-modal-btn" data-toggle="modal"
443
443
  data-target="#staticBackdrop">
444
444
  <svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor">
445
445
  <path
@@ -456,7 +456,7 @@
456
456
  <h5 class="modal-title text-center w-100 " id="staticBackdropLabel">Select
457
457
  Language
458
458
  </h5>
459
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
459
+ <button type="button" class="close" id="close-modal" data-dismiss="modal" aria-label="Close">
460
460
  <span aria-hidden="true">&times;</span>
461
461
  </button>
462
462
  </div>
@@ -113,7 +113,11 @@
113
113
  {% endif %}
114
114
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
115
115
  aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
116
- <i class="fa fa-bars fa_bars" aria-hidden="true"></i>
116
+ <div class="hamburger-menu">
117
+ <span class="line-top"></span>
118
+ <span class="line-center"></span>
119
+ <span class="line-bottom"></span>
120
+ </div>
117
121
  </button>
118
122
 
119
123
  <div class="collapse navbar-collapse" id="navbarSupportedContent">
@@ -424,7 +424,8 @@
424
424
  {%- endif -%} {%- include adblocker.html -%} {% assign scriptData =
425
425
  site.data.[page.folderName][lang][file] %} {%- assign dataAtt =
426
426
  "data-folderName='$folderName' data-lang='$lang' data-fileName='$fileName'
427
- data-tool='$tool'" -%} {%- assign $folderName = '$folderName' -%}
427
+ data-tool='$tool'" -%} {%- assign $folderName = '$folderName' -%} {%- if
428
+ site.removeJquery != true -%}
428
429
  <script
429
430
  defer
430
431
  src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"
@@ -439,18 +440,18 @@ data-tool='$tool'" -%} {%- assign $folderName = '$folderName' -%}
439
440
  endif
440
441
  -%}
441
442
  ></script>
442
- {%- if site.safeui -%}
443
- <script defer src="/assets/js/theme.js" crossorigin="anonymous"></script>
444
443
  {%- endif -%}
445
444
 
445
+ <script defer src="/assets/js/theme.js" crossorigin="anonymous"></script>
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"
449
450
  integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns"
450
451
  crossorigin="anonymous"
451
452
  ></script>
452
- {{site.data.customcdns.customcdns.jsfiles}} {%- if scriptData.jsfilepaths -%}
453
- {%- for path in scriptData.jsfilepaths -%}
453
+ {%- endif -%} {{site.data.customcdns.customcdns.jsfiles}} {%- if
454
+ scriptData.jsfilepaths -%} {%- for path in scriptData.jsfilepaths -%}
454
455
  <script
455
456
  defer
456
457
  src="{{path}}"
@@ -479,7 +480,8 @@ assign font = "PT Sans" -%} {%- endif -%} {%- if page.layout ==
479
480
  page.layout == "calculator" -%}
480
481
  <script defer src="/assets/js/calculator-tooltip.js"></script>
481
482
  {%- endif -%} {%- if page.layout == 'home-1' or page.layout == "feature-1" -%}
482
- {%- assign font = "Inter" -%} {%- endif -%}
483
+ {%- assign font = "Inter" -%} {%- endif -%} {%- if site.removeFontAwesome !=
484
+ true -%}
483
485
  <link
484
486
  rel="stylesheet"
485
487
  href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"
@@ -487,7 +489,7 @@ page.layout == "calculator" -%}
487
489
  crossorigin="anonymous"
488
490
  referrerpolicy="no-referrer"
489
491
  />
490
- {%- if page.layout == "feature" -%}
492
+ {%- endif -%} {%- if page.layout == "feature" -%}
491
493
  <script>
492
494
  const toaster = document.querySelector(".toaster");
493
495
  if (
@@ -1,4 +1,4 @@
1
- {% assign file = page.fileName %}
1
+ <!-- {% assign file = page.fileName %}
2
2
  {% assign folder = page.folderName %}
3
3
  {% assign lang = page.lang %}
4
4
  {% assign shareData=site.data[folder][lang][file] %}
@@ -18,4 +18,4 @@
18
18
  </ul>
19
19
  </ul>
20
20
  </div>
21
- {%- endif -%}
21
+ {%- endif -%} -->
data/assets/css/tools.css CHANGED
@@ -1564,3 +1564,33 @@ ol li::marker {
1564
1564
  .appscms-sidebar-right {
1565
1565
  right: 0;
1566
1566
  }
1567
+ .hamburger-menu {
1568
+ cursor: pointer;
1569
+ display: none;
1570
+ z-index: 999;
1571
+ margin-left: auto;
1572
+ width: 20px;
1573
+ }
1574
+ @media (max-width: 992px) {
1575
+ .hamburger-menu {
1576
+ display: block;
1577
+ }
1578
+ }
1579
+ @media (max-width: 992px) {
1580
+ .sticky-top-group .hamburger-menu {
1581
+ margin-left: 12px;
1582
+ }
1583
+ }
1584
+
1585
+ .hamburger-menu span {
1586
+ background: #525658;
1587
+ width: 17px;
1588
+ height: 1.5px;
1589
+ display: block;
1590
+ margin: 3.5px 0;
1591
+ border-radius: 50%;
1592
+ -webkit-transition: all 0.3s ease;
1593
+ -o-transition: all 0.3s ease;
1594
+ transition: all 0.3s ease;
1595
+ border-radius: 5px;
1596
+ }
data/assets/js/theme.js CHANGED
@@ -1,15 +1,26 @@
1
- $(document).ready(function () {
2
- var safuiAlert = $("#safeui-alert");
3
- if (safuiAlert) {
4
- safuiAlert
5
- .first()
6
- .delay(10000)
7
- .slideUp(1000, function () {
8
- $(this).remove();
9
- });
10
- }
11
- });
12
- let getLayout = document.getElementById("header");
1
+ ---
2
+ ---
3
+
4
+
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");
13
24
  const layout = getLayout.dataset.layout;
14
25
  if (layout == "feature-1") {
15
26
  var removeNav = () => {
@@ -44,3 +55,43 @@ if (layout == "feature-1") {
44
55
  }
45
56
  };
46
57
  }
58
+ }
59
+
60
+
61
+
62
+ if ("{{ site.removeBootstrapJs }}"==="true") {
63
+ const languagesModal = document.querySelector("#staticBackdrop");
64
+ const intModalBtn = document.querySelector("#int-modal-btn");
65
+ const closeBtn = document.querySelector("#close-modal");
66
+ intModalBtn.addEventListener("click", () => {
67
+ languagesModal.style.display = "block";
68
+ languagesModal.classList.add("show");
69
+ let modal = document.createElement("div");
70
+ modal.classList.add("modal-backdrop", "show");
71
+ document.body.appendChild(modal);
72
+ });
73
+ closeBtn.addEventListener("click", () => {
74
+ languagesModal.style.display = "none";
75
+ languagesModal.classList.remove("show");
76
+ let modal = document.querySelector(".modal-backdrop");
77
+ document.body.removeChild(modal);
78
+ });
79
+ let navbarDropdown = document.querySelector("#navbarDropdown");
80
+ let dropmenu = document.querySelector(".dropmenu");
81
+ navbarDropdown.addEventListener("click", () => {
82
+ if (dropmenu.classList.contains("show")) {
83
+ dropmenu.classList.remove("show");
84
+ } else {
85
+ dropmenu.classList.add("show");
86
+ }
87
+ });
88
+ const navbarToggler=document.querySelector('.navbar-toggler')
89
+ const navBar=document.querySelector('#navbarSupportedContent')
90
+ navbarToggler.addEventListener('click',()=>{
91
+ if (navBar.classList.contains("show")) {
92
+ navBar.classList.remove("show");
93
+ } else {
94
+ navBar.classList.add("show");
95
+ }
96
+ })
97
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appscms-tools-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.3
4
+ version: 3.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek-appscms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-07 00:00:00.000000000 Z
11
+ date: 2023-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll