PageSourceSearch

https://www.autohaus-weeke.de/fileadmin/js/main.js

js autohaus-weeke.de collected 2026-10-06 20:23:49 UTC 6,243 bytes, 271 lines download raw bytes

1jQuery(document).ready(function() {
2	$('.bgbutton button').click(function(){
3		$('.bgbutton').toggleClass('open');
4		$('#content').toggleClass('dark');
5		$('.bannerdiv').toggleClass('dark');
6	})
7
8	$('#mobilenavi .searchlink').click(function(){
9		$('.searchbutton').toggleClass('open');
10		$('#content').toggleClass('dark');
11		$('.bannerdiv').toggleClass('dark');
12	})
13
14	$('#chatpopup-uhrzeit').timepicker({
15		'timeFormat': 'H:i',
16		'appendTo':'#chatpopup',
17	});
18	$('#chatpopup-datum').Zebra_DatePicker({
19		'container':$('#chatpopup'),
20		'days':['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'],
21		'format':'l, d.m.Y',
22	});
23
24	$(".fancybox").fancybox({
25		maxWidth	: 800,
26		maxHeight	: 600,
27		fitToView	: false,
28		width		: '70%',
29		height		: '70%'
30
31	});
32
33	$('#chatpopupsubmit').click(function(e) {
34		ajaxSubmit('chatpopup');
35	});
36	$('#kontaktpopupsubmit').click(function(e) {
37		ajaxSubmit('kontaktpopup');
38	});
39
40	function ajaxSubmit(partial)
41	{
42		if(partial=='chatpopup')
43		{
44			var name = $("#chatpopup-name").val();
45			var skype_name = $("#chatpopup-skype_name").val();
46			var facetime_nr = $("#chatpopup-facetime_nr").val();
47			var wochentag = $("#chatpopup-wochentag").val();
48			var datum = $("#chatpopup-datum").val();
49			var uhrzeit = $("#chatpopup-uhrzeit").val();
50			var captchaResponse = $('#chatpopup #sjbr-freecap-captcha-response').val();
51
52			$.ajax({  async: 'true',  url: 'index.php',  type: 'POST',   data: {
53					eID: "customFormsAjaxDispatcher",
54					request: {
55						pluginName: 'Hxcustomforms',
56						controller: 'CustomForms',
57						action: 'ajaxSubmit',
58						arguments: {
59							'tx_hxcustomforms': {
60								'Kundendaten': {
61									'Name': name,
62									'Skype-Name': skype_name,
63									'Facetime-Nr': facetime_nr
64								},
65								'Terminwusch': {
66									'Wochentag': wochentag,
67									'Datum': datum,
68									'uhrzeit': uhrzeit
69								},
70								'Setup': {
71									'captchaResponse':captchaResponse
72								}
73							},
74							'ajaxform':partial
75						}
76					}
77				},
78				dataType: "json",
79
80				success: function(result) {
81
82					var txt=result['success'];
83					$('#chatpopup').html(txt);
84
85
86
87				},
88				error: function(error) {
89					//console.log(error);
90				}
91			});
92		}
93		if(partial=='kontaktpopup')
94		{
95			var herr = $("#kontaktpopup-anrede_herr").val();
96			var frau = $("#kontaktpopup-anrede_herr").val();
97			var firma = $("#kontaktpopup-anrede_herr").val();
98			if(herr){var anrede = herr};
99			if(frau){var anrede = frau};
100			if(firma){var anrede = firma};
101			var name = $("#kontaktpopup-name").val();
102			var email = $("#kontaktpopup-email").val();
103			var telefon = $("#kontaktpopup-telefon").val();
104			var termin = $("#kontaktpopup-termin").val();
105			var anmerkungen = $("#kontaktpopup-anmerkungen").val();
106			var captchaResponse = $('#kontaktpopup #sjbr-freecap-captcha-response').val();
107
108			$.ajax({  async: 'true',  url: 'index.php',  type: 'POST',   data: {
109					eID: "customFormsAjaxDispatcher",
110					request: {
111						pluginName: 'Hxcustomforms',
112						controller: 'CustomForms',
113						action: 'ajaxSubmit',
114						arguments: {
115							'tx_hxcustomforms': {
116								'Kundendaten': {
117									'Anrede': anrede,
118									'Name': name,
119									'Email': email,
120									'Telefon': telefon,
121									'Rueckruftermin': termin
122								},
123								'Nachricht': {
124									'Anmerkungen': anmerkungen
125								},
126								'Setup': {
127									'captchaResponse':captchaResponse
128								}
129							},
130							'ajaxform':partial
131						}
132					}
133				},
134				dataType: "json",
135
136				success: function(result) {
137
138					var txt=result['success'];
139					$('#kontaktpopup').html(txt);
140
141
142
143				},
144				error: function(error) {
145					//console.log(error);
146				}
147			});
148		}
149
150
151
152
153	}
154
155if(screen.width>767){
156    $('.dropdown').hover(
157        function() {
158            $(this).find('.dropdown-menu').stop(true, true).delay(200).fadeIn();
159        },
160        function() {
161            $(this).find('.dropdown-menu').stop(true, true).delay(200).fadeOut();
162        }
163    );
164
165	$('#sidebarkontakt').mouseenter(function(){
166		$('#kontaktpopup').show();
167	});
168	$('#sidebarkontakt').on('mouseover', function () {
169    $('#kontaktpopup').show();
170	}).on('mouseout', function (e) {
171    if (!$(e.target).is('#kontaktpopup')) {
172        $('#kontaktpopup').hide();
173    }
174	});
175	$('#kontaktpopup').on('mouseover', function () {
176    $('#kontaktpopup').show();
177	}).on('mouseout', function (e) {
178    if (!$(e.target).is('input')) {
179        $('#kontaktpopup').hide();
180    }
181	});
182	$('#live-video').mouseenter(function(){
183		$('#chatpopup').show();
184	});
185	$('#live-video').on('mouseover', function () {
186    $('#chatpopup').show();
187	}).on('mouseout', function (e) {
188    if (!$(e.target).is('#chatpopup')) {
189        $('#chatpopup').hide();
190    }
191	});
192	$('#chatpopup').on('mouseover', function () {
193    $('#chatpopup').show();
194	}).on('mouseout', function (e) {
195    if (!$(e.target).is('input')) {
196        $('#chatpopup').hide();
197    }
198	});
199
200	$('#whatsapp').mouseenter(function(){
201		$('.whatsapp').show();
202	});
203	$('#whatsapp').on('mouseover', function () {
204    $('#whatsapp').show();
205	}).on('mouseout', function (e) {
206    if (!$(e.target).is('.whatsapp')) {
207        $('.whatsapp').hide();
208    }
209	});
210	$('.whatsapp').on('mouseover', function () {
211    $('.whatsapp').show();
212	}).on('mouseout', function (e) {
213    if (!$(e.target).is('#whatsapp')) {
214        $('.whatsapp').hide();
215    }
216	});
217}
218if(screen.width>767){
219	$('.popup-success').toggle().delay(5000).toggle("slow");
220}
221
222
223	/*
224
225    $('.dropdown-menu').hover(
226        function() {
227            $(this).stop(true, true);
228        },
229        function() {
230            $(this).stop(true, true).delay(200).fadeOut();
231        }
232    );
233
234  */
235
236
237
238/*
239	$("a#probefahrt").click().toggle(function() {
240		$('#sidebar').animate({
241			width: 'hide',
242			opacity: 'hide'
243		}, 'slow');
244	}, function() {
245		$('#sidebar').animate({
246			width: 'show',
247			opacity: 'show'
248		}, 'fast');
249	});
250*/
251
252
253	var options = { direction: 'right' };
254
255// Set the duration (default: 400 milliseconds)
256var duration = 700;
257
258	$("a#probefahrt").click(function () {
259   $("#sidebar").animate({width: 'toggle'});
260});
261
262	$("a#service").click(function () {
263   $("#sidebars").animate({width: 'toggle'});
264});
265
266
267	$('.indexedsearch-toggle').hide();
268
269
270
271	});

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.