PageSourceSearch

https://annonces.abidjan.net/front/js/my_js.js

js abidjan.net collected 2026-10-02 02:36:17 UTC 6,758 bytes, 226 lines download raw bytes

1$(document).ready(function () {
2
3  if ($('.annonce__slider-main').length) {
4    var $slider = $('.annonce__slider-main')
5        .on('init', function (slick) {
6            $('.annonce__slider-main').fadeIn(1000);
7        })
8        .slick({
9            slidesToShow: 1,
10            slidesToScroll: 1,
11            arrows: true,
12            autoplay: true,
13            lazyLoad: 'ondemand',
14            autoplaySpeed: 8000,
15            asNavFor: '.annonce__slider-thmb',
16            prevArrow: '<button class="slick-next"></button>',
17            nextArrow: '<button class="slick-prev"></button>',
18        });
19
20    var $slider2 = $('.annonce__slider-thmb')
21        .on('init', function (slick) {
22            $('.annonce__slider-thmb').fadeIn(1000);
23        })
24        .slick({
25            slidesToShow: 4,
26            slidesToScroll: 1,
27            lazyLoad: 'ondemand',
28            asNavFor: '.annonce__slider-main',
29            dots: false,
30            centerMode: false,
31            focusOnSelect: true
32        });
33
34    //remove active class from all thumbnail slides
35    $('.annonce__slider-thmb .slick-slide').removeClass('slick-active');
36
37    //set active class to first thumbnail slides
38    $('.annonce__slider-thmb .slick-slide').eq(0).addClass('slick-active');
39
40    // On before slide change match active thumbnail to current slide
41    $('.annonce__slider-main').on('beforeChange', function (event, slick, currentSlide, nextSlide) {
42        var mySlideNumber = nextSlide;
43        $('.annonce__slider-thmb .slick-slide').removeClass('slick-active');
44        $('.annonce__slider-thmb .slick-slide').eq(mySlideNumber).addClass('slick-active');
45    });
46
47
48    // init slider
49    require(['js-sliderWithProgressbar'], function (slider) {
50
51        $('.annonce__slider-main').each(function () {
52
53            me.slider = new slider($(this), options, sliderOptions, previewSliderOptions);
54
55            // stop slider
56            //me.slider.stop();
57
58            // start slider
59            //me.slider.start(index);
60
61            // get reference to slick slider
62            //me.slider.getSlick();
63
64        });
65    });
66    var options = {
67        progressbarSelector: '.bJS_progressbar'
68        , slideSelector: '.bJS_slider'
69        , previewSlideSelector: '.bJS_previewSlider'
70        , progressInterval: ''
71        // add your own progressbar animation function to sync it i.e. with a video
72        // function will be called if the current preview slider item (".b_previewItem") has the data-customprogressbar="true" property set
73        , onCustomProgressbar: function ($slide, $progressbar) { }
74    }
75
76    // slick slider options
77    // see: https://kenwheeler.github.io/slick/
78    var sliderOptions = {
79        slidesToShow: 1,
80        slidesToScroll: 1,
81        arrows: false,
82        fade: true,
83        autoplay: true
84    }
85
86    // slick slider options
87    // see: https://kenwheeler.github.io/slick/
88    var previewSliderOptions = {
89        slidesToShow: 3,
90        slidesToScroll: 1,
91        dots: false,
92        focusOnSelect: true,
93        centerMode: true
94    }
95}
96
97
98  $("#MARQUE_ID").change(function () {
99    // to get the selected value
100    var marqueID = $(this).val();
101
102    $.ajaxSetup({
103      headers: {
104        "X-CSRF-TOKEN": $('input[name="_token"]').val(),
105      },
106    });
107
108    $.ajax({
109      url: "/automobile/getModelMoto",
110      method: "post",
111      data: {
112        marqueID: marqueID,
113      },
114
115      success: function (response) {
116
117        res = "<option>Selection un model</option>";
118        var data = response.data;
119
120        for (let index = 0; index < data.length; index++) {
121          res += `<option value="${data[index].id}" id="price_to_select" data-price="${data[index].libelle}">${data[index].libelle}</option>`;
122        }
123
124        document.getElementById("moto_idModel").innerHTML = res;
125      },
126
127      error: function (jqXHR, textStatus, errorThrown) {
128        $("#moto_idModel")
129          .empty()
130          .append("<option>Selection un model</option>");
131        console.log("Error response");
132        console.log(jqXHR);
133        console.log(textStatus);
134        console.log(errorThrown);
135      },
136    });
137  });
138
139  $("#vehicule_IdMarque").change(function () {
140    // to get the selected value
141    var marqueID = $(this).val();
142
143    $.ajaxSetup({
144      headers: {
145        "X-CSRF-TOKEN": $('input[name="_token"]').val(),
146      },
147    });
148
149    $.ajax({
150      url: "/automobile/getModelVehicule",
151      method: "post",
152      data: {
153        marqueID: marqueID,
154      },
155
156      success: function (response) {
157        res = "<option>Selection un model</option>";
158        var data = response.data;
159        for (let index = 0; index < data.length; index++) {
160          res += `<option value="${data[index].id}" id="price_to_select" data-price="${data[index].libelle}">${data[index].libelle}</option>`;
161        }
162        document.getElementById("vehicule_idModel").innerHTML = res;
163      },
164      error: function (jqXHR, textStatus, errorThrown) {
165        $("#vehicule_idModel")
166          .empty()
167          .append("<option>Selection un model</option>");
168        console.log("Error response");
169        console.log(jqXHR);
170        console.log(textStatus);
171        console.log(errorThrown);
172      },
173    });
174  });
175
176  // ClassicEditor.create(document.querySelector("#ld_editor"), {})
177  //   .then((editor) => {
178  //     window.editor = editor;
179  //   })
180  //   .catch((err) => {
181  //     console.error(err);
182  //   });
183
184  // ClassicEditor.create(document.querySelector("#description_editor"), {})
185  //   .then((editor) => {
186  //     window.editor = editor;
187  //   })
188  //   .catch((err) => {
189  //     console.error(err.stack);
190  //   });
191
192  // ClassicEditor.create(document.querySelector("#desc2_editor"), {})
193  //   .then((editor) => {
194  //     window.editor = editor;
195  //   })
196  //   .catch((err) => {
197  //     console.error(err.stack);
198  //   });
199
200  // ClassicEditor.create(document.querySelector("#profilR_editor"), {})
201  //   .then((editor) => {
202  //     window.editor = editor;
203  //   })
204  //   .catch((err) => {
205  //     console.error(err.stack);
206  //   });
207
208  // ClassicEditor.create(document.querySelector("#infoA_editor"), {})
209  //   .then((editor) => {
210  //     window.editor = editor;
211  //   })
212  //   .catch((err) => {
213  //     console.error(err.stack);
214  //   });
215
216  // ClassicEditor.create(document.querySelector("#mission_editor"), {})
217  //   .then((editor) => {
218  //     window.editor = editor;
219  //   })
220  //   .catch((err) => {
221  //     console.error(err.stack);
222  //   });
223});
224
225
226

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.