swedbank-pay-design-guide-jekyll-theme 2.6.3 → 2.6.5
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 +4 -4
- data/assets/tipuesearch/tipuesearch.min.js +24 -5
- data/lib/gem_version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 967dc285e684596cccf27b701ca662230f4c82bc2905a5e33fb0adf1bccd627c
|
4
|
+
data.tar.gz: acfd4758899daafbad0d21de89e637555ec2708b058d51ebc075a97d62a63d7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26196b8a51a0a46c99b520f472875378585bb35c226ec1edb3f27aea0f3b7f948e0a821d09314b268a6eedef01de7c9546659fc5dca88e3c90944277d00e421f
|
7
|
+
data.tar.gz: fe2e1606ee98f1550cd46a5dcf09c9d07619a13eb15cc3203aa39bf6b2cb630e7053df3c6d04119fe90735a18346ddb64c0afcd4f672baf75cb4d5159c1673d6
|
@@ -105,8 +105,16 @@
|
|
105
105
|
if (c != 0) {
|
106
106
|
if (set.showTitleCount && tipuesearch_t_c == 0) { var title = document.title; document.title = '(' + c + ') ' + title; tipuesearch_t_c++; }
|
107
107
|
if (show_replace) { out += '<div id="tipue_search_warning">' + tipuesearch_string_2 + ' ' + d + '. ' + tipuesearch_string_3 + ' <a id="tipue_search_replaced">' + d_r + '</a></div>'; }
|
108
|
-
if (c == 1) {
|
109
|
-
|
108
|
+
if (c == 1) {
|
109
|
+
out += '<div id="tipue_search_results_count">' + tipuesearch_string_4;
|
110
|
+
}
|
111
|
+
else {
|
112
|
+
if (found[c - 1] && !found[c - 1].title && !found[c - 1].desc) {
|
113
|
+
c = c - 1; // If the last item has no title and no description, we remove it from the count
|
114
|
+
}
|
115
|
+
c_c = c.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
116
|
+
out += '<div id="tipue_search_results_count">' + c_c + ' ' + tipuesearch_string_5;
|
117
|
+
}
|
110
118
|
if (set.showTime) {
|
111
119
|
var endTimer = new Date().getTime();
|
112
120
|
var time = (endTimer - startTimer) / 1000;
|
@@ -163,9 +171,13 @@
|
|
163
171
|
var p_b_high = pages;
|
164
172
|
var p_b_low = 0;
|
165
173
|
var hasPagination = false
|
166
|
-
if (pages > set.footerPages) {
|
174
|
+
if (pages > set.footerPages) {
|
175
|
+
p_b_high = set.footerPages; //limit pagination to set.footerPages
|
176
|
+
hasPagination = true;
|
177
|
+
}
|
167
178
|
var page = (start / set.show);
|
168
179
|
out += '<nav><div id="tipue_search_foot"><ul id="tipue_search_foot_boxes">';
|
180
|
+
|
169
181
|
if (start > 0) {
|
170
182
|
p_b_low = p_b_low + 1;
|
171
183
|
}
|
@@ -180,12 +192,17 @@
|
|
180
192
|
p_b_high = p_b_high - diff;
|
181
193
|
}
|
182
194
|
}
|
195
|
+
console.log('p_b_low: ' + p_b_low + ', p_b_high: ' + p_b_high);
|
196
|
+
|
183
197
|
if (start > 0) { //tipuesearch_string_6
|
184
198
|
if (hasPagination && page !== 0) {
|
185
199
|
out += '<li role="navigation"><a class="tipue_search_foot_box" accesskey="b" id="' + (start - set.show) + '_' + replace + '"><i class="swepay-icon-chevron-left" aria-label="back"></i></a></li>';
|
186
200
|
}
|
187
201
|
out += '<li role="navigation"><a class="tipue_search_foot_box" id="' + (0) + '_' + replace + '">' + (1) + '</a></li>';
|
188
|
-
if (hasPagination && p_b_low
|
202
|
+
if (hasPagination && p_b_low === 2) {
|
203
|
+
out += '<li role="navigation"><a class="tipue_search_foot_box" id="' + (1) + '_' + replace + '">' + (2) + '</a></li>';
|
204
|
+
}
|
205
|
+
if (hasPagination && p_b_low > 2) {
|
189
206
|
out += '<li role="navigation"><span>...</span></li>';
|
190
207
|
}
|
191
208
|
}
|
@@ -206,7 +223,9 @@
|
|
206
223
|
if (hasPagination && p_b_high < (pages - 2)) {
|
207
224
|
out += '<li role="navigation"><span>...</span></li>';
|
208
225
|
}
|
209
|
-
|
226
|
+
if (hasPagination) {
|
227
|
+
out += '<li role="navigation"><a class="tipue_search_foot_box" id="' + ((pages - 1) * set.show) + '_' + replace + '">' + (pages) + '</a></li>';
|
228
|
+
}
|
210
229
|
if (hasPagination && (page + 1) !== pages) {
|
211
230
|
out += '<li role="navigation"><a class="tipue_search_foot_box" accesskey="m" id="' + (start + set.show) + '_' + replace + '"><i class="swepay-icon-chevron-right" aria-label="forward"></i></a></li>';
|
212
231
|
}
|
data/lib/gem_version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swedbank-pay-design-guide-jekyll-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Swedbank Pay
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-08-
|
11
|
+
date: 2025-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|