PageSourceSearch

https://metrohospitals.com/wp-content/themes/metro-group-of-hospitals/assets/js/script.js

js metrohospitals.com collected 2026-10-02 17:40:31 UTC 10,982 bytes, 588 lines download raw bytes

1//sticky nav
2$(window).scroll(function() {
3	var scroll = $(window).scrollTop();
4	if (scroll >= 80) {
5		$(".header").addClass("sticky_header");
6	} else {
7		$(".header").removeClass("sticky_header");
8	}
9});
10
11var e = $(".network-section-carousel-carousel"),
12	t = $(".network-section-carousel-tabs a");
13e.length &&
14	e.slick({
15	slidesToShow: 4,
16	infinite: !1,
17	prevArrow: ".network-section-carousel-prev",
18	nextArrow: ".network-section-carousel-next",
19	responsive: [
20		{ breakpoint: 1400, settings: { slidesToShow: 3.1, arrows: !1 } },
21		{ breakpoint: 1199, settings: { slidesToShow: 3, arrows: !1 } },
22		{ breakpoint: 767, settings: { slidesToShow: 2, arrows: !1 } },
23		{ breakpoint: 575, settings: { slidesToShow: 1, arrows: !1 } },
24	],
25}),
26	t.on("click", function (t) {
27	var n = $(this).attr("data-slider-index");
28	e.slick("slickGoTo", parseInt(n));
29});
30
31//blogs homepage
32$('.news-box-sli').slick({
33	dots: false,
34	autoplay: false,
35	arrows: false,
36	infinite: !1,
37	speed: 1000,
38	slidesToShow: 4,
39	adaptiveHeight: true,
40	responsive: [
41		{
42			breakpoint: 1199,
43			settings: {
44				slidesToShow: 3,
45				arrows:!1,
46			}
47		},
48		{
49			breakpoint: 991,
50			settings: {
51				slidesToShow: 2,
52			}
53		},
54		{
55			breakpoint: 767,
56			settings: {
57				slidesToShow: 2,
58				dots: true,
59
60			}
61		},
62		{
63			breakpoint: 575,
64			settings: {
65				slidesToShow: 1,
66				dots: true,
67				arrows: true,
68				arrows:false
69			}
70		}
71
72
73	]
74});
75
76// rare cases homepage
77$('.rare-cases-carousel-carousel').slick({
78	dots: false,
79	autoplay: false,
80	arrows: false,
81	infinite: !1,
82	speed: 1000,
83	slidesToShow: 3.1,
84	adaptiveHeight: true,
85	responsive: [
86		{
87			breakpoint: 1199,
88			settings: {
89				slidesToShow: 3,
90				arrows:!1,
91			}
92		},
93		{
94			breakpoint: 991,
95			settings: {
96				slidesToShow: 2,
97				dots: true,
98
99			}
100		},
101		{
102			breakpoint: 480,
103			settings: {
104				slidesToShow: 1.1,
105				dots: true,
106				arrows: true,
107				arrows:false
108			}
109		}
110
111
112	]
113});
114
115// awards homepage
116$('.award-cases-carousel-carousel').slick({
117	dots: false,
118	autoplay: false,
119	arrows: false,
120	infinite: !1,
121	speed: 1000,
122	slidesToShow: 3,
123	adaptiveHeight: true,
124	responsive: [
125		{
126			breakpoint: 1399,
127			settings: {
128				slidesToShow: 3,
129				arrows:!1,
130			}
131		},
132		{
133			breakpoint: 767,
134			settings: {
135				slidesToShow: 2,
136				dots: true,
137
138			}
139		},
140		{
141			breakpoint: 480,
142			settings: {
143				slidesToShow: 1.1,
144				dots: true,
145				arrows: true,
146				arrows:false
147			}
148		}
149	]
150});
151
152
153
154// doctor testimonial
155$('.doctor-testi-slider').slick({
156	// 	dots: false,
157	// 	autoplay: false,
158	// 	arrows: false,
159	// 	infinite: true,
160	// 	speed: 1000,
161	// 	slidesToShow: 1,
162	slidesToShow: 1,
163	slidesToScroll: 1,
164	adaptiveHeight: true,
165	infinite: true,
166	arrows: true,
167	dots: false,
168	centerMode: true,
169
170	responsive: [
171		{
172			breakpoint: 1399,
173			settings: {
174				slidesToShow: 1,
175				arrows:!1,
176			}
177		},
178		{
179			breakpoint: 767,
180			settings: {
181				slidesToShow: 1,
182				dots: true,
183
184			}
185		},
186		{
187			breakpoint: 480,
188			settings: {
189				slidesToShow: 1,
190				dots: true,
191				arrows: true,
192				arrows:false
193			}
194		}
195	]
196});
197
198
199
200
201
202// video doctor single page
203$('.opd-video-slick').slick({
204	dots: true,
205	autoplay: false,
206	arrows: false,
207	infinite: !1,
208	speed: 1000,
209	slidesToShow: 1,
210
211	responsive: [
212		{
213			breakpoint: 1399,
214			settings: {
215				slidesToShow: 1,
216				arrows:!1,
217			}
218		},
219		{
220			breakpoint: 767,
221			settings: {
222				slidesToShow: 1,
223				dots: true,
224
225			}
226		},
227		{
228			breakpoint: 480,
229			settings: {
230				slidesToShow: 1,
231				dots: true,
232				arrows: true,
233				arrows:false
234			}
235		}
236	]
237});
238
239//single doctor blog
240$('.s-d-blog-main').slick({
241	dots: false,
242	autoplay: false,
243	arrows: false,
244	infinite: !1,
245	speed: 1000,
246	slidesToShow: 4,
247
248	responsive: [
249		{
250			breakpoint: 1399,
251			settings: {
252				slidesToShow: 4,
253				arrows:!1,
254			}
255		},
256		{
257			breakpoint: 767,
258			settings: {
259				slidesToShow: 1,
260				dots: true,
261
262			}
263		},
264		{
265			breakpoint: 480,
266			settings: {
267				slidesToShow: 1,
268				dots: true,
269				arrows: true,
270				arrows:false
271			}
272		}
273	]
274});
275
276//expert doctor speciality page
277$('.expert-doctor-carousel').slick({
278	dots: false,
279	autoplay: false,
280	arrows: true,
281	infinite: !1,
282	speed: 1000,
283	slidesToShow: 4,
284
285	responsive: [
286		{
287			breakpoint: 1600,
288			settings: {
289				slidesToShow: 3,
290				arrows:true,
291			}
292		},
293		{
294			breakpoint: 1500,
295			settings: {
296				slidesToShow: 3,
297			}
298		},
299		{
300			breakpoint: 1199,
301			settings: {
302				slidesToShow: 2,
303			}
304		},
305		{
306			breakpoint: 991,
307			settings: {
308				slidesToShow: 3,
309			}
310		},
311		{
312			breakpoint: 767,
313			settings: {
314				slidesToShow: 2,
315			}
316		},
317		{
318			breakpoint: 575,
319			settings: {
320				slidesToShow: 1,
321			}
322		}
323	]
324});
325
326
327
328
329//speciality infrastructure
330$('.s-infrastructure-carousel').slick({
331	dots: true,
332	autoplay: false,
333	arrows: true,
334	infinite: !1,
335	speed: 1000,
336	slidesToShow: 3,
337
338	responsive: [
339		{
340			breakpoint: 1399,
341			settings: {
342				slidesToShow: 3,
343			}
344		},
345		{
346			breakpoint: 767,
347			settings: {
348				slidesToShow: 2,
349			}
350		},
351		{
352			breakpoint: 480,
353			settings: {
354				slidesToShow: 1,
355				dots: true,
356				arrows: true,
357				arrows:false
358			}
359		}
360	]
361});
362
363// video homepage
364$(document).ready(function(){
365	$(".video_large_box").click(function(){
366		console.log("clicked");
367		$(".v_l_img").addClass("active");
368	});
369
370	$(".video_all_right .nav-item").click(function(){
371		console.log("clicked 2");
372		$(".v_l_img").removeClass("active");
373	});
374});
375
376// homepage network section
377$(document).ready(function () {
378	$(".network-section-carousel-tabs li.nav-item a").on("click", function (e) {
379		e.preventDefault();
380		$("a.active").removeClass("active");
381		$(this).addClass("active");
382		$(".location-card-overlay").css({
383			"opacity": "0",
384			"visibility": "hidden"
385		});
386		var filteredClass = $(this).attr('href');
387		if (filteredClass != "all-location") {
388			$(".location-card img").css({
389				"opacity": "1"
390			});
391			$(".location-card ." + filteredClass).css({
392				"opacity": "1"
393			});
394			$(".location-card").parent().css({
395				"opacity": "0.1"
396			});
397			$('.' + filteredClass).parent().css({
398				"opacity": "1"
399			});
400		} else {
401			$(".location-card img").css({
402				"opacity": "1"
403			});
404			$(".location-card").parent().css({
405				"opacity": "1"
406			});
407		}
408	});
409});
410
411$(document).ready(function () {
412    $(".contact-find-location li.nav-item a").on("click", function (e) {
413        e.preventDefault();
414        $("a.active").removeClass("active");
415        $(this).addClass("active");
416        var filteredClass = $(this).attr('href');
417        console.log(filteredClass);
418        if (filteredClass != "all-location") {
419            $(".accordion-item").css({
420                "display": "none"
421            });
422            $(".accordion-item." + filteredClass).css({
423                "display": "block"
424            });
425            $(".accordion-item." + filteredClass + " button").addClass('collapsed');
426            $(".accordion-item." + filteredClass + " .accordion-collapse").removeClass('show');
427            $(".accordion-item." + filteredClass + " button:first").removeClass('collapsed');
428            $(".accordion-item." + filteredClass + " .accordion-collapse:first").addClass('show');
429        } else {
430            $(".accordion-item").css({
431                "display": "block"
432            });	
433			$(".accordion-item button:first").removeClass('collapsed');
434			$(".accordion-item .accordion-collapse:first").addClass('show');
435			$(".accordion-item button:not(:first)").addClass('collapsed');
436			$(".accordion-item .accordion-collapse:not(:first)").removeClass('show');
437        }
438    });
439
440});
441
442// counter
443$('.counter-number').each(function () {
444	var size = $(this).text().split(".")[1] ? $(this).text().split(".")[1].length : 0;
445	$(this).prop('Counter', 0).animate({
446		Counter: $(this).text()
447	}, {
448		duration: 5000,
449		step: function (func) {
450			$(this).text(parseFloat(func).toFixed(size));
451		}
452	});
453});
454
455// date picker
456$(function(){
457	$('#datepicker').datepicker();
458});
459
460$(".h-chairman-img").click(function(){
461	console.log('video');
462// 	$(".youtube-link").show();
463	$(this).siblings('.youtube-link').show();
464	$(this).hide();
465
466});
467
468// hospital network page
469
470
471// homepage network section
472$(document).ready(function () {
473	$(".network-page-carousel-tabs li.nav-item a").on("click", function (e) {
474		e.preventDefault();
475		$("a.active").removeClass("active");
476		$(this).addClass("active");
477		var filteredClass = $(this).attr('href');
478		if (filteredClass != "all-location") {
479			$('.location-card').parent().parent().css({
480				"display": "none"
481			});
482			$('.' + filteredClass).parent().parent().css({
483				"display": "block"
484			});
485		} else {
486			$('.location-card').parent().parent().css({
487				"display": "block"
488			});
489		}
490	});
491});
492
493
494
495// single speciality
496
497
498//expert doctor speciality page
499$('.news-box-slick').slick({
500	dots: false,
501	autoplay: false,
502	arrows: false,
503	infinite: !1,
504	speed: 1000,
505	slidesToShow: 4,
506
507	responsive: [
508		{
509			breakpoint: 1399,
510			settings: {
511				slidesToShow: 4,
512			}
513		},
514		{
515			breakpoint: 1199,
516			settings: {
517				slidesToShow: 3,
518			}
519		},
520		{
521			breakpoint: 767,
522			settings: {
523				slidesToShow: 2,
524			}
525		},
526		{
527			breakpoint: 575,
528			settings: {
529				slidesToShow: 1,
530			}
531		}
532	]
533});
534
535
536$(".emergency-trigger-btn").click(function(){
537  $(this).parent().toggleClass('is-open');
538});
539
540$(".emergency-trigger-close").click(function(){
541  $(this).parent().parent().removeClass('is-open');
542});
543
544
545// $(".emergency-trigger-btn").mouseover(function(){
546// 	$(this).parent().addClass('is-open');
547// });
548
549// $(".emergency2").mouseleave(function(){
550//   $(this).parent().parent().parent().removeClass('is-open');
551// });
552
553document.addEventListener('DOMContentLoaded', function() {
554    // Find all elements with the class 'sel_def'
555    var sel_defs = document.querySelectorAll('.sel_def');
556    
557    // Loop through each element
558    sel_defs.forEach(function(sel_def) {
559        // Disable the first option
560        sel_def.options[0].disabled = true;
561    });
562});
563
564
565
566$(document).ready(function() {
567    $('#pac_speciality').change(function() {
568        if ($(this).val() === "PET-CT") {
569            $('#pac_package').html('<option value="default" disabled>Select Package</option><option value="Whole Body PET-CT Scan">Whole Body PET-CT Scan</option><option value="PSMA PET CT Scan">PSMA PET CT Scan</option><option value="PET-CT Scan with Triple Phase Abdomen">PET-CT Scan with Triple Phase Abdomen</option>');
570        }
571		if ($(this).val() === "Truebeam Linac") {
572            $('#pac_package').html('<option value="default" disabled>Select Package</option><option value="Intensity-modulated radiotherapy (IMRT)">Intensity-modulated radiotherapy (IMRT)</option><option value="Image-guided radiotherapy (IGRT)">Image-guided radiotherapy (IGRT)</option><option value="Stereotactic radiosurgery (SRS)">Stereotactic radiosurgery (SRS)</option><option value="Stereotactic body radiotherapy (SBRT)">Stereotactic body radiotherapy (SBRT)</option><option value="Deep Inspiration breath holding radiotherapy (DIBH)">Deep Inspiration breath holding radiotherapy (DIBH)</option>');
573        }
574    });
575});
576
577
578
579
580
581
582
583
584
585
586
587
588      

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.