PageSourceSearch

https://borderanimalhospital.com/scripts/main.js

js borderanimalhospital.com collected 2026-10-08 22:04:00 UTC 26,556 bytes, 1,054 lines download raw bytes

1var themeLayout = {
2
3	root : "",
4	customFields : {},
5
6	initNavigationToggle : function () {
7
8		$('.menu-toggle').unbind('click').click(function (event) {
9			event.stopPropagation();
10			event.preventDefault();
11			var body = $('body').toggleClass('nav-open');
12		})
13
14	},
15
16	init: function(root, customFields) {
17		this.root = root;
18		this.customFields = customFields;
19
20		this.initNavigationToggle();
21
22	}
23};
24
25//this theme needs to propagate scroll events to body, for lazy load to work
26$('.main-content').scroll(function () {
27	$('body').trigger('scroll');
28});
29
30
31$(function(){
32
33	/*********CUSTOMIZE ANIMATION PLUGIN***********/
34	$.fn.royAnime = function(options){
35		var royAnime = {
36			init: function(el){
37
38				this.$el = $(el);
39				this.$elCarousel = this.$el.find('.carousel');
40
41				this.settings = $.extend({
42					useClass: '.to-animate',
43					title:'.big-title',
44					sub:'.sub-title',
45					button:'.btn-wrap',
46					useClassType: 'fadeIn',
47					titleType:'fadeInUp',
48					subType:'fadeInUp',
49					buttonType:'fadeInUp',
50					splitCharacter:false,
51					splitCharacterTarget: 'h1',
52					splitCharacterClass: 'to-animate'
53				}, options);
54
55
56				this.setAnimation() //Necessary;
57				this.setType();
58
59				if( this.settings.titleType ) {
60					this.setTitleType();
61				}
62				if( this.settings.buttonType ) {
63					this.setButtonType();
64				}
65
66				if( this.settings.subType ) {
67					this.setSubType();
68				}
69
70				if ( this.settings.splitCharacter == true ) {
71					this.splitCharacter();
72				}
73
74			},
75
76			splitCharacter:function() {
77				var thisSplitCharacterClass = this.settings.splitCharacterClass,
78					thisSplitCharacterTarget = this.settings.splitCharacterTarget;
79
80				this.$elCarouselItem = this.$elCarousel.find('.item');
81				this.$elCarouselItem.each(function() {
82					var targetEl = $(this).find('h1').text();
83					var eachChar = targetEl.replace(/\w/g,function(eachCharacter){
84						return '<span class="' + thisSplitCharacterClass + '">'+ eachCharacter +'</span>';
85					})
86					$(this).find( thisSplitCharacterTarget ).html(eachChar);
87					$(this).find( thisSplitCharacterTarget + " ." + thisSplitCharacterClass )
88					.css('display','inline-block')
89				});
90			},
91			setType:function() {
92				var dataAttr = 'animated ' + this.settings.useClassType;
93				var $el = this.settings.useClass;
94
95				this.$elCarousel.find('.item').each(function(){
96					var counter = 1;
97					$(this).find($el).each(function(){
98						$(this).attr('data-animation', dataAttr);
99						$(this).css('animation-delay', (counter / 2) + 's');
100						$(this).css('animation-duration', ( (4 - counter) / 3 ) + 's');
101						counter += 1;
102					});
103				});	
104
105			},
106			setTitleType:function() {
107				var dataAttr = 'animated ' + this.settings.titleType,
108					$el = this.settings.title;
109				this.$elCarousel.find('.item').each(function(){
110					$(this).find($el).each(function(){
111						$(this).attr('data-animation', dataAttr);
112					});
113				});	
114			},
115			setButtonType:function() {
116				var dataAttr = 'animated ' + this.settings.buttonType,
117					$el = this.settings.button;
118				this.$elCarousel.find('.item').each(function(){
119					$(this).find($el).each(function(){
120						$(this).attr('data-animation', dataAttr);
121					});
122				});	
123			},
124			setSubType:function() {
125				var dataAttr = 'animated ' + this.settings.subType,
126					$el = this.settings.sub;
127				this.$elCarousel.find('.item').each(function(){
128					$(this).find($el).each(function(){
129						$(this).attr('data-animation', dataAttr);
130					});
131				});	
132			},
133			setAnimation:function() {
134				function animateThis(elems) {
135					var animEndEv = "webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend";
136					elems.each(function() {
137						var $this = $(this),
138							$animationType = $this.data("animation");
139						$this.addClass($animationType).one(animEndEv, function() {
140							$this.removeClass($animationType);
141						});
142					});
143				}
144				var $thisCarousel = this.$elCarousel,
145					$firstAnimatingElems = $thisCarousel
146				.find(".item:first")
147				.find("[data-animation ^= 'animated']");
148
149				$thisCarousel.carousel();
150
151				animateThis($firstAnimatingElems);
152
153				$thisCarousel.on("slide.bs.carousel", function(e) {
154					var $animatingElems = $(e.relatedTarget).find(
155						"[data-animation ^= 'animated']"
156					);
157					animateThis($animatingElems);
158				});
159			}
160		}
161		return this.each(function(){
162			royAnime.init(this);
163		});
164	}
165
166
167	/*********CUSTOMIZE CAROUSEL PLUGIN***********/
168	$.fn.themeCarousel = function(options){
169		var themeCarousel = {
170			init: function(el){
171
172				this.$slider = $(el);
173				this.$slidesContainer = this.$slider.find('.carousel');
174				this.$slides = this.$slidesContainer.find('.item').length;
175				this.$indicatorsWrap = this.$slider.find('.ry-indicator');
176
177				this.settings = $.extend({ //Add Options Here
178					leftBtn:this.$slider.find(".button-prev"),
179					rightBtn:this.$slider.find(".button-next"),
180					dots:false,
181					nav:false,
182					itemBg:false,
183					setBgTarget:"",
184					appendControls:false,
185				}, options);
186
187
188				this.initNav();
189				this.setCustomSlideBg();
190
191				if(this.settings.itemBg){
192					this.setItembg();
193				}
194				if(this.settings.dots){
195					this.initIndicator();
196					this.activeIndicator();
197				}
198				if(this.settings.appendControls){
199					this.appendControls();
200				}
201
202			},
203			bindEvents:function(){
204				$(this.settings.leftBtn).on('click',this.prev.bind(this));
205				$(this.settings.rightBtn).on('click',this.next.bind(this));
206				$(this.$slidesContainer).on('slid.bs.carousel',this.setCustomSlideBg.bind(this));
207
208				if(this.settings.dots){
209					$(this.$slidesContainer).on('slid.bs.carousel',this.activeIndicator.bind(this));
210				}
211
212
213			},
214			prev:function(){
215				this.$slidesContainer.carousel('prev');
216				if(this.settings.dots){
217					this.activeIndicator();
218				}
219			},
220			next:function(){
221				this.$slidesContainer.carousel('next');
222				if(this.settings.dots){
223					this.activeIndicator();
224				}
225			},
226			initNav: function(){
227				this.bindEvents();
228			},
229			initIndicator:function(){
230				for(var i = 1; i <= this.$slides; i++ ){
231					$(this.$indicatorsWrap).append("<span></span>");
232				}
233				this.$indicator = this.$slider.find('.ry-indicator span');
234			},
235			activeIndicator:function(){
236				var _this = this;
237				this.$activeSlide = this.$slidesContainer.find('.item.active').index();
238
239				this.$indicator.each(function(i){
240					if( _this.$activeSlide == i ){
241						$(this).addClass('active').siblings().removeClass('active');
242					}
243					$(this).click(function(){
244						$(_this.$slidesContainer).carousel(i);
245						$(this).addClass('active').siblings().removeClass('active');
246					});
247				});
248			},
249			setItembg:function(){
250				var target = ( this.settings.setBgTarget !=="") ? this.settings.setBgTarget : ".item" ;
251
252
253				if(this.settings.itemBg && this.settings.setBgTarget !="" ){
254					$(this.$slidesContainer).find(".item").each(function(i){
255						var src = $(this).find('img').attr('src');
256						$(this).find(target).css('background-image','url('+src+')');
257					});
258				}else{
259					$(this.$slidesContainer).find(".item").each(function(i){
260						var src = $(this).find('img').attr('src');
261						$(this).css('background-image','url('+src+')');
262					});
263
264				}
265
266			},
267			setCustomSlideBg:function(){
268				var _this = this;
269
270				this.$slideBgSrc = this.$slidesContainer.find('.item.active img').attr('src');
271
272				$(this.$slider).find(this.settings.setBgTarget).css('background-image','url('+ this.$slideBgSrc +')')
273
274			},
275			appendControls:function(){
276				var slider = this.$slider;
277				var targetSlide = this.$slidesContainer
278				$(this.$slider).find('.ry-indicator').prepend('<a href="javascript:;" class="ry-play-btn"></a>');
279				$(this.$slider).find('.ry-indicator').append('<a href="javascript:;" class="ry-pause-btn"></a>');
280				$(slider).find('.ry-play-btn').click(function(){
281					$(targetSlide).carousel('cycle');
282					console.log(slider)
283
284				});
285				$(slider).find('.ry-pause-btn').click(function(){
286					$(targetSlide).carousel('pause');
287				});
288			},
289
290		}
291
292		return this.each(function(){
293			themeCarousel.init(this);
294		});
295	}
296
297	/******CUSTOM THEME SETTINGS******/
298	var themeSettings= {
299		init: function(){
300			var pageName = document.getElementsByTagName('body')[0].getAttribute('data-page-name');
301			//intialize settings
302			this.initCarousel();
303			this.initRoyAnime();
304			this.initRemoveBurger();
305			this.initInstaFeed();
306			this.initMobileMenu();
307			this.initElBg();
308			this.initElLink();
309			this.initMultiLevelMenu();
310			this.initChangeFontawesome();
311			this.initDeferIframe();
312			this.initFormBtn();
313			this.initTruncate();
314			this.initArcticleSb();
315			this.initActiveSb();
316			this.initRandomBanner();
317			this.initNoResult();
318			this.initAccordion();
319			this.initScrollFixed();
320			this.initPdfLink();
321			this.initRespondTitle();
322			//this.initAOS();
323			this.initReviewStars();
324			this.initScrollLink();
325			this.initMod6Fix();
326			this.initFixMobileMenuDropdown();
327
328			if($('#map').length > 0){
329				this.initMap();
330			}
331		},
332		initMap: function(){
333			var map;
334			var center = {
335				//lat:,
336				//lng:
337			};
338			map = new google.maps.Map(document.getElementById('map'), {
339				center: center,
340				zoom: 14
341			});
342			var marker = new google.maps.Marker({position: center, map: map});
343		},
344		
345	
346		
347		initElBg: function(){
348			$('.ry-el-bg').each(function(){
349				var src = ($(this).find('img.ry-bg').length > 0) ? $(this).find('img.ry-bg').attr('src') : $(this).find('img').attr('src') ;
350				$(this).css('background-image','url('+src+')');
351			});
352		},
353		initElLink:function(){
354			$('.ry-el-link').each(function(){
355				$(this).click(function(){
356					var href = $(this).find('a').attr('href');
357					window.location.href = href;
358				});
359			});
360		},
361		initDeferIframe: function() {
362			var vidDefer = document.getElementsByTagName('iframe');
363			for (var i=0; i<vidDefer.length; i++) {
364				if(vidDefer[i].getAttribute('data-src')) {
365					vidDefer[i].setAttribute('src',vidDefer[i].getAttribute('data-src'));
366				}
367			}
368		},
369		initFormBtn: function() {
370			$('.form-btn').click(function(){
371				$(this).parents("form").submit();
372			});
373		},
374		initRoyAnime: function() {
375			$('.module-45').royAnime({
376				useClass: '.ry-text',
377				title:'.ry-section-title',
378				sub:'.ry-section-sub-title',
379				useClassType: 'fadeInUp'
380			});		
381		},
382		initCarousel:function() {
383
384
385			$('.module-91').themeCarousel({
386				itemBg:true,
387			})
388
389			$('.module-90').themeCarousel()
390
391			$('.module-170').themeCarousel({
392				nav:true
393			})
394
395
396			var partnersSwiper = new Swiper('.doctors-slider', {
397				speed: 400,
398				spaceBetween: 30,
399				slidesPerView: 4,
400				loop: true,
401				navigation: {
402					nextEl: '.swiper-button-next',
403					prevEl: '.swiper-button-prev',
404				},
405				breakpoints: {
406					
407					1600: {
408						slidesPerView: 4,
409						spaceBetween: 10,
410					},
411					1199: {
412						slidesPerView: 2,
413						spaceBetween: 20,
414					},
415					768: {
416						slidesPerView: 2,
417						spaceBetween: 20,
418					},
419					640: {
420						slidesPerView: 1,
421						spaceBetween: 20,
422					}
423				}
424			})
425			
426			var partnersSwiper = new Swiper('.suites-slider', {
427				speed: 400,
428				spaceBetween: 30,
429				slidesPerView: 3,
430				loop: true,
431				navigation: {
432					nextEl: '.swiper-button-next',
433					prevEl: '.swiper-button-prev',
434				},
435				breakpoints: {
436					
437					991: {
438						slidesPerView: 2,
439						spaceBetween: 20,
440					},
441					500: {
442						slidesPerView: 1,
443					}
444				}
445			})
446			
447			var clinicSwiper = new Swiper('.clinic .swiper-container', {
448				speed: 400,
449				spaceBetween: 0,
450				slidesPerView: 1,
451				loop: true,
452				navigation: {
453					nextEl: '.swiper-button-next',
454					prevEl: '.swiper-button-prev',
455				},
456				breakpoints: {
457					1024: {
458						slidesPerView: 1,
459						spaceBetween: 0,
460					},
461					768: {
462						slidesPerView: 1,
463						spaceBetween: 30,
464					},
465					640: {
466						slidesPerView: 1,
467						spaceBetween: 0,
468					}
469				}
470			})
471			
472			var partnersSwiper = new Swiper('.pet-resort-slider', {
473				speed: 400,
474				spaceBetween: 30,
475				slidesPerView: 3,
476				loop: true,
477				navigation: {
478					nextEl: '.swiper-button-next',
479					prevEl: '.swiper-button-prev',
480				},
481				breakpoints: {
482					
483					1600: {
484						slidesPerView: 3,
485						spaceBetween: 10,
486					},
487					1199: {
488						slidesPerView: 3,
489						spaceBetween: 20,
490					},
491					768: {
492						slidesPerView: 2,
493						spaceBetween: 20,
494					},
495					640: {
496						slidesPerView: 1,
497						spaceBetween: 20,
498					}
499				}
500			})
501			
502			var teamSwiper = new Swiper('.our-team', {
503				speed: 400,
504				spaceBetween: 30,
505				slidesPerView: 2,
506				loop: true,
507				navigation: {
508					nextEl: '.swiper-button-next',
509					prevEl: '.swiper-button-prev',
510				},
511				breakpoints: {
512					
513					1600: {
514						slidesPerView: 2,
515						spaceBetween: 10,
516					},
517					1199: {
518						slidesPerView: 2,
519						spaceBetween: 20,
520					},
521					768: {
522						slidesPerView: 2,
523						spaceBetween: 20,
524					},
525					640: {
526						slidesPerView: 1,
527						spaceBetween: 20,
528					}
529				}
530			})
531
532			
533
534		},
535		initTruncate:function(){
536			$('.ry-list-item').each(function(){
537				var txt = $(this).find('.ry-list-excerpt p:first-child').text();
538				if(txt.length > 220){
539					txt = txt.substring(0,220);
540					txt += '...';
541				}
542				$(this).find('.ry-list-excerpt').html(txt);
543			});
544		},
545		initArcticleSb:function(){//Dynamic Sidebar Articles
546			$('.ry-drop-nav').append('<ul></ul>');
547
548			$("#accordion .ry-link-item").each(function(){
549
550				$(this).attr('id',$(this).attr("id").replace(/[!@#$%^&*]/g,""));
551
552				var parentID = $(this).attr('id');
553
554				$('.ry-dropdown-list .ry-dropdown').each(function(){
555					var li = $(this).find('li');
556
557					var dataAttr = $(this).find('li').attr("data-class");
558
559					var dataClass = (dataAttr != undefined) ? $(this).find('li').attr('data-class',dataAttr.replace(/[!@#$%^&*\s]/g,"")) : "";
560
561					if($(dataClass).attr('data-class') == parentID) {
562						$(li).appendTo(".ry-link-wrp"+" "+"#"+parentID + " ul");
563					}
564				});
565
566			});
567
568			$('.ry-drop-nav').click(function(){
569				$(this).toggleClass('open').siblings().removeClass('open');
570				$(this).find('ul').slideToggle();
571				$(this).siblings('.ry-drop-nav').find('ul').slideUp();
572			});
573		},
574		initActiveSb:function(){
575			$('.ry-drop-nav').each(function(){
576				var url = window.location.href ;
577				var path = url.substr(url.lastIndexOf('/') + 1);
578				$(this).find('li a').each(function(){
579					var currentPath  = $(this).attr('href');
580					currentPath = currentPath.substr(currentPath.lastIndexOf('/') + 1);
581					if(path == currentPath){
582						$(this).addClass('active');
583						$(this).parents('.ry-drop-nav').addClass('open');
584						$(this).parents('ul').css('display','block');
585					}
586				});
587			});
588		},
589		Shuffle:function(){
590
591			var whichToShow = Math.floor(Math.random() * $('.ry-bnr-wrp').length);
592
593			return whichToShow;
594
595		},
596		initRandomBanner:function(){
597
598			var show =  this.Shuffle();
599
600			var len = $('.ry-bnr-wrp').length;
601
602			if( $("#ry-pg-banner").length ){
603
604				var rytitle = $('.ry-pg-title');
605
606				var current = localStorage.getItem('current_banner') == null  ? localStorage.setItem('current_banner',show) : localStorage.getItem('current_banner');
607
608				$('.ry-bnr-wrp').eq(show).append(rytitle);
609
610				if( current != show){
611
612					$('.ry-bnr-wrp').hide().eq(show).fadeIn(100);
613
614					localStorage.setItem('current_banner',show)
615
616				}else{
617
618					if(len == 1) return;
619
620					var shuffling  = true; 
621
622					while(shuffling){
623
624						show =  this.Shuffle();
625
626						if( show !=  localStorage.getItem('current_banner') ){
627
628							//console.log('shuffling',`${show} current:${current}`);
629
630							$('.ry-bnr-wrp').hide().eq(show).fadeIn(100);
631
632							$('.ry-bnr-wrp').eq(show).append(rytitle);
633
634							localStorage.setItem('current_banner',show);
635
636							shuffling = false;
637
638						}
639
640					}
641
642				}
643			}
644
645
646		},
647
648
649		initScrollFixed:function(){
650			/* scroll event */
651			$( window ).scroll(function() {
652				var height = $(window).scrollTop();
653				var header = $('.ry-sticky-menu');
654
655				if(height  > 150) {
656					$('.ry-sticky-menu').addClass('fixed');
657
658				}else{
659					$('.ry-sticky-menu').removeClass('fixed');
660				}
661
662			});
663		},
664
665		initPdfLink:function(){
666			$('.ry-pdf-link').click(function(e){
667				e.preventDefault();
668				var href = $(this).attr('href');
669				window.open('https://docs.google.com/viewerng/viewer?url='+href,'_blank')
670			});
671
672		},
673		initChangeFontawesome:function(){		
674			//google 
675			var fa = document.querySelectorAll('.fa-google-plus');
676			for ( var i = 0; i < fa.length; i++ ) {
677				fa[i].classList.add('fa-google')
678				fa[i].classList.remove('fa-google-plus')
679			}
680		},
681		initMultiLevelMenu:function(){
682
683			$('.ry-nav .dropdown').hover(function(){
684				$(this).find('.dropdown-menu').addClass('hover');
685			},function(){
686				$(this).find('.dropdown-menu').removeClass('hover');
687			});
688
689			$('.ry-nav .third-level-container').hover(function(){
690				$(this).find('.third-level-dropdown').addClass('third-hover');
691			},function(){
692				$(this).find('.third-level-dropdown').removeClass('third-hover');
693			});
694
695			$('.ry-nav .fourth-level-container').hover(function(){
696				$(this).find('.fourth-level-dropdown').addClass('fourth-hover');
697			},function(){
698				$(this).find('.fourth-level-dropdown').removeClass('fourth-hover');
699			});
700			
701			
702			/*
703						---third level menu class structure---
704						parent li => third-level-container dental
705						children => third-level dental
706
707						---Fourth level menu class structure---
708						parent li => third-level dental fourth-level-container dental_implants
709						children => fourth-level dental_implants
710						*/
711
712			$('.ry-nav .fourth-level-container').each(function(){
713				var ul = $('<ul></ul>').addClass('fourth-level-dropdown'),
714					clss = $(this).attr('class');
715
716				clss = clss.split(' ');
717
718				$(this).siblings('.fourth-level.'+clss[3]).appendTo(ul)
719				$(this).append(ul);
720			});
721
722			$('.ry-nav .third-level-container').each(function(){
723				var ul = $('<ul></ul>').addClass('third-level-dropdown'),
724					clss = $(this).attr('class');
725
726				clss = clss.split(' ');
727
728				$(this).siblings('.third-level.'+clss[1]).appendTo(ul)
729				$(this).append(ul);
730			});
731
732		},
733		initNoResult:function(){
734			var result = $('.result-box .search-result').length;
735			if(! result > 0){
736				$('.no-result').css('display','block');
737			}
738		},
739		initAccordion:function(){
740			/*accordion*/
741			$( ".ry-accordion" ).accordion({
742				header: ".ry-heading",
743				active:false ,
744				collapsible: true,
745				heightStyle: "content" 
746   				 		
747			});
748
749		},
750		initRespondTitle:function(){
751			$('.ry-pg-title h1').html(function(i, html) {
752				if(html.length > 20){
753					$(this).addClass('ry-responsive-title');
754				}
755			});
756		},
757		initMobileMenu:function(){
758
759			var pos = ($('.module-91').hasClass('style2') ? 'position-left' : 'position-right');
760
761			var links = {
762				'facebook':{"link":"https://www.facebook.com/borderanimalhospital","fa":"fab fa-facebook-square"},
763				'twitter':{"link":"","fa":"fab fa-twitter-square"},
764				'linkedin':{"link":"","fa":"fab fa-linkedin"},
765				'google':{"link":"https://goo.gl/maps/Lqnt7kUmcZRDEeSG9","fa":"fab fa-google-plus-square"},
766				'instagram':{"link":"https://www.instagram.com/borderanimalhospital/","fa":"fab fa-instagram"},
767				'Yelp':{"link":"","fa":"fab fa-yelp"},
768				'rss':{"link":"","fa":"fas fa-rss-square"},
769				'pinterest':{"link":"","fa":"fab fa-pinterest-square"},
770				'youtube':{"link":"","fa":"fab fa-youtube-square"}
771			}
772
773			/* INITIALIZE MOBILE MENU */
774			var iconBarEnable = ( $(document).width() >= 992) ? false : true;
775			var menuSettings = {
776				enableIconBar:false,
777				iconbarTopContent:[
778					"<a href='./index'><i class='fa fa-home'></i></a>",
779				],
780				iconbarBottomContent: [],
781				appendCloseBtn:true,
782
783				//Menu Extensions
784				menuPos:pos, // position-right, position-left
785				menuthemeColor:"theme-black", // default:theme-light ,theme-dark, theme-white ,theme-black
786				menuEffect:"", // fx-menu-zoom , fx-menu-slide , fx-menu-zoom
787				menuZposition:"position-front",  // position-back , position-front
788				menuPanelSlideEffect:"fx-panels-slide-up", // fx-panels-none, fx-panels-slide-0, fx-panels-slide-100 , fx-panels-slide-up ,fx-panels-zoom
789				menuListItemSlideEffect:"fx-listitems-drop", // fx-listitems-drop , fx-listitems-slide , fx-listitems-fade , fx-listitems-slide
790				menuBorderOffset:"border-offset", // border-full , border-offset , border-none
791				menuPageDim:""  // pagedim-black , pagedim-white
792			}
793
794			if( Object.keys(links).length > 0 ){
795
796				$.each(links, function(key, value) {
797					if( links[key].link != ""){
798						menuSettings.iconbarBottomContent.push("<a href="+links[key].link+">"+ "<i class=\""+ links[key].fa +"\"></i></a>");
799					}
800
801				});
802
803			}
804
805			var menu =	$("#mobile_menu").mmenu({
806
807				"iconbar": {
808					"add": menuSettings.enableIconBar,
809					"top": menuSettings.iconbarTopContent,
810					"bottom": menuSettings.iconbarBottomContent,
811				},
812				sidebar: {
813
814				},
815
816				extensions: [
817					menuSettings.menuPos,
818					menuSettings.menuthemeColor,
819					menuSettings.menuEffect,
820					menuSettings.menuZposition,
821					menuSettings.menuPanelSlideEffect,
822					menuSettings.menuListItemSlideEffect,
823					menuSettings.menuPageDim,
824				]
825			});
826
827			if(menuSettings.appendCloseBtn){
828				$('<button class="hamburger hamburger--collapse" type="button"> <div class="flex-btn"> <span class="hamburger-box"><span class="hamburger-inner"></span></span> </div> </button>').appendTo('#menu_container')
829			}
830
831			if (menu.data("mmenu")) {
832				var api = menu.data("mmenu");
833				var icon = $('button.hamburger');
834
835				icon.on("click", function () {
836					if ($(this).hasClass('is-active')) {
837						api.close();
838					} else {
839						api.open();
840					}
841				});
842
843
844				api.bind("open:finish", function () {
845					setTimeout(function () {
846						icon.addClass("is-active");
847					}, 100);
848				});
849				api.bind("close:finish", function () {
850					setTimeout(function () {
851						icon.removeClass("is-active");
852					}, 100);
853				});
854
855			}
856
857		},
858		initPhoneDynamicFormat:function(){
859			$('.ry-phone-dynamic')
860			.text(function(i, text) { return text.replace(/(\d\d\d)(\d\d\d)(\d\d\d\d)/, '($1) $2-$3'); });
861		},
862		initReviewStars:function(){
863
864			$('.blank-star').hover(function() {
865				$(this).toggleClass('star-active');
866				$(this).prevAll().toggleClass('star-active');
867			});
868
869			$('.blank-star').each(function(index) {
870				$(this).click(function() {
871					$('.blank-star').removeClass('star-active, star-rated');
872					$(this).addClass('star-rated');
873					$(this).prevAll().addClass('star-rated');
874					$('input#rating').val(index+1);
875				});
876			});
877		},
878		initAOS:function(){
879			AOS.init();
880		},
881		initTextTruncate:function(){
882			var _this = this;
883			$('#ry-section-team .item p').each(function(){
884
885				var txt = $(this).text();
886
887				$(this).text(_this.textTruncate(txt,250));
888
889			});
890
891		},
892		textTruncate:function(txt , len){
893
894			if(txt.length > len){
895
896				txt = txt.substring(0,len);
897
898				txt += '...';
899
900			}
901
902			return txt;
903
904		},
905		initSmootAnchorLink:function(offset, target){
906			var	target = $(window.location.hash) ;
907
908			if (target.length) {
909				console.log(target.offset().top);
910				var	target = $(window.location.hash) ;
911				var targetOffset = target.offset().top - 1140;
912				$('html,body')
913				.animate({scrollTop: targetOffset}, 1000);
914				return false;
915			}
916
917		},
918		initScrollLink:function(){
919
920			$('.arrow__wrapper').click(function() {
921
922				if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
923					&& location.hostname == this.hostname) {
924					var $target = $(this.hash);
925					$target = $target.length && $target
926					|| $('[name=' + this.hash.slice(1) +']');
927					if ($target.length) {
928						var targetOffset = $target.offset().top -100;
929						$('html,body')
930						.animate({scrollTop: targetOffset}, 1000);
931						return false;
932					}
933				}
934			});
935
936
937		},
938		initryOpenLink:function(){
939			var _this = this;
940
941			$('.ry-open-link a').on('click',function(e){
942
943				e.preventDefault();
944
945				var link = $(this).attr('href');
946
947				_this.initOpenLinkNewTab(link);
948
949			});
950
951		},
952		initOpenLinkNewTab:function(link){
953
954			window.open(link, '_blank');
955
956		},
957		initMod6Fix:function(){
958			$('.module-6').each(function(){
959				var len = $(this).find('li').length;
960				if(len % 2 == 0){
961					$(this).addClass('remove-last');
962				}
963			});
964
965
966		},
967		initInstaFeed:function(){
968			if( document.getElementById('instafeed') !== null ){
969
970				var _this = this,
971					appenChild = false,
972					loadButton = document.getElementById('load-more');
973
974				var feed = new Instafeed({
975					get: 'user',      
976					userId: '15512655178',   // get UserId here https://codeofaninja.com/tools/find-instagram-user-id
977					accessToken:'15512655178.1677ed0.7a632c8d4c6c4714b9ee4860be638142', //get access token here https://instagram.pixelunion.net/
978					limit:8,
979					template: '<div class="flex-item">'+
980					'<a class="animation" href="{{link}}" target="_blank">' +
981					'<div class="ry-el-bg">'+
982					'<img class="img-responsive" src="{{image}}" /></div></a>'+
983					'<div class="ry-desc">{{caption}}</div>'+
984					'<a class="overlay" href="{{link}}" target="_blank"></a>'+
985					'</div>',
986					resolution:'standard_resolution',
987					success:function(json){
988						var len = json.data.length;
989						if(len % 4 == 2){
990							appenChild = true;
991						}
992
993					},
994					after:function(e){
995						_this.initElBg();
996						if(appenChild){
997							var item = document.createElement('div');
998							item.setAttribute('class','flex-item');			
999							document.getElementById('instafeed').appendChild(item);
1000						}
1001						if (!this.hasNext()) {
1002							loadButton.style.display = "none";
1003						}
1004					}
1005				});
1006				if(loadButton != null ){
1007					loadButton.addEventListener('click', function() {
1008						feed.next();
1009					});		
1010				}
1011
1012
1013				feed.run();
1014
1015			}
1016		},
1017		initRemoveBurger:function(){
1018			if($('.module-43').length > 0){
1019
1020				$('.module-91').addClass('classic-menu-active');
1021			}
1022
1023
1024		},
1025		initFixMobileMenuDropdown:function(){
1026			$(".mob-menu").each(function(){
1027				$(this).find("a.dropdown").click(function(e){
1028					e.preventDefault();
1029					$(this).siblings(".mm-btn_next").trigger("click")
1030				});
1031			});
1032		},
1033
1034	}
1035
1036	themeSettings.init();
1037	
1038	$(document).on('click', '.module-43 .ry-right .ry-menu .nav-menu li.pet-resort a, #menu_container .mm-listview .mm-listitem:nth-child(5) a', function(e){ 
1039		e.preventDefault();
1040		window.open('pet-resort.html', '_blank');
1041	});
1042
1043});
1044
1045
1046
1047document.addEventListener("DOMContentLoaded", () => {
1048  if (window.location.pathname.includes("care-credit")) {
1049    document.querySelectorAll("#ry-pg-body h2").forEach(el => {
1050      el.style.setProperty("color", "#262626", "important");
1051      el.style.setProperty("font-size", "26px", "important");
1052    });
1053  }
1054});

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.