PageSourceSearch

https://visitdelphi.gr/wp-content/uploads/custom-css-js/11967.js?v=7243

js visitdelphi.gr collected 2026-10-02 12:37:46 UTC 6,613 bytes, 218 lines download raw bytes

1/******* Do not edit this file *******
2Simple Custom CSS and JS - by Silkypress.com
3Saved: Sep 22 2025 | 09:25:44 */
4jQuery(document).ready(function( $ ){
5	
6	//Activities buttons
7	$('.go_to_sun_n_sea').on('click', function() {
8	  if ($('html').attr('lang') === 'el') {
9		window.location.href = 'https://visitdelphi.gr/activities/?1';
10	  }
11		if ($('html').attr('lang') === 'en-US') {
12		window.location.href = 'https://visitdelphi.gr/en/activities/?1';
13	  }
14		if ($('html').attr('lang') === 'fr-FR') {
15		window.location.href = 'https://visitdelphi.gr/fr/activities/?1';
16	  }
17		
18	});
19
20
21	$('.go_to_mountain').on('click', function() {
22		if ($('html').attr('lang') === 'el') {
23		window.location.href = 'https://visitdelphi.gr/activities/?2';
24	  }
25		if ($('html').attr('lang') === 'en-US') {
26		window.location.href = 'https://visitdelphi.gr/en/activities/?2';
27	  }
28		if ($('html').attr('lang') === 'fr-FR') {
29		window.location.href = 'https://visitdelphi.gr/fr/activities/?2';
30	  }
31	
32	});
33	$('.go_to_action').on('click', function() {
34		  if ($('html').attr('lang') === 'el') {
35		window.location.href = 'https://visitdelphi.gr/activities/?3';
36	  }
37		if ($('html').attr('lang') === 'en-US') {
38		window.location.href = 'https://visitdelphi.gr/en/activities/?3';
39	  }
40		if ($('html').attr('lang') === 'fr-FR') {
41		window.location.href = 'https://visitdelphi.gr/fr/activities/?3';
42	  }
43	});
44	$('.go_to_tour').on('click', function() {
45		  if ($('html').attr('lang') === 'el') {
46		window.location.href = 'https://visitdelphi.gr/activities/?4';
47	  }
48		if ($('html').attr('lang') === 'en-US') {
49		window.location.href = 'https://visitdelphi.gr/en/activities/?4';
50	  }
51		if ($('html').attr('lang') === 'fr-FR') {
52		window.location.href = 'https://visitdelphi.gr/fr/activities/?4';
53	  }
54	});
55	$('.go_to_meeting').on('click', function() {
56		 if ($('html').attr('lang') === 'el') {
57		window.location.href = 'https://visitdelphi.gr/activities/?5';
58	  }
59		if ($('html').attr('lang') === 'en-US') {
60		window.location.href = 'https://visitdelphi.gr/en/activities/?5';
61	  }
62		if ($('html').attr('lang') === 'fr-FR') {
63		window.location.href = 'https://visitdelphi.gr/fr/activities/?5';
64	  }
65	});
66	
67	$('.go_to_map').on('click', function() {
68		if ($('html').attr('lang') === 'el') {
69		window.location.href = 'https://visitdelphi.gr/sights/?show=map';
70	  }
71		if ($('html').attr('lang') === 'en-US') {
72		window.location.href = 'https://visitdelphi.gr/en/sights/?show=map';
73	  }
74		if ($('html').attr('lang') === 'fr-FR') {
75		window.location.href = 'https://visitdelphi.gr/fr/sights/?show=map';
76	  }
77		  
78		
79	});
80	
81	
82	
83	
84			const rawParam = window.location.search.replace('?', '');
85	 		//console.log('Raw URL param:', rawParam);
86
87			const filterMap = {
88				'1': 'hlios-thalassa',
89				'2': 'oreinos-tourismos',
90				'3': 'drash-adrenalinh',
91				'4': 'perihghsh',
92				'5': 'sunderiakos-tourismos'
93			};
94
95			const filterValue = filterMap[rawParam];
96
97			if (filterValue) {
98				
99			setTimeout(function () {
100				const $filterButton = $('.category-activity-filter-button');
101				//console.log('Βρέθηκε activity filter button:', $filterButton.length > 0);
102
103				if ($filterButton.length) {
104					$filterButton.trigger('click'); 
105					$filterButton.addClass('active-filter');
106					//console.log('Κάνουμε click στο activity filter button & προσθέτουμε κλάση');
107				}
108
109				const $filterItem = $(`.filter-group[data-filter="destination"] div[data-value="${filterValue}"]`);
110				//console.log('Βρέθηκε φίλτρο με selector:', $filterItem.length > 0);
111
112				
113				//console.log('Ψάχνουμε για data-value:', filterValue);
114
115				if ($filterItem.length) {
116					//console.log('Το data-value του επιλεγμένου φίλτρου είναι:', $filterItem.data('value'));
117					$filterItem.trigger('click');
118					$filterItem.addClass('active-filter-choice');
119					//console.log(`Κάναμε click στο φίλτρο με τιμή: ${filterValue}`);
120				} else {
121					//console.log('Δεν βρέθηκε στοιχείο με αυτό το data-value.');
122				}
123			}, 200);
124
125			}
126	
127
128
129	
130	
131	
132	//Map button
133    
134    const urlParams = new URLSearchParams(window.location.search);
135    const showTab = urlParams.get('show');
136
137    if(showTab === 'map') {
138       
139        $('#content-tab').removeClass('active');
140        $('.plant-tab-wrap a[href="#content-tab"]').removeClass('active');
141
142       
143        $('#map-tab').addClass('active');
144        $('.plant-tab-wrap a[href="#map-tab"]').addClass('active');
145    }
146
147
148
149	
150	//Regular buttons
151	
152	$('.apps-main-trip-planner').on('click', function() {
153		  window.location.href = '/trip-planner/';
154	});
155	$('.apps-main-trip-planner-en').on('click', function() {
156		  window.location.href = '/en/trip-planner/';
157	});
158	$('.apps-main-trip-planner-fr').on('click', function() {
159		  window.location.href = '/fr/trip-planner/';
160	});
161	
162	
163	$('.apps-main-virtual').on('click', function() {
164		  window.location.href = '/virtual-tour/';
165	});
166	$('.apps-main-virtual-en').on('click', function() {
167		  window.location.href = '/en/virtual-tour/';
168	});
169	$('.apps-main-virtual-fr').on('click', function() {
170		  window.location.href = '/fr/virtual-tour/';
171	});
172	
173	$('.apps-main-mobile-app').on('click', function() {
174		  window.location.href = '/mobile-app/';
175	});
176	$('.apps-main-mobile-app-en').on('click', function() {
177		  window.location.href = '/en/mobile-app/';
178	});
179	$('.apps-main-mobile-app-fr').on('click', function() {
180		  window.location.href = '/fr/mobile-app/';
181	});
182	
183	$('.go-to-multimedia').on('click', function() {
184		  window.location.href = '/multi/';
185	});
186	$('.go-to-multimedia-en').on('click', function() {
187		  window.location.href = '/en/multi/';
188	});
189	$('.go-to-multimedia-fr').on('click', function() {
190		  window.location.href = '/fr/multi/';
191	});
192	
193	$('.go-to-events').on('click', function() {
194		  window.location.href = '/events-calendar/';
195	});
196	$('.go-to-events-en').on('click', function() {
197		  window.location.href = '/en/events/';
198	});
199	$('.go-to-events-fr').on('click', function() {
200		  window.location.href = '/fr/events/';
201	});
202	
203	$('.go_to_question').on('click', function() {
204		  window.location.href = '/questionnaire/';
205	});
206	$('.go_to_question_en').on('click', function() {
207		  window.location.href = '/en/questionnaire/';
208	});
209	$('.go_to_question_fr').on('click', function() {
210		  window.location.href = '/fr/questionnaire/';
211	});
212	
213
214
215
216});
217
218

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.