appscms-tools-theme 4.4.8 → 4.4.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a70db1174d77f80b4cbb6586ec8c1ed873949bc34332bb229454a661410acfe4
4
- data.tar.gz: 1492c33eb63a6b33ad094c3246e1c1113352e753d8d4e7074c403c7157bff950
3
+ metadata.gz: d1e09ee11b58d99d030509cdee4f469c3d347d2eddefa19357163e1e9111145b
4
+ data.tar.gz: b4720267a49d93b3d0fb277e638f851ba82320dd953568900aaecb43ddb13be0
5
5
  SHA512:
6
- metadata.gz: f9d6b8dadd0926771d65a306358aae1e74a92c1a85471c037fdc8b4e24bb29270d88781b462aa83df31e61ff1c06dcdb3ad84c0e6e2bbdd4adc3722b515c7673
7
- data.tar.gz: d231dbc97295dd9a29dddc03749ef40fbb4395a2b611d6de557381d461a18ef7638ea68d3fbea5d7f8037bbd519bc29c684815be2af8421ffc7f396d2d7e1c34
6
+ metadata.gz: ad27b87fcef8697a0b908f47b4ee2fd395125ccea86a2131d474e306d87e2bb825bafa2733ea22e75280f2a8259be4f4de64c1f3c685271c64ea7b894b3fc47c
7
+ data.tar.gz: 3530b11e21573a716e215dc87580d681f0352740a8e197567eea1238d6559ff814db960d256fd6927e0e6383d899ebd93e943d8826e0f87833f06906e6e24a1f
@@ -1,3 +1,38 @@
1
+ <style>
2
+ .modal {
3
+ display: none;
4
+ position: fixed;
5
+ z-index: 1000;
6
+ left: 0;
7
+ top: 0;
8
+ width: 100%;
9
+ height: 100%;
10
+ overflow: auto;
11
+ background-color: rgba(0,0,0,0.9);
12
+ }
13
+ .modal-content {
14
+ margin: auto;
15
+ display: block;
16
+ width: 80%;
17
+ max-width: 800px;
18
+ margin-top: 20px;
19
+ }
20
+ .modal-body img {
21
+ width: 100%;
22
+ height: auto;
23
+ }
24
+ .close {
25
+ position: absolute;
26
+ top: 10px;
27
+ right: 10px;
28
+ font-size: 24px;
29
+ color: #fff;
30
+ cursor: pointer;
31
+ }
32
+ .close:hover {
33
+ color: #ccc;
34
+ }
35
+ </style>
1
36
  <div class="inforgraphics_section">
2
37
  <h3 class="text-center w-100 mb-5"><b>Other useful information</b></h3>
3
38
  <div class="wrapper">
@@ -11,6 +46,8 @@
11
46
  src="{{ item.image }}"
12
47
  alt="img"
13
48
  draggable="false"
49
+ class="infographic-img"
50
+ onclick="openModal('{{ item.image }}')"
14
51
  />
15
52
  <p class="infographic-desc">{{ item.description | capitalize }}</p>
16
53
  </div>
@@ -20,22 +57,42 @@
20
57
  <i id="right" class="fas fa-angle-right"></i>
21
58
  </div>
22
59
  </div>
23
-
60
+ <div id="imageModal" class="modal" onclick="closeModal()">
61
+ <span class="close" onclick="closeModal()">&times;</span>
62
+ <div class="modal-content">
63
+ <div class="modal-body">
64
+ <img id="modalImage" src="" alt="Image">
65
+ </div>
66
+ </div>
67
+ </div>
24
68
  <script>
69
+ function openModal(imageSrc) {
70
+ var modal = document.getElementById('imageModal');
71
+ var modalImg = document.getElementById('modalImage');
72
+ modal.style.display = "block";
73
+ modalImg.src = imageSrc;
74
+ }
75
+ function closeModal() {
76
+ var modal = document.getElementById('imageModal');
77
+ modal.style.display = "none";
78
+ }
79
+ document.addEventListener('click', function(event) {
80
+ var modal = document.getElementById('imageModal');
81
+ if (event.target === modal) {
82
+ closeModal();
83
+ }
84
+ });
25
85
  const carousel = document.querySelector(".carousel-inner"),
26
86
  firstImg = carousel.querySelectorAll("img")[0],
27
87
  arrowIcons = document.querySelectorAll(".wrapper i");
28
-
29
88
  const numImages = carousel.querySelectorAll("img").length;
30
89
  const isMobile = window.matchMedia("(max-width: 767px)").matches; // Check if screen width is less than or equal to 767px
31
-
32
90
  if (numImages > 3) {
33
91
  arrowIcons[1].style.display = "block";
34
92
  } else {
35
93
  arrowIcons[0].style.display = "none";
36
94
  arrowIcons[1].style.display = "none";
37
95
  }
38
-
39
96
  let isDragStart = false,
40
97
  isDragging = false,
41
98
  prevPageX,
@@ -47,7 +104,6 @@
47
104
  arrowIcons[1].style.display =
48
105
  carousel.scrollLeft == scrollWidth ? "none" : "block";
49
106
  };
50
-
51
107
  arrowIcons.forEach((icon) => {
52
108
  icon.addEventListener("click", () => {
53
109
  let firstImgWidth = firstImg.clientWidth + 40;
@@ -59,30 +115,25 @@
59
115
  setTimeout(() => showHideIcons(), 60); // calling showHideIcons after 60ms
60
116
  });
61
117
  });
62
-
63
118
  // const autoSlide = () => {
64
119
  // // if there is no image left to scroll then return from here
65
120
  // if (carousel.scrollLeft - (carousel.scrollWidth - carousel.clientWidth) > -1 || carousel.scrollLeft <= 0) return;
66
-
67
121
  // positionDiff = Math.abs(positionDiff); // making positionDiff value to positive
68
122
  // let firstImgWidth = firstImg.clientWidth + 14;
69
123
  // // getting difference value that needs to add or reduce from carousel left to take middle img center
70
124
  // let valDifference = firstImgWidth - positionDiff;
71
-
72
125
  // if (carousel.scrollLeft > prevScrollLeft) { // if user is scrolling to the right
73
126
  // return carousel.scrollLeft += positionDiff > firstImgWidth / 3 ? valDifference : -positionDiff;
74
127
  // }
75
128
  // // if user is scrolling to the left
76
129
  // carousel.scrollLeft -= positionDiff > firstImgWidth / 3 ? valDifference : -positionDiff;
77
130
  // }
78
-
79
131
  // const dragStart = (e) => {
80
132
  // // updatating global variables value on mouse down event
81
133
  // isDragStart = true;
82
134
  // prevPageX = e.pageX || e.touches[0].pageX;
83
135
  // prevScrollLeft = carousel.scrollLeft;
84
136
  // }
85
-
86
137
  // const dragging = (e) => {
87
138
  // // scrolling images/carousel to left according to mouse pointer
88
139
  // if (!isDragStart) return;
@@ -93,22 +144,17 @@
93
144
  // carousel.scrollLeft = prevScrollLeft - positionDiff;
94
145
  // showHideIcons();
95
146
  // }
96
-
97
147
  // const dragStop = () => {
98
148
  // isDragStart = false;
99
149
  // carousel.classList.remove("dragging");
100
-
101
150
  // if (!isDragging) return;
102
151
  // isDragging = false;
103
152
  // autoSlide();
104
153
  // }
105
-
106
154
  // carousel.addEventListener("mousedown", dragStart);
107
155
  // carousel.addEventListener("touchstart", dragStart);
108
-
109
156
  // document.addEventListener("mousemove", dragging);
110
157
  // carousel.addEventListener("touchmove", dragging);
111
-
112
158
  // document.addEventListener("mouseup", dragStop);
113
159
  // carousel.addEventListener("touchend", dragStop);
114
- </script>
160
+ </script>
@@ -1,3 +1,4 @@
1
+ {%- if page.searchbar != true -%}
1
2
  <div class="container">
2
3
  <div class="row justify-content-center">
3
4
  <div class="col-lg-6 col-md-8 col-10">
@@ -12,4 +13,5 @@
12
13
  </form>
13
14
  </div>
14
15
  </div>
15
- </div>
16
+ </div>
17
+ {%- endif -%}
@@ -1287,8 +1287,9 @@ body {
1287
1287
  transition-duration: 0.27s;
1288
1288
  }
1289
1289
  .slide img:hover {
1290
- transform: scale(1.1);
1290
+ transform: scale(1.02);
1291
1291
  box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.12);
1292
+ cursor: pointer;
1292
1293
  }
1293
1294
  .no-result-found-msg {
1294
1295
  font-size: 20px;
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: 4.4.8
4
+ version: 4.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek-appscms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-14 00:00:00.000000000 Z
11
+ date: 2024-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll