PageSourceSearch

https://www.autohaus-lohs.de/wp-content/plugins/itsmobile/js/itsmobile.js?ver=7.1.3

js autohaus-lohs.de collected 2026-10-06 20:37:17 UTC 8,355 bytes, 229 lines download raw bytes

1/*
2##############################################################################
3##############################################################################
4###________________________________________________________________________###
5###                                                                        ###
6###           ITS Mobile Inserats-Einbindung per XML API                   ###
7###             written by ITSolutions Gering                              ###
8###                    Version 0.9                                         ###
9###________________________________________________________________________###
10###                                                                        ###
11###     (c) Alexander Gering 2013     |   [email protected]               ###
12###         ITSolutions Gering        |   http://www.its-gering.de         ###
13###         Tel. +49(0)33638-129085   |   Mobil +49(0)151-56612453         ###
14###                                                                        ###
15###________________________________________________________________________###
16###________________________________________________________________________###
17##############################################################################
18##############################################################################
19##
20##  Diese Software ist das Eigentum von Alexander Gering und nach dem
21##  Urheberrecht geschuetzt - es  handelt sich NICHT um Freeware. Jede
22##  Nutzung der Software ohne eine gueltige Lizenzvereinbarung, wird zivil-
23##  und strafrechtlich verfolgt.
24##
25##  Mit dem Einsatz dieses Skripts akzeptieren Sie, dass Alexander Gering,
26##  ITSolutions Gering von jeglicher Haftung und Gewaehrleistung hinsichtlich
27##  des Einsatzes befreit ist.
28##  
29##  Verkauf oder Weitergabe dieses Skripts, auch in modifizierter Form, ist ohne
30##  vorherige Absprache ausdruecklich untersagt.
31
32 * 
33 */
34
35jQuery(document).ready(function ($) {
36
37  var pfad_itsmobile = itsjsParams.plugin_pfad+'/itsmobile/';
38
39  $('.its-vadimg-slider').slick({
40    slidesToShow: 1,
41    slidesToScroll: 1,
42    fade: false,
43    adaptiveHeight: false,
44    lazyLoad: 'ondemand'
45  });
46
47
48
49  lightbox.option({
50    'fadeDuration': 200,
51    'resizeDuration': 200,
52    'alwaysShowNavOnTouchDevices': true,
53    'albumLabel': ""
54  });
55
56
57  $('.its-click-box').each(function () {
58    var link = $(this).find("a").attr("href");
59    $(this).click(function () {
60      window.location.href = link;
61    });
62  });
63
64  /**** Suchfilter ****/
65
66  $('#its-filter :input').change(function () {
67    if ($(this).attr("id") == "klassenauswahl") {
68      $('#marke').val('');
69      $('#marke').children(':first').attr('selected', true);
70      $('#modell').val('');
71      $('#modell').children(':first').attr('selected', true);
72    }
73    if ($(this).attr("id") == "marke") {
74      $('#modell').val('');
75      $('#modell').children(':first').attr('selected', true);
76    }
77    var formData = $('#its-filter').serialize();
78    $.get(pfad_itsmobile + 'itsmobile.php?its_mode=get_anz', formData, function (daten, status) {
79      if (status == 'success') {
80        //Ausgabe der Antwort
81        //$('#anz_fzg').html(daten);
82        $('#its-filter input[type="submit"]').attr("value", daten);
83      } else $('#anz_fzg').html('Anzahl nicht ermittelbar.');
84    });
85  });
86
87  $('#its-filter #its-btn-reset').click(function () {
88    //$('#its-filter').trigger("reset")(function(){
89    $('#its-filter :radio').checked = false;
90    $('#its-filter :checkbox').checked = false;
91    $("#its-filter :radio").prop("checked", false);
92    $("#its-filter :checkbox").prop("checked", false);
93    $("#its-filter option").prop("selected", false);
94    $('#its-filter option').removeAttr("selected");
95    var formData = $('#klassenauswahl').serialize(); //objektliteral mit formularinhalt
96    //var formData=$('#its-filter').serialize();
97    //aufruf des verarbeitenden Skriptes
98    $.get(pfad_itsmobile + 'itsmobile.php?its_mode=get_anz', formData, function (daten, status) {
99      if (status == 'success') {
100        //Ausgabe der Antwort
101        //$('#anz_fzg').html(daten);
102        $('#its-filter input[type="submit"]').attr("value", daten);
103      } else $('#anz_fzg').html('Anzahl nicht ermittelbar.');
104    });
105  });
106
107  //Hersteller laden
108  //$('input[name=klasse]').change(function(){
109  $('#klassenauswahl').change(function () {
110
111    //var klasse=$('input[name=klasse]:checked').val();
112    var klasse = $(this).children('option:selected').val();
113    if (klasse != '') {
114      $('#marke').attr('disabled', 'disabled');
115      $('#marke').load(pfad_itsmobile + 'itsmobile.php', {
116        klasse: klasse,
117        its_mode: 'hersteller_laden'
118      }, function () {
119        $('#marke').removeAttr('disabled');
120      });
121      //Modellfeld ebenfalls anpassen
122      $('#modell').children(':first').attr('selected', true);
123      $('#modell').children(':not(:first)').remove();
124    }
125
126  }); //Ende change input[name=klasse]
127
128
129  //Modell laden
130  $('#marke').change(function () {
131
132    var marke = $(this).children('option:selected').val();
133    //var klasse=$('input[name=klasse]:checked').val();
134    var klasse = $('#klassenauswahl').children('option:selected').val();
135    if (marke != '') {
136      $('#modell').attr('disabled', 'disabled');
137      $('#modell').load(pfad_itsmobile + 'itsmobile.php', {
138        klasse: klasse,
139        marke: marke,
140        its_mode: 'modelle_laden'
141      }, function () {
142        $('#modell').removeAttr('disabled');
143      });
144    }
145
146  }); //Ende change #marke
147
148  //Detailsuche ein- ausklappen
149  $(".its-btn-more").click(function (event) {
150    event.preventDefault();
151    var btn = $(this);
152    var expand_id = $(this).attr("data-target");
153    var elem_expand = $('#' + expand_id);
154    elem_expand.slideToggle(300, function () {
155      if (elem_expand.is(":visible")) btn.addClass("its-open");
156      else btn.removeClass("its-open");
157    });
158
159  });
160
161  $(".its-btn-more").each(function () {
162    var btn = $(this);
163    var expand_id = $(this).attr("data-target");
164    var elem_expand = $('#' + expand_id);
165    if (elem_expand.is(":visible")) btn.addClass("its-open");
166    else btn.removeClass("its-open");
167
168
169  });
170
171  if ($(window).width() < 768) {
172    var fields_to_expand_box = ['#getriebe', '#kraftstoff', '#km', '#ez', '#preis'];
173    fields_to_expand_box.forEach(function (item) {
174      var move_elem = $(item).parent();
175      move_elem.prependTo($('#wrapper-its-suche-detail'));
176    });
177
178  }
179
180
181  /**** Ende Suchfilter ****/
182
183  $('#sortmenu').change(function () {
184    var formActionUrl = $('#its_sort').attr("action"); //$(this).parent().attr("action");
185    var sort = $(this).children('option:selected').val();
186    var hrefurl = formActionUrl + sort;
187    $(location).attr('href', hrefurl);
188  });
189
190  $('#its-form-anfrage').submit(function (event) {
191    //alert( "Handler for .submit() called." );
192    event.preventDefault();
193    var formData = $('#its-form-anfrage').serialize();
194    $.post(pfad_itsmobile + 'itsmobile.php?its_mode=anfrage_senden', formData, function (daten, status) {
195      if (status == 'success') {
196        //Ausgabe der Antwort
197        $('#its-wrapper-form').html(daten);
198      } else $('#its-wrapper-form').html('Email Skript nicht erreichbar.');
199    });
200
201  });
202
203  if ($('.wrapper-its-sim-cars').length) {
204    $('.wrapper-its-sim-cars').each(function () {
205      var data = {
206        its_mode: "itssimcars",
207        ad_id: $(this).attr("data-ad-id"),
208        marke: $(this).attr("data-ad-marke"),
209        modell: $(this).attr("data-ad-modell"),
210        klasse: $(this).attr("data-ad-klasse"),
211        link: $(this).attr("data-link")
212      };
213      var list_wrapper = $(this).find('.its-wrapper-extra-list');
214      list_wrapper.prepend('<div class="its-loading"></div>');
215      list_wrapper.addClass("loading");
216
217
218      $.get(pfad_itsmobile + 'itsmobile.php', data, function (daten, status) {
219        if (status == 'success') {
220          list_wrapper.html(daten);
221        } else list_wrapper.html("<p>Fahrzeuge konnten nicht geladen werden.</p>");
222        list_wrapper.removeClass("loading");
223      });
224    });
225
226  }
227
228
229}); //Ende ready

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.