PageSourceSearch

https://www.tourmyindia.com/states/himachal/js/home.js

js tourmyindia.com collected 2026-10-02 04:12:54 UTC 10,978 bytes, 558 lines download raw bytes

1$('.tour-left-slide').slick({
2	dots: false,
3	infinite: true,
4	speed: 300,
5	autoplay: true,
6	fade: true,
7	cssEase: 'linear'
8});
9$('.img-box').slick({
10	dots: false,
11	infinite: true,
12	speed: 300,
13	autoplay: true,
14	cssEase: 'linear'
15});
16$('.moreless-button').click(function () {
17	$(this).parent().find('.moretext').slideToggle('slow');
18	if ($(this).text() == "Less") {
19		$(this).text("Show More")
20	} else {
21		$(this).text("Less")
22	}
23});
24$('.about-area-incredible').click(function () {
25	$('.about-pera-graph').toggleClass('active');
26});
27$(".international-radio-box button").click(function () {
28	$(".international-radio-box button").removeClass('is-active');
29	$(this).toggleClass("is-active");
30});
31$(".about-area-incredible h3").click(function () {
32	$(this).toggleClass("highlight");
33});
34$('.blog h3').click(function () {
35	$('.blog-area').toggleClass('active');
36});
37$(".blog h3").click(function () {
38	$(this).toggleClass("highlight");
39});
40$('.faq h3').click(function () {
41	$('.accordion-container').toggleClass('active');
42});
43$(".faq h3").click(function () {
44	$(this).toggleClass("highlight");
45});
46$('.why-chosse-main h3').click(function () {
47	$('.box').toggleClass('active');
48});
49$(".why-chosse-main h3").click(function () {
50	$(this).toggleClass("highlight");
51});
52$('.Popular_tmi h3').click(function () {
53	$('.box-1').toggleClass('active');
54});
55$(".Popular_tmi h3").click(function () {
56	$(this).toggleClass("highlight");
57});
58$('.footer-box h3').click(function () {
59	$(this).closest('.footer-box').find('ul').toggleClass('active');
60});
61$(".footer-box h3").click(function () {
62	$(this).toggleClass("highlight");
63});
64$('.india-holiday').slick({
65	dots: false,
66	infinite: false,
67	speed: 300,
68	slidesToShow: 3,
69	slidesToScroll: 3,
70	responsive: [{
71		breakpoint: 1024,
72		settings: {
73			slidesToShow: 3,
74			slidesToScroll: 3,
75			infinite: true			
76		}
77	}, {
78		breakpoint: 667,
79		settings: {
80			slidesToShow: 2,
81			slidesToScroll: 2
82		}
83	}, {
84		breakpoint: 480,
85		settings: {
86			slidesToShow: 2,
87			slidesToScroll: 2
88		}
89	}]
90});
91$('.inner-right-slider').slick({
92	dots: false,
93	infinite: false,
94	speed: 300,
95	slidesToShow: 3,
96	slidesToScroll: 3,
97	responsive: [{
98		breakpoint: 1300,
99		settings: {
100			slidesToShow: 3,
101			slidesToScroll: 1,
102			infinite: true
103		}
104	}, {
105		breakpoint: 1281,
106		settings: {
107			slidesToShow: 2,
108			slidesToScroll: 1,
109		}
110	}, {
111		breakpoint: 1100,
112		settings: {
113			slidesToShow: 2,
114			slidesToScroll: 1,
115			infinite: true			
116		}
117	}, {
118		breakpoint: 1024,
119		settings: {
120			slidesToShow: 1,
121			slidesToScroll: 1,
122			infinite: true
123		}
124	}, {
125		breakpoint: 667,
126		settings: {
127			slidesToShow: 2,
128			slidesToScroll: 1
129		}
130	}, {
131		breakpoint: 480,
132		settings: {
133			slidesToShow: 1,
134			slidesToScroll: 1
135		}
136	}]
137});
138$('.tranding-destination-slide').slick({
139	dots: false,
140	infinite: false,
141	speed: 300,
142	slidesToShow: 5,
143	slidesToScroll: 5,
144	responsive: [{
145		breakpoint: 1024,
146		settings: {
147			slidesToShow: 3,
148			slidesToScroll: 3,
149			infinite: true			
150		}
151	}, {
152		breakpoint: 667,
153		settings: {
154			slidesToShow: 2,
155			slidesToScroll: 2
156		}
157	}, {
158		breakpoint: 480,
159		settings: {
160			slidesToShow: 2,
161			slidesToScroll: 2
162		}
163	}]
164});
165$('.popular-related-destinations-slide').slick({
166	dots: false,
167	infinite: false,
168	speed: 300,
169	slidesToShow: 5,
170	slidesToScroll: 5,
171	responsive: [{
172		breakpoint: 1024,
173		settings: {
174			slidesToShow: 3,
175			slidesToScroll: 3,
176			infinite: true			
177		}
178	}, {
179		breakpoint: 667,
180		settings: {
181			slidesToShow: 2,
182			slidesToScroll: 2
183		}
184	}, {
185		breakpoint: 480,
186		settings: {
187			slidesToShow: 2,
188			slidesToScroll: 2
189		}
190	}]
191});
192$('.tranding-attraction-slide').slick({
193	dots: false,
194	infinite: false,
195	speed: 300,
196	slidesToShow: 3,
197	slidesToScroll: 1,
198	responsive: [{
199		breakpoint: 1024,
200		settings: {
201			slidesToShow: 3,
202			slidesToScroll: 3,
203			infinite: true			
204		}
205	}, {
206		breakpoint: 668,
207		settings: {
208			slidesToShow: 2,
209			slidesToScroll: 2
210		}
211	}, {
212		breakpoint: 480,
213		settings: {
214			slidesToShow: 2,
215			slidesToScroll: 1
216		}
217	}]
218});
219$('.populer-tourest-slider').slick({
220	dots: false,
221	infinite: false,
222	speed: 300,
223	slidesToShow: 5,
224	slidesToScroll: 5,
225	responsive: [{
226		breakpoint: 1024,
227		settings: {
228			slidesToShow: 3,
229			slidesToScroll: 3,
230			infinite: true			
231		}
232	}, {
233		breakpoint: 667,
234		settings: {
235			slidesToShow: 2,
236			slidesToScroll: 2
237		}
238	}, {
239		breakpoint: 480,
240		settings: {
241			slidesToShow: 2,
242			slidesToScroll: 2
243		}
244	}]
245});
246if ($('.explore-best-selling-slide').length > 0) {
247	$('.explore-best-selling-slide').slick({
248		dots: false,
249		infinite: false,
250		speed: 300,
251		slidesToShow: 6,
252		slidesToScroll: 6,
253		responsive: [{
254			breakpoint: 1024,
255			settings: {
256				slidesToShow: 3,
257				slidesToScroll: 3,
258				infinite: true				
259			}
260		}, {
261			breakpoint: 667,
262			settings: {
263				slidesToShow: 2,
264				slidesToScroll: 2
265			}
266		}, {
267			breakpoint: 480,
268			settings: {
269				slidesToShow: 2,
270				slidesToScroll: 2
271			}
272		}]
273	});
274}
275if ($('.explore-best-selling-slide-another').length > 0) {
276	$('.explore-best-selling-slide-another').slick({
277		dots: false,
278		infinite: false,
279		speed: 300,
280		slidesToShow: 6,
281		slidesToScroll: 6,
282		responsive: [{
283			breakpoint: 1024,
284			settings: {
285				slidesToShow: 3,
286				slidesToScroll: 3,
287				infinite: true				
288			}
289		}, {
290			breakpoint: 667,
291			settings: {
292				slidesToShow: 2,
293				slidesToScroll: 2
294			}
295		}, {
296			breakpoint: 480,
297			settings: {
298				slidesToShow: 2,
299				slidesToScroll: 2
300			}
301		}]
302	});
303}
304
305function openCity(cityName) {
306	var i;
307	var x = document.getElementsByClassName("explore-best-selling-row");
308	for (i = 0; i < x.length; i++) {
309		x[i].style.display = "none";
310	}
311	document.getElementById(cityName).style.display = "block";
312	$('.explore-best-selling-slide').slick('refresh');
313	$('.explore-best-selling-slide-another').slick('refresh');
314}
315$('.footer-box').click(function () {
316	$(this).find('.drop').toggleClass('active');
317});
318$(".footer-box h3").click(function () {
319	$(this).toggleClass("highlight");
320});
321$('.great-home-slide').slick({
322	dots: false,
323	infinite: true,
324	speed: 500,
325	fade: true,
326	autoplay: true,
327	cssEase: 'linear'
328});
329$('.place-visit-slider').slick({
330	dots: false,
331	infinite: false,
332	speed: 300,
333	slidesToShow: 3,
334	slidesToScroll: 3,
335	responsive: [{
336		breakpoint: 1024,
337		settings: {
338			slidesToShow: 3,
339			slidesToScroll: 3,
340			infinite: true			
341		}
342	}, {
343		breakpoint: 992,
344		settings: {
345			slidesToShow: 2,
346			slidesToScroll: 2,
347			infinite: true			
348		}
349	}, {
350		breakpoint: 667,
351		settings: {
352			slidesToShow: 2,
353			slidesToScroll: 2
354		}
355	}, {
356		breakpoint: 480,
357		settings: {
358			slidesToShow: 1,
359			slidesToScroll: 1
360		}
361	}]
362});
363$('.thing-to-do-slider').slick({
364	dots: false,
365	infinite: false,
366	speed: 300,
367	slidesToShow: 3,
368	slidesToScroll: 3,
369	responsive: [{
370		breakpoint: 1024,
371		settings: {
372			slidesToShow: 3,
373			slidesToScroll: 3,
374			infinite: true			
375		}
376	}, {
377		breakpoint: 992,
378		settings: {
379			slidesToShow: 2,
380			slidesToScroll: 2,
381			infinite: true			
382		}
383	}, {
384		breakpoint: 667,
385		settings: {
386			slidesToShow: 2,
387			slidesToScroll: 2
388		}
389	}, {
390		breakpoint: 480,
391		settings: {
392			slidesToShow: 1,
393			slidesToScroll: 1
394		}
395	}]
396});
397$(document).ready(function () {
398	new Accordion('.accordion-container', {
399		duration: 500,
400		showItem: true
401	});
402	new Accordion('#accordion-show-first', {
403		duration: 500,
404		showItem: true
405	});
406	$(".u-vmenu").vmenuModule({
407		Speed: 555,
408		autostart: false,
409		autohide: true
410	});
411	$('#onclic').click(function () {
412		$('#u-vmenu').slideToggle("slow");
413	});
414});
415
416// -----------------------------
417$('.popuklar-tour-slider').slick({
418	dots: false,
419	infinite: true,
420	speed: 300,
421	autoplay: true,
422	autoplaySpeed: 2000,
423	slidesToShow: 5,
424	slidesToScroll: 1,
425	// prevArrow: '<span class="prev-arrow "><i class="fa-solid fa-arrow-left"></i></span>',
426	// nextArrow: '<span class="next-arrow "><i class="fa-solid fa-arrow-right"></i></span>',
427	responsive: [
428	{
429		breakpoint: 1250,
430		settings: {
431		slidesToShow: 4,
432		slidesToScroll: 1,
433		infinite: true,
434		dots: false,
435		}
436	},
437	{
438		breakpoint: 1024,
439		settings: {
440		slidesToShow: 3,
441		slidesToScroll: 1,
442		infinite: true,
443		dots: false,
444		}
445	},
446	{
447		breakpoint: 992,
448		settings: {
449		slidesToShow: 2,
450		slidesToScroll: 1,
451		}
452	},
453	{
454		breakpoint: 480,
455		settings: {
456		slidesToShow: 1,
457		slidesToScroll: 1,
458		}
459	}
460	]
461});
462// -----------------------------
463$(window).scroll(function () {
464	if ($(window).scrollTop() == 0) {
465		$(".sticky-box").hover(function () {
466			$(this).removeClass("fixed");
467		});
468		$('.sticky-box').removeClass("fixed");
469	} else {
470		$(".sticky-box").hover(function () {
471			$(this).removeClass("fixed");
472		}, function () {
473			$(this).addClass("fixed");
474		});
475		$('.sticky-box').addClass("fixed");
476	}
477	$(".overlay-box").css("opacity", 0.2 + $(window).scrollTop() / 966);
478});
479$(function () {
480	$(".accordion-container-2 .ac").slice(0, 7).addClass('display');
481	$("#seeMore").on('click', function (e) {
482		e.preventDefault();
483		$(".accordion-container-2 .ac:hidden").slice(0, 7).addClass('display');
484		if ($(".accordion-container-2 .ac:hidden").length == 0) {
485			$("#load").fadeOut('slow');
486			$("#seeMore").remove();
487		}
488	});
489});
490$(document).ready(function () {
491	$(".accordion-thumb h4").click(function () {
492		$(this).closest('.itinerary-cont-box').find('.accordion-panel').toggle();
493	});
494});
495$(document).ready(function () {
496	$(document).on("scroll", onScroll);
497	$('a[href^="#"]').on('click', function (e) {
498		e.preventDefault();
499		$(document).off("scroll");
500		$('a').each(function () {
501			$(this).removeClass('active');
502		})
503		$(this).addClass('active');
504		var target = this.hash,
505			menu = target;
506		$target = $(target);
507		$('html, body').stop().animate({
508			'scrollTop': $target.offset().top + 2
509		}, 500, 'swing', function () {
510			window.location.hash = target;
511			$(document).on("scroll", onScroll);
512		});
513	});
514});
515
516function onScroll(event) {
517	var scrollPos = $(document).scrollTop();
518	$('.scroll-list a').each(function () {
519		var currLink = $(this);
520		var refElement = $(currLink.attr("href"));
521		if (refElement.position().top <= scrollPos && refElement.position().top + refElement.height() > scrollPos) {
522			$('.scroll-list li a').removeClass("active");
523			currLink.addClass("active");
524		} else {
525			currLink.removeClass("active");
526		}
527	});
528}
529$(document).ready(function () {
530	$('.nav-toggle').click(function () {
531		var collapse_content_selector = $(this).attr('href');
532		var toggle_switch = $(this);
533		$(collapse_content_selector).slideToggle(function () {
534			if ($(this).css('display') == 'none') {
535				toggle_switch.html('Show More');
536			} else {
537				toggle_switch.html('Less');
538			}
539		});
540	});
541});
542$(document).ready(function () {
543	$('.toggle-active').click(function () {
544		var collapse_content_selector1 = $(this).attr('href');
545		var toggle_switch1 = $(this);
546		$(collapse_content_selector1).slideToggle(function () {
547			if ($(this).css('display') == 'none') {
548				toggle_switch1.html('Read More');
549			} else {
550				toggle_switch1.html('Less');
551			}
552		});
553	});
554});
555if($(window).width()<=480){
556       new Accordion('.accordion-container-one');
557
558     }

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.