swedbank-pay-design-guide-jekyll-theme 2.6.2 → 2.6.4
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/js/swedbank-pay-design-guide-theme.js +1 -1
- data/assets/tipuesearch/tipuesearch.min.js +261 -181
- data/assets/tipuesearch/tipuesearch_set.js +1 -1
- 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: 52446f61fd008d59e42aea8446f2d2bcc525162c92b8597cccbe7f6a45a9e3fb
|
4
|
+
data.tar.gz: 6f5b99aa7d3656daa1e250038dade71fc8d447eea83a71e27b77b2d431929560
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8758cda5992cdb88daa067651422a63e7e7a538b211a005b88c0d11e38c0e675f41f9a5461647801e0a5090cd7efcf7219dabadfde5f19edad9092019e75b8d3
|
7
|
+
data.tar.gz: 55cb6e81fa733e0255e56862431880e191eebe851254984a584bfe8c98cf9d2fe8a51ce72de59cb464fce501fdd4e73fc6f943d8f7eb2560e06af64262f1cf5d
|
@@ -1,181 +1,261 @@
|
|
1
|
-
(function($)
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
{
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
function
|
17
|
-
|
18
|
-
{
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
{
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
else
|
56
|
-
|
57
|
-
if(
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
if(
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
{
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
{
|
74
|
-
else
|
75
|
-
{
|
76
|
-
|
77
|
-
{var m_c=tipuesearch_in.pages[i].
|
78
|
-
if(tipuesearch_in.pages[i].
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
if(
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
if(score!=0)
|
89
|
-
|
90
|
-
|
91
|
-
{
|
92
|
-
|
93
|
-
if(
|
94
|
-
{
|
95
|
-
if(
|
96
|
-
{
|
97
|
-
|
98
|
-
|
99
|
-
if(
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
if(
|
106
|
-
{var
|
107
|
-
{
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
{
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
{
|
128
|
-
|
129
|
-
|
130
|
-
if(set.
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
{
|
135
|
-
if(
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
if(f)
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
out+='</
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
1
|
+
(function ($) {
|
2
|
+
$.fn.tipuesearch = function (options) {
|
3
|
+
var set = $.extend({ 'contentLocation': 'tipuesearch/tipuesearch_content.json', 'contextBuffer': 60, 'contextLength': 60, 'contextStart': 90, 'debug': false, 'descriptiveWords': 25, 'footerPages': 10, 'highlightTerms': true, 'liveContent': '*', 'liveDescription': '*', 'minimumLength': 3, 'mode': 'static', 'newWindow': false, 'show': 10, 'showContext': true, 'showRelated': true, 'showTime': true, 'showTitleCount': true, 'showURL': true, 'wholeWords': true }, options); return this.each(function () {
|
4
|
+
var tipuesearch_in = { pages: [] }; $.ajaxSetup({ async: false });
|
5
|
+
var tipuesearch_t_c = 0; $('#tipue_search_content').hide().html('<div class="tipue_search_spinner"><div class="tipue_search_rect1"></div><div class="tipue_search_rect2"></div><div class="rect3"></div></div>').show();
|
6
|
+
if (set.mode == 'live') {
|
7
|
+
for (var i = 0; i < tipuesearch_pages.length; i++) {
|
8
|
+
$.get(tipuesearch_pages[i]).done(function (html) {
|
9
|
+
var cont = $(set.liveContent, html).text(); cont = cont.replace(/\s+/g, ' '); var desc = $(set.liveDescription, html).text(); desc = desc.replace(/\s+/g, ' '); var t_1 = html.toLowerCase().indexOf('<title>'); var t_2 = html.toLowerCase().indexOf('</title>', t_1 + 7); if (t_1 != -1 && t_2 != -1) { var tit = html.slice(t_1 + 7, t_2); }
|
10
|
+
else { var tit = tipuesearch_string_1; }
|
11
|
+
tipuesearch_in.pages.push({ "title": tit, "text": desc, "tags": cont, "url": tipuesearch_pages[i] });
|
12
|
+
});
|
13
|
+
}
|
14
|
+
}
|
15
|
+
if (set.mode == 'json') {
|
16
|
+
$.getJSON(set.contentLocation).done(function (json) { tipuesearch_in = $.extend({}, json); });
|
17
|
+
}
|
18
|
+
if (set.mode == 'static') { tipuesearch_in = $.extend({}, tipuesearch); }
|
19
|
+
var tipue_search_w = ''; if (set.newWindow) { tipue_search_w = ' target="_blank"'; }
|
20
|
+
function getURLP(name) {
|
21
|
+
var _locSearch = location.search; var _splitted = (new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(_locSearch) || [, ""]); var searchString = _splitted[1].replace(/\+/g, '%20'); try { searchString = decodeURIComponent(searchString); }
|
22
|
+
catch (e) { searchString = unescape(searchString); }
|
23
|
+
return searchString || null;
|
24
|
+
}
|
25
|
+
if (getURLP('q')) {
|
26
|
+
$('#tipue_search_input').val(getURLP('q'));
|
27
|
+
getTipueSearch(0, true);
|
28
|
+
}
|
29
|
+
$(this).keyup(function (event) {
|
30
|
+
if (event.keyCode == '13') {
|
31
|
+
getTipueSearch(0, true);
|
32
|
+
}
|
33
|
+
});
|
34
|
+
|
35
|
+
function getTipueSearch(start, replace) {
|
36
|
+
var out = '';
|
37
|
+
var show_replace = false;
|
38
|
+
var show_stop = false;
|
39
|
+
var standard = true;
|
40
|
+
var c = 0; found = [];
|
41
|
+
var d_o = $('#tipue_search_input').val();
|
42
|
+
var d = d_o.toLowerCase();
|
43
|
+
d = $.trim(d);
|
44
|
+
if ((d.match("^\"") && d.match("\"$")) || (d.match("^'") && d.match("'$"))) { standard = false; }
|
45
|
+
var d_w = d.split(' '); if (standard) {
|
46
|
+
d = '';
|
47
|
+
for (var i = 0; i < d_w.length; i++) {
|
48
|
+
var a_w = true; for (var f = 0; f < tipuesearch_stop_words.length; f++) {
|
49
|
+
if (d_w[i] == tipuesearch_stop_words[f]) { a_w = false; show_stop = true; }
|
50
|
+
}
|
51
|
+
if (a_w) { d = d + ' ' + d_w[i]; }
|
52
|
+
}
|
53
|
+
d = $.trim(d); d_w = d.split(' ');
|
54
|
+
}
|
55
|
+
else { d = d.substring(1, d.length - 1); }
|
56
|
+
if (d.length >= set.minimumLength) {
|
57
|
+
if (standard) {
|
58
|
+
if (replace) {
|
59
|
+
var d_r = d; for (var i = 0; i < d_w.length; i++) {
|
60
|
+
for (var f = 0; f < tipuesearch_replace.words.length; f++) {
|
61
|
+
if (d_w[i] == tipuesearch_replace.words[f].word) { d = d.replace(d_w[i], tipuesearch_replace.words[f].replace_with); show_replace = true; }
|
62
|
+
}
|
63
|
+
}
|
64
|
+
d_w = d.split(' ');
|
65
|
+
}
|
66
|
+
var d_t = d; for (var i = 0; i < d_w.length; i++) {
|
67
|
+
for (var f = 0; f < tipuesearch_stem.words.length; f++) {
|
68
|
+
if (d_w[i] == tipuesearch_stem.words[f].word) { d_t = d_t + ' ' + tipuesearch_stem.words[f].stem; }
|
69
|
+
}
|
70
|
+
}
|
71
|
+
d_w = d_t.split(' '); for (var i = 0; i < tipuesearch_in.pages.length; i++) {
|
72
|
+
var score = 0; var s_t = tipuesearch_in.pages[i].text; for (var f = 0; f < d_w.length; f++) {
|
73
|
+
if (set.wholeWords) { var pat = new RegExp('\\b' + d_w[f] + '\\b', 'gi'); }
|
74
|
+
else { var pat = new RegExp(d_w[f], 'gi'); }
|
75
|
+
if (tipuesearch_in.pages[i].title.search(pat) != -1) { var m_c = tipuesearch_in.pages[i].title.match(pat).length; score += (20 * m_c); }
|
76
|
+
if (tipuesearch_in.pages[i].text.search(pat) != -1) { var m_c = tipuesearch_in.pages[i].text.match(pat).length; score += (20 * m_c); }
|
77
|
+
if (tipuesearch_in.pages[i].tags.search(pat) != -1) { var m_c = tipuesearch_in.pages[i].tags.match(pat).length; score += (10 * m_c); }
|
78
|
+
if (tipuesearch_in.pages[i].url.search(pat) != -1) { score += 20; }
|
79
|
+
if (score != 0) {
|
80
|
+
for (var e = 0; e < tipuesearch_weight.weight.length; e++) {
|
81
|
+
if (tipuesearch_in.pages[i].url == tipuesearch_weight.weight[e].url) { score += tipuesearch_weight.weight[e].score; }
|
82
|
+
}
|
83
|
+
}
|
84
|
+
if (d_w[f].match('^-')) {
|
85
|
+
pat = new RegExp(d_w[f].substring(1), 'i'); if (tipuesearch_in.pages[i].title.search(pat) != -1 || tipuesearch_in.pages[i].text.search(pat) != -1 || tipuesearch_in.pages[i].tags.search(pat) != -1) { score = 0; }
|
86
|
+
}
|
87
|
+
}
|
88
|
+
if (score != 0) { found.push({ "score": score, "title": tipuesearch_in.pages[i].title, "desc": s_t, "url": tipuesearch_in.pages[i].url }); c++; }
|
89
|
+
}
|
90
|
+
}
|
91
|
+
else {
|
92
|
+
for (var i = 0; i < tipuesearch_in.pages.length; i++) {
|
93
|
+
var score = 0; var s_t = tipuesearch_in.pages[i].text; var pat = new RegExp(d, 'gi'); if (tipuesearch_in.pages[i].title.search(pat) != -1) { var m_c = tipuesearch_in.pages[i].title.match(pat).length; score += (20 * m_c); }
|
94
|
+
if (tipuesearch_in.pages[i].text.search(pat) != -1) { var m_c = tipuesearch_in.pages[i].text.match(pat).length; score += (20 * m_c); }
|
95
|
+
if (tipuesearch_in.pages[i].tags.search(pat) != -1) { var m_c = tipuesearch_in.pages[i].tags.match(pat).length; score += (10 * m_c); }
|
96
|
+
if (tipuesearch_in.pages[i].url.search(pat) != -1) { score += 20; }
|
97
|
+
if (score != 0) {
|
98
|
+
for (var e = 0; e < tipuesearch_weight.weight.length; e++) {
|
99
|
+
if (tipuesearch_in.pages[i].url == tipuesearch_weight.weight[e].url) { score += tipuesearch_weight.weight[e].score; }
|
100
|
+
}
|
101
|
+
}
|
102
|
+
if (score != 0) { found.push({ "score": score, "title": tipuesearch_in.pages[i].title, "desc": s_t, "url": tipuesearch_in.pages[i].url }); c++; }
|
103
|
+
}
|
104
|
+
}
|
105
|
+
if (c != 0) {
|
106
|
+
if (set.showTitleCount && tipuesearch_t_c == 0) { var title = document.title; document.title = '(' + c + ') ' + title; tipuesearch_t_c++; }
|
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
|
+
out += '<div id="tipue_search_results_count">' + tipuesearch_string_4;
|
110
|
+
}
|
111
|
+
else {
|
112
|
+
if (found[c - 1] && !found[c - 1].desc) {
|
113
|
+
c = c - 1; // If the last item has 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
|
+
}
|
118
|
+
if (set.showTime) {
|
119
|
+
var endTimer = new Date().getTime();
|
120
|
+
var time = (endTimer - startTimer) / 1000;
|
121
|
+
out += ' (' + time.toFixed(2) + ' ' + tipuesearch_string_14 + ')'; set.showTime = false;
|
122
|
+
}
|
123
|
+
out += '</div>';
|
124
|
+
found.sort(function (a, b) { return b.score - a.score });
|
125
|
+
var l_o = 0;
|
126
|
+
for (var i = 0; i < found.length; i++) {
|
127
|
+
if (l_o >= start && l_o < set.show + start) {
|
128
|
+
out += '<h2 class="tipue_search_content_title"><a href="' + found[i].url + '"' + tipue_search_w + '>' + found[i].title + '</a></h2>';
|
129
|
+
if (set.debug) { out += '<div class="tipue_search_content_debug">Score: ' + found[i].score + '</div>'; }
|
130
|
+
if (set.showURL) {
|
131
|
+
var s_u = found[i].url.toLowerCase(); if (s_u.indexOf('http://') == 0) { s_u = s_u.slice(7); }
|
132
|
+
// out+='<div class="tipue_search_content_url"><a href="'+found[i].url+'"'+tipue_search_w+'>'+s_u+'</a></div>';
|
133
|
+
}
|
134
|
+
if (found[i].desc) {
|
135
|
+
var t = found[i].desc; if (set.showContext) {
|
136
|
+
d_w = d.split(' '); var s_1 = found[i].desc.toLowerCase().indexOf(d_w[0]); if (s_1 > set.contextStart) {
|
137
|
+
var t_1 = t.substr(s_1 - set.contextBuffer); var s_2 = t_1.indexOf(' '); t_1 = t.substr(s_1 - set.contextBuffer + s_2); t_1 = $.trim(t_1); if (t_1.length > set.contextLength) { t = '... ' + t_1; }
|
138
|
+
}
|
139
|
+
}
|
140
|
+
if (standard) {
|
141
|
+
d_w = d.split(' '); for (var f = 0; f < d_w.length; f++) {
|
142
|
+
if (set.highlightTerms) { var patr = new RegExp('(' + d_w[f] + ')', 'gi'); t = t.replace(patr, "<h0011>$1<h0012>"); }
|
143
|
+
}
|
144
|
+
}
|
145
|
+
else if (set.highlightTerms) { var patr = new RegExp('(' + d + ')', 'gi'); t = t.replace(patr, "<strong>$1</strong>"); }
|
146
|
+
var t_d = ''; var t_w = t.split(' '); if (t_w.length < set.descriptiveWords) { t_d = t; }
|
147
|
+
else {
|
148
|
+
for (var f = 0; f < set.descriptiveWords; f++) { t_d += t_w[f] + ' '; }
|
149
|
+
}
|
150
|
+
t_d = $.trim(t_d); if (t_d.charAt(t_d.length - 1) != '.') { t_d += ' ...'; }
|
151
|
+
t_d = t_d.replace(/h0011/g, 'strong'); t_d = t_d.replace(/h0012/g, '/strong'); out += '<div class="tipue_search_content_text">' + t_d + '</div>';
|
152
|
+
}
|
153
|
+
}
|
154
|
+
l_o++;
|
155
|
+
}
|
156
|
+
if (set.showRelated && standard) {
|
157
|
+
f = 0;
|
158
|
+
for (var i = 0; i < tipuesearch_related.searches.length; i++) {
|
159
|
+
if (d == tipuesearch_related.searches[i].search) {
|
160
|
+
if (show_replace) { d_o = d; }
|
161
|
+
if (!f) { out += '<div class="tipue_search_related_title">' + tipuesearch_string_15 + ' <span class="tipue_search_related_bold">' + d_o + '</span></div><div class="tipue_search_related_cols">'; }
|
162
|
+
out += '<div class="tipue_search_related_text"><a class="tipue_search_related" id="' + tipuesearch_related.searches[i].related + '">'; if (tipuesearch_related.searches[i].before) { out += '<span class="tipue_search_related_before">' + tipuesearch_related.searches[i].before + '</span> '; }
|
163
|
+
out += tipuesearch_related.searches[i].related; if (tipuesearch_related.searches[i].after) { out += ' <span class="tipue_search_related_after">' + tipuesearch_related.searches[i].after + '</span>'; }
|
164
|
+
out += '</a></div>'; f++;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
if (f) { out += '</div>'; }
|
168
|
+
}
|
169
|
+
if (c > set.show) {
|
170
|
+
var pages = Math.ceil(c / set.show);
|
171
|
+
var p_b_high = pages;
|
172
|
+
var p_b_low = 0;
|
173
|
+
var hasPagination = false
|
174
|
+
if (pages > set.footerPages) {
|
175
|
+
p_b_high = set.footerPages; //limit pagination to set.footerPages
|
176
|
+
hasPagination = true;
|
177
|
+
}
|
178
|
+
var page = (start / set.show);
|
179
|
+
out += '<nav><div id="tipue_search_foot"><ul id="tipue_search_foot_boxes">';
|
180
|
+
|
181
|
+
if (start > 0) {
|
182
|
+
p_b_low = p_b_low + 1;
|
183
|
+
}
|
184
|
+
if ((page + 1) > set.footerPages) {
|
185
|
+
var diff = (page + 1) - set.footerPages;
|
186
|
+
if (page + 1 > p_b_high) {
|
187
|
+
p_b_high = (p_b_high + diff) > pages ? pages : p_b_high + diff;
|
188
|
+
p_b_low = p_b_low + diff;
|
189
|
+
}
|
190
|
+
else if (page + 1 < p_b_low) {
|
191
|
+
p_b_low = (p_b_low - diff) < 0 ? 0 : p_b_low - diff;
|
192
|
+
p_b_high = p_b_high - diff;
|
193
|
+
}
|
194
|
+
}
|
195
|
+
console.log('p_b_low: ' + p_b_low + ', p_b_high: ' + p_b_high);
|
196
|
+
|
197
|
+
if (start > 0) { //tipuesearch_string_6
|
198
|
+
if (hasPagination && page !== 0) {
|
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>';
|
200
|
+
}
|
201
|
+
out += '<li role="navigation"><a class="tipue_search_foot_box" id="' + (0) + '_' + replace + '">' + (1) + '</a></li>';
|
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) {
|
206
|
+
out += '<li role="navigation"><span>...</span></li>';
|
207
|
+
}
|
208
|
+
}
|
209
|
+
for (var f = p_b_low; f < p_b_high; f++) {
|
210
|
+
//if (f == page)
|
211
|
+
//{out+='<li class="current" role="navigation">'+(f+1)+'</li>';}
|
212
|
+
if (f == page) {
|
213
|
+
out += '<li class="current" role="navigation"><a class="tipue_search_foot_box" id="' + (f * set.show) + '_' + replace + '">' + (f + 1) + '</a></li>';
|
214
|
+
}
|
215
|
+
else {
|
216
|
+
out += '<li role="navigation"><a class="tipue_search_foot_box" id="' + (f * set.show) + '_' + replace + '">' + (f + 1) + '</a></li>';
|
217
|
+
}
|
218
|
+
}
|
219
|
+
if (page + 1 != pages) { //tipuesearch_string_7
|
220
|
+
if (hasPagination && p_b_high === (pages - 2)) {
|
221
|
+
out += '<li role="navigation"><a class="tipue_search_foot_box" id="' + ((pages - 2) * set.show) + '_' + replace + '">' + (pages - 1) + '</a></li>';
|
222
|
+
}
|
223
|
+
if (hasPagination && p_b_high < (pages - 2)) {
|
224
|
+
out += '<li role="navigation"><span>...</span></li>';
|
225
|
+
}
|
226
|
+
if (hasPagination) {
|
227
|
+
out += '<li role="navigation"><a class="tipue_search_foot_box" id="' + ((pages - 1) * set.show) + '_' + replace + '">' + (pages) + '</a></li>';
|
228
|
+
}
|
229
|
+
if (hasPagination && (page + 1) !== pages) {
|
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>';
|
231
|
+
}
|
232
|
+
}
|
233
|
+
out += '</ul></div></nav>';
|
234
|
+
}
|
235
|
+
}
|
236
|
+
else { out += '<div id="tipue_search_warning">' + tipuesearch_string_8 + '</div>'; }
|
237
|
+
}
|
238
|
+
else {
|
239
|
+
if (show_stop) { out += '<div id="tipue_search_warning">' + tipuesearch_string_8 + '. ' + tipuesearch_string_9 + '</div>'; }
|
240
|
+
else {
|
241
|
+
out += '<div id="tipue_search_warning">' + tipuesearch_string_10 + '</div>'; if (set.minimumLength == 1) { out += '<div id="tipue_search_warning">' + tipuesearch_string_11 + '</div>'; }
|
242
|
+
else { out += '<div id="tipue_search_warning">' + tipuesearch_string_12 + ' ' + set.minimumLength + ' ' + tipuesearch_string_13 + '</div>'; }
|
243
|
+
}
|
244
|
+
}
|
245
|
+
$('#tipue_search_content').hide().html(out).slideDown(200);
|
246
|
+
$('#tipue_search_replaced').click(function () {
|
247
|
+
getTipueSearch(0, false);
|
248
|
+
});
|
249
|
+
$('.tipue_search_related').click(function () {
|
250
|
+
$('#tipue_search_input').val($(this).attr('id'));
|
251
|
+
getTipueSearch(0, true);
|
252
|
+
});
|
253
|
+
$('.tipue_search_foot_box').click(function () {
|
254
|
+
var id_v = $(this).attr('id');
|
255
|
+
var id_a = id_v.split('_');
|
256
|
+
getTipueSearch(parseInt(id_a[0]), id_a[1]);
|
257
|
+
});
|
258
|
+
}
|
259
|
+
});
|
260
|
+
};
|
261
|
+
})(jQuery);
|
@@ -61,7 +61,7 @@ var tipuesearch_string_4 = '1 result';
|
|
61
61
|
var tipuesearch_string_5 = 'results';
|
62
62
|
var tipuesearch_string_6 = 'Back';
|
63
63
|
var tipuesearch_string_7 = 'Next';
|
64
|
-
var tipuesearch_string_8 = 'Nothing found
|
64
|
+
var tipuesearch_string_8 = 'Nothing found';
|
65
65
|
var tipuesearch_string_9 = 'Common words are largely ignored.';
|
66
66
|
var tipuesearch_string_10 = 'Search too short';
|
67
67
|
var tipuesearch_string_11 = 'Should be one character or more.';
|
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.4
|
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-
|
11
|
+
date: 2025-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|