PageSourceSearch

https://www.lakesidebank.com/wp-content/themes/lakeside-bank/js/functions.js?ver=1788943801

js lakesidebank.com collected 2026-09-24 10:27:28 UTC 22,967 bytes, 871 lines download raw bytes

1;(function($, window, document, undefined) {
2	var $win = $(window);
3	var $doc = $(document);
4	var $body = $(document.body);
5	var $classes = {
6		ShowLoginForm : 'show-login-form'
7	};
8
9	var isMobile = {
10		Android: function() {
11			return navigator.userAgent.match(/Android/i);
12		},
13		BlackBerry: function() {
14			return navigator.userAgent.match(/BlackBerry/i);
15		},
16		iOS: function() {
17			return navigator.userAgent.match(/iPhone|iPad|iPod/i);
18		},
19		Opera: function() {
20			return navigator.userAgent.match(/Opera Mini/i);
21		},
22		Windows: function() {
23			return navigator.userAgent.match(/IEMobile/i);
24		},
25		any: function() {
26			return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
27		}
28	};
29    
30    
31
32	$doc.ready(function() {
33		$body = $('body');
34		
35		removeBrFromCheckboxes();
36		initSliders();
37		customTabs();
38		membersContentShowHide();
39		formSteps();
40		surveyField();
41		openClosePopup();
42		closePopup();
43		navActions();
44        
45        if ($(window).outerWidth() > 1240) {
46            __init_megaMenu();
47            console.log("1240 up");
48        }
49        
50        $('.top-menu nav.nav-access ul').append($('.menu-item-gtranslate'));
51        
52        $('#routing_num').click(function(){
53            if($(this).attr('data-click-state') == 1) {
54                $(this).attr('data-click-state', 0);
55                $(this).html('071001504');
56              }
57            else {
58              $(this).attr('data-click-state', 1);
59                $(this).html('Routing #');
60            }
61        });
62        
63        if (window.matchMedia("(max-width: 767px)").matches) {
64
65			// Find the <li> containing the search button
66			const $searchItem = $('#header-serach-btn').closest('li');
67
68			// Move nav-access into mobile navigation
69			$('.nav-outer nav.nav > ul')
70				.prepend($('.top-menu nav.nav-access ul'));
71
72			// Move search item
73			$('.nav-search > ul')
74				.prepend($searchItem);
75
76			// Optional styling
77			$searchItem[0]?.style.setProperty(
78				'left',
79				'260px',
80				'important'
81			);
82
83			$('.nav-outer nav.nav li.menu-item-gtranslate div')
84				.css('position', 'relative', 'important');
85		}
86        
87		$('a').click(function(event){
88			var $this = $(this);
89			var _hash = $this.attr('href').split('#');
90			
91
92			if(_hash[1] != undefined){
93				var _prefix = _hash[1].split('-');
94				
95				if(_prefix[0] == 'popup2' && $('#' + _hash[1]).length){
96					event.preventDefault();
97
98					$('body').addClass('show-popup');
99			
100					$('#' + _hash[1]).addClass('active').siblings().removeClass('active');
101				}
102			}
103		});
104
105		for(var x=1; x<5; x++) {
106			jQuery('#archives'+x).change(function(){
107				var year = jQuery(this).val();
108					//alert(year);
109                console.log(year)
110					window.location.href=year;
111				});
112		}
113
114
115		/*$('.nav-access a').click(function(event){
116			event.preventDefault();
117
118			$body.toggleClass($classes.ShowLoginForm);
119		});*/
120        
121        /* temporary disabled for split login
122		$('.nav-access a').click(function(event){
123			event.preventDefault();
124
125			$body.toggleClass($classes.ShowLoginForm);
126		}); */
127
128		$('.section-popups .btn-close').click(function(event){
129			event.preventDefault();
130
131			$('body').removeClass('show-popup');
132		});
133
134		$('.btn-form').on('click', function(e){
135			e.preventDefault();
136			$formId = $(this).attr('href').replace('#','');
137			var src = '#popup-form-' + $formId;
138			
139			$.magnificPopup.open({
140					items: {
141						src: src,
142					},
143					type: 'inline'
144				});
145		})
146
147		
148
149
150
151		$('body').on('click', '.external', function(e){
152			var link = $(this).attr('href').toString();
153			var matches = link.match(/^mailto:|^tel:/);
154
155			if ( $(this).parent().hasClass('no-popup') || $(this).parents('.nav').length || $(this).parents('.nav-access').length || $(this).parents('.forms-holder').length || matches ) {
156				return;
157			}
158			e.preventDefault();
159			
160			if ( $( '#popup-leave' ).length ) { 
161				//overlay-search-bar
162				$( '#popup-leave' ).find( '.btn-continue' ).attr( 'href', link )
163			};
164
165			$.magnificPopup.open({
166					items: {
167						src: '#popup-leave',
168					},
169					type: 'inline'
170				});
171		});
172
173		function getUrlParameter(sParam) {
174			var sPageURL = decodeURIComponent(window.location.search.substring(1)),
175				sURLVariables = sPageURL.split('&'),
176				sParameterName,
177				i;
178
179			for (i = 0; i < sURLVariables.length; i++) {
180				sParameterName = sURLVariables[i].split('=');
181
182				if (sParameterName[0] === sParam) {
183					return sParameterName[1] === undefined ? true : sParameterName[1];
184				}
185			}
186		};
187
188		$('body').on('click', '.panel a', function(event) {
189			var link = $(this).attr('href');
190			var base_url = $(this).attr('href').split( '?' )[0];
191			var url = link.replace( base_url, window.location.pathname )
192			event.preventDefault();
193			window.open( url, '', 'width=760, height=900');
194		});
195
196		$('.subpage.current').prev('.parent-page').addClass('current')
197		$('.subpage.current').prevUntil( '.parent-page' ).prev('.parent-page').addClass('current');
198		$('.parent-page.current').nextUntil( '.parent-page' ).addClass('active');
199
200		$('.video-popup').on('click', function(event) {
201			event.preventDefault();
202			var popupTarget = $(this).closest('.slide').find('.video-news');
203			
204			$.magnificPopup.open({
205				type: 'inline',
206				preloader: false,
207				items: {
208					src: popupTarget
209					
210				},
211				callbacks: {
212					open: function() {
213						$('.mfp-container').find('video')[0].play()
214					}
215				}
216			})
217		});
218
219		$( '.page-template-products-services .section-body' ).on('click', '.tabs-products .parent-page a', function(event) {
220			event.preventDefault();
221			
222			$(this).parent('li').siblings('.subpage').removeClass('active')
223			$(this).parent('li').nextUntil('.parent-page').addClass('active')
224		});
225
226		var root = new RegExp(location.host);
227
228		if (!$('body').hasClass('postid-1455')) {
229			$('a').not('.cTimeValue a, .internal').each(function(){
230				if(root.test($(this).attr('href'))){ 
231					$(this).addClass('local');
232				} else if( ( $(this).attr('href') ) && $(this).attr('href').charAt(0) !== '#' ){
233					var url = $(this).attr('href');
234					if(url.length > 1) {
235						$(this).addClass('external link-popup');
236					}
237				}
238			});
239		}
240
241		$('.prisna-wp-translate-sub-container a, .locations a, #menu-other-important-info a').each( function() {
242			$(this).removeClass('external');				
243		})
244		
245		// $('.section-nav a').on('click', function(e) {
246		// 	e.preventDefault(); 
247
248		// 	if ($(this).parent().hasClass('current')) {
249		// 		return;
250		// 	};
251
252		// 	$(this).parent().addClass('current')
253		// 		.siblings()
254		// 		.removeClass('current');
255		// }); 
256
257		//
258
259		// prevent news slide clicks
260		$('.slider-news .prevent-click a').on('click', function(e) {
261			e.preventDefault();
262			e.stopPropagation();
263		});
264
265		$('.form-login-secondary a, .nav-secondary a').removeClass("external");
266	});
267
268	$win.on('load', function() {
269		if ( $('.tabs-nav .current a' ).length ) {
270			$(this).click();
271		};
272
273		var currentLocation = window.location.href;
274		if( currentLocation.indexOf('/business/') !== -1 && $('.nav-outer .current-menu-item').length === 0 ){
275			$('.nav-outer').find('a').each( function(){
276				if( $(this).attr('href').indexOf('/products-services/') !== -1 ){
277					$(this).parent().addClass('current-menu-item');
278				}
279			})
280		}
281
282		if( currentLocation.indexOf('/positions/') !== -1 && $('.nav-outer .current-menu-item').length === 0 ){
283			$('.nav-outer').find('a').each( function(){
284				if( $(this).attr('href').indexOf('/careers/') !== -1 ){
285					$(this).parent().addClass('current-menu-item');
286				}
287			})
288		}
289
290		// changeSectionImage();
291	});
292
293	$win.on('load resize', function(){
294
295		if ( $win.width() > 767 ) {
296			var equalizeHeightSelectors = [
297				'.slider-news .slide > h3',
298				'.slider-news .slide .slide-content',
299				'.location-content',
300				'.location'
301			];
302
303			$.each(equalizeHeightSelectors, function(i, selector) {
304				$(selector)
305					.css('height', 'auto')
306					.equalizeHeight();
307			});
308		}else{
309			var equalizeHeightSelectors = [
310				'.slider-news .slide > h3',
311				'.slider-news .slide .slide-content',
312				'.location-content',
313				'.location'
314			];
315
316			$.each(equalizeHeightSelectors, function(i, selector) {
317				$(selector).css('height', 'auto')
318			});
319		};
320	});
321
322	$win.on('load scroll', function() {
323		fixedTabsNav();
324
325		var $holder = $('.page-template-about .rev_slider_wrapper');
326
327		if( !isMobile.any() ) {
328			var s = skrollr.init({
329				forceHeight: false,
330				smoothScrolling: false,
331				mobileDeceleration: 0.004
332			});
333		};
334	});
335
336	function __init_megaMenu() {
337		$( ".nav-outer nav ul li:nth-child(3) a, .sub-menu-panel" )
338		  .mouseover(function() {
339		    $('.sub-menu-panel').show();
340		  })
341		  .mouseout(function() {
342		    $('.sub-menu-panel').hide();
343		});
344
345		$( ".sub-menu li:nth-child(1), .inner-sub__content.personal" )
346		  .mouseover(function() {
347		    $('.inner-sub__content.personal').show();
348		    $('.inner-sub__content.personal').css("display","flex");
349		  })
350		  .mouseout(function() {
351		    $('.inner-sub__content.personal').hide();
352		});
353
354		$( ".sub-menu li:nth-child(2), .inner-sub__content.business" )
355		  .mouseover(function() {
356		    $('.inner-sub__content.business').show();
357		    $('.inner-sub__content.business').css("display","flex");
358		  })
359		  .mouseout(function() {
360		    $('.inner-sub__content.business').hide();
361		});
362
363
364	}
365
366	function navActions() {
367		$('.btn-menu').on('click', function(e) {
368			e.preventDefault();
369
370			$(this).toggleClass('active');
371			$('body').toggleClass('active');
372		});
373	};
374
375	function productsAjaxLoader(url) {
376		var $container = $('.section-products .section-body');
377		var $containerMembers = $('.section-staff');
378
379		if ($container.hasClass('loading')) {
380			return;
381		};
382
383		$container.addClass('loading');
384		$('.loader').addClass('visible');
385		$('.section-nav').addClass('load');
386
387		$.ajax({
388			cache: false,
389			url: url
390		})
391
392		.done(function (data){
393			var $data = $('<div></div>').html(data);
394
395			setTimeout(function(){
396				$container
397					.html('')
398					.html($data.find('.section-body').html());
399
400				$containerMembers
401					.html('')
402					.html($data.find('.section-staff').html());
403
404				changeSectionImage();
405				customTabs();
406				initSliders();
407			}, 1000)
408		})
409
410		.always(function (){
411			setTimeout(function() {
412				$container.removeClass('loading');
413				$('.loader').removeClass('visible');
414				$('.section-nav').removeClass('load');
415			}, 1000)
416		})
417	};
418
419	function formSteps() {
420		var $target = $('.form-wrapper');
421
422		$target.find('.btn').on('click', function(e) {
423			if ( !$(this).hasClass('btn-continue') ) {
424				var elHref = $(this).attr('href');
425				var $targets = $(elHref);
426
427				if ( elHref.substring(0, 1) == '#' && elHref.length > 1 && $targets.length > 0) {
428					e.preventDefault();
429					$('.form-wrapper').hide();
430					$targets.show();
431				};
432			};
433		});
434
435		$('.btn-back').on('click', function() {
436			$target.hide().first().show();
437		});
438	};
439
440	function openClosePopup() {
441		$('.btn-close').on('click', function(){
442			$.magnificPopup.close();
443		});
444	};
445
446	function closePopup() {
447		$('.btn.btn-continue').on('click', function(){
448			$.magnificPopup.close();
449		});
450	};
451
452
453	function membersContentShowHide() {
454		$('.members').each(function(){
455			$(this).find('.member').each(function() {
456				$(this).on('click', function(e) {
457					e.preventDefault();
458
459					var $self = $(this);
460					var $selfIndex = $self.data('index');
461					var $elParent = $self.parents('.members');
462					var $el = $elParent.find($(".member-hidden-content").find("[data-index='" + $selfIndex + "']"));
463
464					if ( !$self.hasClass('opened')) {
465						$elParent.find('.member').removeClass('opened');
466						$self.addClass('opened');
467
468						$elParent.find('.member-hidden-content').stop(true, true).slideUp().find('.member-content').hide();
469						$el.stop(true, true).show().parent().slideDown();
470					} else {
471						$self.removeClass('opened')
472						$elParent.find('.member-content').slideUp();
473						$elParent.find('.member-hidden-content').slideUp();
474					}
475				});
476
477				if ($(this).hasClass('opened')) {
478					var $self = $(this);
479					var $selfIndex = $self.data('index');
480					var $el = $(".member-hidden-content").find("[data-index='" + $selfIndex + "']");
481
482					$('.members').find('.member-hidden-content').stop(true, true).slideUp().find('.member-content').hide();
483					$el.stop(true, true).show().parent().slideDown();
484				};
485			});
486		});
487
488		/*$('.tabs-nav a').on('click', function() {
489			$('.member').removeClass('opened');
490			$('.members').find('.member-hidden-content').stop(true, true).slide
490Up().find('.member-content').hide();
491		});*/
492	};
493
494	// Fixed Tabs Navigation
495	function fixedTabsNav() {
496		if ( $('.tabs-fixed').length) {
497			var $container = $('.tabs-fixed');
498			var $fixedEl = $container.find('.tabs-nav');
499			var containerOffsetTop = $container.offset().top;
500			
501			if ( $container.length ){
502				if( $win.width() > 767 ) {
503					var winScrollTop = $win.scrollTop();
504					var shellOffsetTop = $container.parent('.shell').offset().top;
505					var distance = $('.nav-wrapper').outerHeight(true);
506					var topAdjust = $('body').hasClass('admin-bar') ? 62 : distance;
507					var contentHeight = $('.section-board-members').outerHeight(true);
508
509					$fixedEl.removeClass('fixed')
510
511//					if( winScrollTop >= containerOffsetTop - topAdjust) {
512                    if( winScrollTop >= containerOffsetTop - topAdjust && winScrollTop <= containerOffsetTop - topAdjust + contentHeight- 320 ) {
513						$fixedEl.addClass('fixed')
514					}
515				}
516			};
517		};
518	};
519
520	function changeSectionImage() {
521		var $container = $('.tabs-products');
522		var $target = $('.section-image');
523		var subpageImage = $container.find('.tabs-nav li.subpage.current').data('url');
524		var mainImage = $container.find('.tabs-nav li.current').data('url');
525		var image = '';
526
527		if ( subpageImage ) {
528			image = subpageImage;
529		} else {
530			image = mainImage;
531		};
532
533		$target.css({
534			backgroundImage : 'url('+image+')'
535		});
536
537	};
538
539	$win.load(function() {
540		changeSectionImage();
541		$('.section-products').on('click', '.tabs-products .tabs-nav a', function(event) {
542			var mainImage = $(this).closest('li').data('url');
543
544			var $target = $('.section-products').find('.section-image');
545				
546			$target.css({
547				backgroundImage : 'url('+mainImage+')'
548			});			
549		});
550	});
551
552	function customTabs(){
553		var activeTabClass = 'current';
554		showTab($('.tabs-nav .current').eq());
555
556		$('.tabs-nav .parent-page a').on('click', function(e) {
557			e.preventDefault();
558
559			var $tabLink = $(this);
560			var $targetTab = $($tabLink.attr('href'));
561			$tabLink.parent().addClass(activeTabClass);
562			$tabLink.parent().siblings().removeClass(activeTabClass);
563
564			showTab($targetTab.index());
565		});
566
567		$('.tabs-nav .subpage a').on('click', function(e) {
568			e.preventDefault();
569
570			$(this).parent().addClass(activeTabClass);
571			$(this).parent().siblings('.subpage').removeClass(activeTabClass);
572
573			showTab($(this).index());
574		});
575
576		$('.tabs-nav a').on('click', function(e) {
577			e.preventDefault();
578			if ( $(this).data( 'permalink' ) ) {
579				history.pushState("", document.title, $(this).data( 'permalink' ));
580			}
581			var $tabLink = $(this);
582			var $targetTab = $($tabLink.attr('href'));
583
584			showTab($targetTab.index());
585		});
586	};
587
588	function showTab( tab_index ) {
589		$('.tabs-content-js').each(function() {
590			$(this).find('.tab')
591				.eq(tab_index)
592				.fadeIn(300)
593				.siblings()
594				.hide();
595		});
596	};
597
598	function initSliders() {
599		var $owlNews = $('.slider-news .slides'),
600			$owlStories = $('.slider-stories .slides'),
601			$owlStaff = $('.slider-staff .slides'),
602			$owlPeople = $('.slider-people .slides'),
603			$sync1 = $('.slider-staff .slides'),
604			$sync2 = $('.slider-staff-thumbs .slides'),
605			duration = 300;
606
607		//Slider news and opportunities
608		$owlNews.owlCarousel({
609			margin:12,
610			loop:true,
611			autoWidth:true,
612			nav:true,
613			responsive:{
614				320:{
615					autoWidth:false,
616					items:1
617				},
618				768:{
619					autoWidth:false,
620					items:2
621				},
622				1024:{
623					autoWidth:false,
624					items:3
625				},
626				1540:{
627					
628				}
629			}
630		});
631
632		// Custom Navigation Events
633		$('.slider-next').on('click', function(e){
634			e.preventDefault();
635			$owlNews.trigger('next.owl.carousel');
636		});
637
638		$('.slider-prev').on('click', function(e){
639			e.preventDefault();
640			$owlNews.trigger('prev.owl.carousel');
641		});
642
643
644		//Slider-stories
645		$owlStories.owlCarousel({
646			loop:true,
647			margin:115,
648			autoHeight:true,
649			nav:true,
650			items:3,
651			responsive:{
652				320:{
653					items: 1,
654					margin: 0
655				},
656				768:{
657					items: 2,
658					margin: 20
659				},
660				1024:{
661					margin: 40
662				},
663				1240:{
664						
665				}
666			}
667		});
668
669		//Slider People
670		$owlPeople.owlCarousel({
671			loop: true,
672			items: 4,
673			margin: 21,
674			nav: true,
675			responsive: {
676				320: {
677					items: 1
678				},
679				768: {
680					items: 2
681				},
682				1024: {
683					items: 3
684				},
685				1230: {
686					items: 4
687				}
688			}
689		});
690
691		// Sync nav
692		$sync1.on('click', '.owl-next', function () {
693			$sync2.trigger('next.owl.carousel')
694		});
695		$sync1.on('click', '.owl-prev', function () {
696			$sync2.trigger('prev.owl.carousel')
697		});
698
699		// Start Carousel
700		$sync1.owlCarousel({
701			items : 1,
702			animateOut: 'fadeOut',
703			mouseDrag: false,
704			touchDrag: false,
705			autoHeight: true
706		});
707		
708		$sync2.owlCarousel({
709			margin:44,
710			nav : true,
711			items:5,
712			responsive:{
713				320:{
714					items:1
715				},
716				768:{
717					items:3,
718					margin:20
719				},
720				1024:{
721					items:4
722				},
723				1240:{
724
725				}
726			}
727		})
728		.on('click', '.owl-item', function() {
729			var i = $(this).index();
730			$sync2.trigger('to.owl.carousel', [i, duration, true]);
731			$sync1.trigger('to.owl.carousel', [i, duration, true]);
732		});
733	};
734
735	$.fn.equalizeHeight = function() {
736		var maxHeight = 0, itemHeight;
737
738		for (var i = 0; i < this.length; i++) {
739			itemHeight = $(this[i]).outerHeight();
740			if (maxHeight < itemHeight) {
741				maxHeight = itemHeight;
742			}
743		}
744		return this.outerHeight(maxHeight);
745	};
746
747	function surveyField() {
748		$('.gsurvey-likert-choice input:not(.initialize)')
749			.wrap('label')
750			.after('<span></span>')
751			.addClass('initialize');
752	}
753
754	function removeBrFromCheckboxes() {
755		$('.gfield_checkbox li').find('br').remove();
756	}
757
758	$doc.on('gform_post_render', function() {
759		surveyField();
760		removeBrFromCheckboxes();
761	});
762	
763	jQuery(document).on('click select','#header-serach-btn', function(e){
764	  jQuery("#overlay").css("display","block");
765	  e.stopPropagation();
766	   e.preventDefault();
767	  jQuery('#overlay input[name="search"]').focus();
768	   
769	  return false;
770	});
771	
772	jQuery(document).on('keyup','#overlay-search-bar', function(e){
773      if (e.keyCode === 13 && jQuery('#overlay input[name="search"]').val() != '') {
774
775          window.location.href = window.location.origin+'?s='+jQuery('#overlay input[name="search"]').val();
776      }
777      if (e.keyCode === 27 && jQuery('#overlay').is(':visible')) {
778        jQuery("#overlay").css("display","none");
779      }
780    });
781
782	jQuery(document).on('click','#overlay', function(){
783	  jQuery("#overlay").css("display","none"); 
784	});
785	
786	jQuery(document).on('click','#overlay-search-bar',function(e){
787	    e.stopPropagation();
788	    
789	});
790	
791	jQuery(document).on('click','#overlay #search-btn',function(e){
792	    window.location.href = window.location.origin+'/'+'?s='+jQuery('#overlay input[name="search"]').val();
793	    e.stopPropogation();
794	});
795	
796	/*----------------WCAG 2.1 --------------------*/
797	
798    jQuery(document).on('click', ".tabs-nav a[role='tab']" ,function(){  
799        jQuery(".tabs-nav a[role='tab']").attr("aria-selected","false"); //deselect all the tabs 
800        jQuery(this).attr("aria-selected","true");  // select this tab
801        var tabpanid= jQuery(this).attr("aria-controls"); //find out what tab panel this tab controls  
802        var tabpan = jQuery("#"+tabpanid);  
803        jQuery("div[role='tabpanel']").attr("aria-hidden","true"); //hide all the panels 
804        tabpan.attr("aria-hidden","false");  // show our panel
805    });
806    
807    setTimeout(function() {
808  
809        jQuery('.owl-prev').attr('aria-label','Slide left');
810        jQuery('.owl-prev').attr('role','Button');
811        jQuery('.owl-nav > div').attr('tabindex','0');
812        jQuery('.owl-next').attr('aria-label','Slide right');
813        jQuery('.owl-next').attr('role','Button');
814        jQuery('.slider-news .owl-item.active').find('.card').attr('tabindex','0');
815        jQuery('.menu-item-has-children > a').attr('aria-haspopup','true');
816        jQuery('.menu-item-has-children > a').attr('aria-expanded','false');
817        jQuery('.menu-item-has-children > a').attr('role','menuitem');
818        jQuery('.menu-item-has-children > a').attr('href','#');
819        
820    }, 1000);
821    
822     jQuery(document).on('keydown','.menu-item-has-children > a',function(e){
823         var key = e.which;
824        if(key == 13){
825            if(jQuery(this).attr('aria-expanded') == 'false'){
826                
827                jQuery(this).attr('aria-expanded','true');
828                jQuery(this).siblings('ul.sub-menu').css('display','flex');    
829            
830                console.log('true');
831            } else{
832                console.log('false');
833                jQuery(this).attr('aria-expanded','false');
834                jQuery(this).siblings('ul.sub-menu').css('display','');
835            }
836        }
837        
838         
839     });
840    
841    jQuery(document).on('keydown','.owl-nav > .owl-next , .owl-nav > .owl-prev',function(e){
842        var key = e.which;
843        if(key == 13){
844            jQuery(this).click();
845        }
846
847        if(key == 37 ){
848
849             jQuery(this).parent().find('.owl-prev').click();
850        }
851        if(key == 39 ){
852
853            jQuery(this).parent().find('.owl-next').click();
854        }
855	});
856	
857	jQuery(document).on('keydown','.slider-news .slide a',function(e){
858        var key = e.which;
859        jQuery('.slider-news .owl-item').find('.card').attr('tabindex','-1');
860        jQuery('.slider-news .owl-item.active').find('.card').attr('tabindex','0');
861        //slide left
862        if(key == 37){
863            jQuery('.slider-news .slider-prev').click();
864        }
865        //slide right
866        if(key == 39){
867            jQuery('.slider-news .slider-next').click();
868        }
869	});
870	
871})(jQuery, window, document);

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.