swedbank-pay-design-guide-jekyll-theme 2.6.2 → 2.6.3

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