PageSourceSearch

https://saabblog.net/wp-content/cache/wpfc-minified/2ptthhix/4helr.js

js saabblog.net collected 2026-09-25 00:35:26 UTC 11,633 bytes, 688 lines download raw bytes

1!(function (t, e){
2'use strict';
3'object'==typeof module &&
4'object'==typeof module.exports &&
5(module.exports=t.document
6? void 0
7: function (t){
8if(!t.document)
9throw new Error('jQuery requires a window with a document');
10});
11})('undefined'!=typeof window ? window:this),
12(function (t){
13'use strict';
14(t.breakingNews=function (e, i){
15var s={
16effect: 'scroll',
17direction: 'ltr',
18height: 20,
19fontSize: 'default',
20themeColor: 'default',
21background: 'default',
22borderWidth: 1,
23radius: 2,
24source: 'html',
25rss2jsonApiKey: '',
26play: !0,
27delayTimer: 4e3,
28scrollSpeed: 2,
29stopOnHover: !0,
30position: 'auto',
31zIndex: 99999,
32},
33n=this;
34n.settings={};
35var r=t(e),
36o=((e=e), r.children('.bn-label')),
37a=r.children('.bn-news'),
38l=a.children('ul'),
39c=l.children('li'),
40d=r.children('.bn-controls'),
41f=d.find('.bn-prev').parent(),
42h=d.find('.bn-action').parent(),
43u=d.find('.bn-next').parent(),
44g = !1,
45p = !0,
46m=l.children('li').length,
47b=0,
48y = !1,
49w=function (){
50if((0 < o.length &&
51('rtl'==n.settings.direction
52? a.css({
53right: o.outerWidth(),
54})
55: a.css({
56left: o.outerWidth(),
57})),
580 < d.length)
59){
60var e=d.outerWidth();
61'rtl'==n.settings.direction
62? a.css({
63left: e,
64})
65: a.css({
66right: e,
67});
68}
69if('scroll'===n.settings.effect){
70var i=0;
71c.each(function (){
72i +=t(this).outerWidth();
73}),
74(i +=10),
75l.css({
76width: i,
77});
78}},
79k=function (){
80var t=parseFloat(l.css('marginLeft'));
81(t -=n.settings.scrollSpeed / 2),
82l.css({
83marginLeft: t,
84}),
85t <=-l.find('li:first-child').outerWidth() &&
86(l.find('li:first-child').insertAfter(l.find('li:last-child')),
87l.css({
88marginLeft: 0,
89})),
90!1===g &&
91((window.requestAnimationFrame&&requestAnimationFrame(k)) ||
92setTimeout(k, 16));
93},
94v=function (){
95var t=parseFloat(l.css('marginRight'));
96(t -=n.settings.scrollSpeed / 2),
97l.css({
98marginRight: t,
99}),
100t <=-l.find('li:first-child').outerWidth() &&
101(l.find('li:first-child').insertAfter(l.find('li:last-child')),
102l.css({
103marginRight: 0,
104})),
105!1===g &&
106((window.requestAnimationFrame&&requestAnimationFrame(v)) ||
107setTimeout(v, 16));
108},
109q=function (){
110switch (((p = !0), n.settings.effect)){
111case 'typography':
112l.find('li').hide(),
113l.find('li').eq(b).width(30).show(),
114l.find('li').eq(b).animate({
115width: '100%',
116opacity: 1,
117},
1181500,
119);
120break;
121case 'fade':
122l.find('li').hide(), l.find('li').eq(b).fadeIn();
123break;
124case 'slide-down':
125m <=1
126? l.find('li').animate({
127top: 30,
128opacity: 0,
129},
130300,
131function (){
132t(this).css({
133top: -30,
134opacity: 0,
135display: 'block',
136}),
137t(this).animate({
138top: 0,
139opacity: 1,
140},
141300,
142);
143},
144)
145: (l.find('li:visible').animate({
146top: 30,
147opacity: 0,
148},
149300,
150function (){
151t(this).hide();
152},
153),
154l
155.find('li')
156.eq(b)
157.css({
158top: -30,
159opacity: 0,
160})
161.show(),
162l.find('li').eq(b).animate({
163top: 0,
164opacity: 1,
165},
166300,
167));
168break;
169case 'slide-up':
170m <=1
171? l.find('li').animate({
172top: -30,
173opacity: 0,
174},
175300,
176function (){
177t(this).css({
178top: 30,
179opacity: 0,
180display: 'block',
181}),
182t(this).animate({
183top: 0,
184opacity: 1,
185},
186300,
187);
188},
189)
190: (l.find('li:visible').animate({
191top: -30,
192opacity: 0,
193},
194300,
195function (){
196t(this).hide();
197},
198),
199l
200.find('li')
201.eq(b)
202.css({
203top: 30,
204opacity: 0,
205})
206.show(),
207l.find('li').eq(b).animate({
208top: 0,
209opacity: 1,
210},
211300,
212));
213break;
214case 'slide-left':
215m <=1
216? l.find('li').animate({
217left: '50%',
218opacity: 0,
219},
220300,
221function (){
222t(this).css({
223left: -50,
224opacity: 0,
225display: 'block',
226}),
227t(this).animate({
228left: 0,
229opacity: 1,
230},
231300,
232);
233},
234)
235: (l.find('li:visible').animate({
236left: '50%',
237opacity: 0,
238},
239300,
240function (){
241t(this).hide();
242},
243),
244l
245.find('li')
246.eq(b)
247.css({
248left: -50,
249opacity: 0,
250})
251.show(),
252l.find('li').eq(b).animate({
253left: 0,
254opacity: 1,
255},
256300,
257));
258break;
259case 'slide-right':
260m <=1
261? l.find('li').animate({
262left: '-50%',
263opacity: 0,
264},
265300,
266function (){
267t(this).css({
268left: '50%',
269opacity: 0,
270display: 'block',
271}),
272t(this).animate({
273left: 0,
274opacity: 1,
275},
276300,
277);
278},
279)
280: (l.find('li:visible').animate({
281left: '-50%',
282opacity: 0,
283},
284300,
285function (){
286t(this).hide();
287},
288),
289l
290.find('li')
291.eq(b)
292.css({
293left: '50%',
294opacity: 0,
295})
296.show(),
297l.find('li').eq(b).animate({
298left: 0,
299opacity: 1,
300},
301300,
302));
303break;
304default:
305l.find('li').hide(), l.find('li').eq(b).show();
306}},
307x=function (){
308if(((g = !1), n.settings.play))
309switch (n.settings.effect){
310case 'scroll':
311'rtl'===n.settings.direction
312? l.width() > a.width()&&v()
313: l.width() > a.width()&&k();
314break;
315default:
316n.pause(),
317(y=setInterval(function (){
318n.next();
319}, n.settings.delayTimer));
320}};
321(n.init=function (){
322if(((n.settings=t.extend({}, s, i)),
323'fixed-top'===n.settings.position
324? r.addClass('bn-fixed-top').css({
325'z-index': n.settings.zIndex,
326})
327: 'fixed-bottom'===n.settings.position &&
328r.addClass('bn-fixed-bottom').css({
329'z-index': n.settings.zIndex,
330}),
331'default'!=n.settings.fontSize &&
332r.css({
333'font-size': n.settings.fontSize,
334}),
335'default'!=n.settings.themeColor &&
336(r.css({
337'border-color': n.settings.themeColor,
338color: n.settings.themeColor,
339}),
340o.css({
341background: n.settings.themeColor,
342})),
343'default'!=n.settings.background &&
344r.css({
345background: n.settings.background,
346}),
347r.css({
348height: n.settings.height,
349'line-height':
350n.settings.height - 2 * n.settings.borderWidth + 'px',
351'border-radius': n.settings.radius,
352'border-width': n.settings.borderWidth,
353}),
354c.find('.bn-seperator').css({
355height: n.settings.height - 2 * n.settings.borderWidth,
356}),
357r.addClass('bn-effect-' +
358n.settings.effect +
359' bn-direction-' +
360n.settings.direction,
361),
362w(),
363'object'==typeof n.settings.source)
364)
365switch (n.settings.source.type){
366case 'rss':
367'rss2json'===n.settings.source.usingApi
368? (((d=new XMLHttpRequest()).onreadystatechange =
369function (){
370if(4==d.readyState&&200==d.status){
371var t=JSON.parse(d.responseText),
372e='',
373i='';
374switch (n.settings.source.showingField){
375case 'title':
376i='title';
377break;
378case 'description':
379i='description';
380break;
381case 'link':
382i='link';
383break;
384default:
385i='title';
386}
387var s='';
388void 0!==n.settings.source.seperator &&
389void 0!==typeof n.settings.source.seperator &&
390(s=n.settings.source.seperator);
391for (var r=0; r < t.items.length; r++)
392n.settings.source.linkEnabled
393? (e +=
394'<li><a target="' +
395n.settings.source.target +
396'" href="' +
397t.items[r].link +
398'">' +
399s +
400t.items[r][i] +
401'</a></li>')
402: (e +=
403'<li><a>' + s + t.items[r][i] + '</a></li>');
404l.empty().append(e),
405(c=l.children('li')),
406(m=l.children('li').length),
407w(),
408'scroll'!=n.settings.effect&&q(),
409c.find('.bn-seperator').css({
410height:
411n.settings.height - 2 * n.settings.borderWidth,
412}),
413x();
414}}),
415d.open('GET',
416'https://api.rss2json.com/v1/api.json?rss_url=' +
417n.settings.source.url +
418'&count=' +
419n.settings.source.limit +
420'&api_key=' +
421n.settings.source.rss2jsonApiKey,
422!0,
423),
424d.send())
425: ((e=new XMLHttpRequest()).open('GET',
426'https://query.yahooapis.com/v1/public/yql?q=' +
427encodeURIComponent(
428'select * from rss where url="' +
429n.settings.source.url +
430'" limit ' +
431n.settings.source.limit,
432) +
433'&format=json',
434!0,
435),
436(e.onreadystatechange=function (){
437if(4==e.readyState)
438if(200==e.status){
439var t=JSON.parse(e.responseText),
440i='',
441s='';
442switch (n.settings.source.showingField){
443case 'title':
444s='title';
445break;
446case 'description':
447s='description';
448break;
449case 'link':
450s='link';
451break;
452default:
453s='title';
454}
455var r='';
456'undefined'!=n.settings.source.seperator &&
457void 0!==n.settings.source.seperator &&
458(r=n.settings.source.seperator);
459for (var o=0; o < t.query.results.item.length; o++)
460n.settings.source.linkEnabled
461? (i +=
462'<li><a target="' +
463n.settings.source.target +
464'" href="' +
465t.query.results.item[o].link +
466'">' +
467r +
468t.query.results.item[o][s] +
469'</a></li>')
470: (i +=
471'<li><a>' +
472r +
473t.query.results.item[o][s] +
474'</a></li>');
475l.empty().append(i),
476(c=l.children('li')),
477(m=l.children('li').length),
478w(),
479'scroll'!=n.settings.effect&&q(),
480c.find('.bn-seperator').css({
481height:
482n.settings.height - 2 * n.settings.borderWidth,
483}),
484x();
485} else
486l.empty().append('<li><span class="bn-loader-text">' +
487n.settings.source.errorMsg +
488'</span></li>',
489);
490}),
491e.send(null));
492break;
493case 'json':
494t.getJSON(n.settings.source.url, function (t){
495var e,
496i='';
497e =
498'undefined'===n.settings.source.showingField
499? 'title'
500: n.settings.source.showingField;
501var s='';
502void 0!==n.settings.source.seperator &&
503void 0!==typeof n.settings.source.seperator &&
504(s=n.settings.source.seperator);
505for (
506var r=0;
507r < t.length&&!(r >=n.settings.source.limit);
508r++
509)
510n.settings.source.linkEnabled
511? (i +=
512'<li><a target="' +
513n.settings.source.target +
514'" href="' +
515t[r].link +
516'">' +
517s +
518t[r][e] +
519'</a></li>')
520: (i +='<li><a>' + s + t[r][e] + '</a></li>'),
521'undefined'===t[r][e] &&
522console.log('"' + e + '" does not exist in this json.');
523l.empty().append(i),
524(c=l.children('li')),
525(m=l.children('li').length),
526w(),
527'scroll'!=n.settings.effect&&q(),
528c.find('.bn-seperator').css({
529height: n.settings.height - 2 * n.settings.borderWidth,
530}),
531x();
532});
533break;
534default:
535console.log('Please check your "source" object parameter. Incorrect Value',
536);
537}
538else
539'html'===n.settings.source
540? ('scroll'!=n.settings.effect&&q(), x())
541: console.log('Please check your "source" parameter. Incorrect Value',
542);
543var e, d;
544n.settings.play
545? h.find('span').removeClass('bn-play').addClass('bn-pause')
546: h.find('span').removeClass('bn-pause').addClass('bn-play'),
547r.on('mouseleave', function (e){
548var i=t(document.elementFromPoint(e.clientX, e.clientY)).parents('.breaking-news-ticker',
549)[0];
550t(this)[0]!==i &&
551(!0===n.settings.stopOnHover
552? !0===n.settings.play&&n.play()
553: !0===n.settings.play&&!0===g&&n.play());
554}),
555r.on('mouseenter', function (){
556!0===n.settings.stopOnHover&&n.pause();
557}),
558u.on('click', function (){
559p&&((p = !1), n.pause(), n.next());
560}),
561f.on('click', function (){
562p&&((p = !1), n.pause(), n.prev());
563}),
564h.on('click', function (){
565p &&
566(h.find('span').hasClass('bn-pause')
567? (h.find('span').removeClass('bn-pause').addClass('bn-play'),
568n.stop())
569: ((n.settings.play = !0),
570h.find('span').removeClass('bn-play').addClass('bn-pause')));
571}),
572t(window).on('resize', function (){
573r.width() < 480
574? (o.hide(),
575'rtl'==n.settings.direction
576? a.css({
577right: 0,
578})
579: a.css({
580left: 0,
581}))
582: (o.show(),
583'rtl'==n.settings.direction
584? a.css({
585right: o.outerWidth(),
586})
587: a.css({
588left: o.outerWidth(),
589}));
590});
591}),
592(n.pause=function (){
593(g = !0), clearInterval(y);
594}),
595(n.stop=function (){
596(g = !0), (n.settings.play = !1);
597}),
598(n.play=function (){
599x();
600}),
601(n.next=function (){
602!(function (){
603switch (n.settings.effect){
604case 'scroll':
605'rtl'===n.settings.direction
606? l.stop().animate({
607marginRight: -l.find('li:first-child').outerWidth(),
608},
609300,
610function (){
611l
612.find('li:first-child')
613.insertAfter(l.find('li:last-child')),
614l.css({
615marginRight: 0,
616}),
617(p = !0);
618},
619)
620: l.stop().animate({
621marginLeft: -l.find('li:first-child').outerWidth(),
622},
623300,
624function (){
625l
626.find('li:first-child')
627.insertAfter(l.find('li:last-child')),
628l.css({
629marginLeft: 0,
630}),
631(p = !0);
632},
633);
634break;
635default:
636m <=++b&&(b=0), q();
637}})();
638}),
639(n.prev=function (){
640!(function (){
641switch (n.settings.effect){
642case 'scroll':
643'rtl'===n.settings.direction
644? (0 <=parseInt(l.css('marginRight'), 10) &&
645(l.css({
646'margin-right': -l.find('li:last-child').outerWidth(),
647}),
648l
649.find('li:last-child')
650.insertBefore(l.find('li:first-child'))),
651l.stop().animate({
652marginRight: 0,
653},
654300,
655function (){
656p = !0;
657},
658))
659: (0 <=parseInt(l.css('marginLeft'), 10) &&
660(l.css({
661'margin-left': -l.find('li:last-child').outerWidth(),
662}),
663l
664.find('li:last-child')
665.insertBefore(l.find('li:first-child'))),
666l.stop().animate({
667marginLeft: 0,
668},
669300,
670function (){
671p = !0;
672},
673));
674break;
675default:
676--b < 0&&(b=m - 1), q();
677}})();
678}),
679n.init();
680}),
681(t.fn.breakingNews=function (e){
682return this.each(function (){
683if(null==t(this).data('breakingNews')){
684var i=new t.breakingNews(this, e);
685t(this).data('breakingNews', i);
686}});
687});
688})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.