PageSourceSearch

https://www.pascan.com/js/main.js?v=1.41

js pascan.com collected 2026-10-02 10:14:09 UTC 27,486 bytes, 912 lines download raw bytes

1var animateAccueilMenu = false;
2var availableTags = availableTags || [];
3var windowLoad = false;
4$(window).load(function() {
5    windowLoad = true;
6});
7function changeDropdown(obj,value) {
8
9    $('#'+obj).val(value);
10    Shadowbox.close();
11    var text = $("#"+obj+" option[value='"+value+"']").text();
12
13    if (obj == "dp_hidden_arrives") {
14        $('.arrives_auto').val(text);
15        if ($('#date_depart_text').val()==''){
16            setTimeout(function() {
17                $( "#date_depart_text" ).datepicker( "show" );
18            },500);
19        }
20    }
21    else {
22        $('.depart_auto').val(text);
23        setTimeout(function() {
24            openProvenance(true);
25        },600);
26    }
27}
28
29
30function validateEmail(email) {
31    var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
32    return re.test(email);
33}
34
35function openValidation(info, message) {
36
37    //Veuillez remplir les champs obligatoires
38    var nbElement = info.length;
39
40    calculHeight = (nbElement * 25)+90;
41    var html = "<div style='color:#000;border:5px solid #00a651;padding:15px;height:"+(parseInt(calculHeight)-40)+"px;overflow:hidden;background-color:#fff;'>";
42    html += "<h1 class='titre-section' style='color:#16468c;float:none;'>"+message+"</h1>";
43    //ul.validation
44    html += "<ul class='validation'>";
45    for(i=0;i<info.length;i++) {
46        html += "<li>"+info[i]+"</li>"
47    }
48    html += "</ul>";
49    html += "</div>";
50    if (windowLoad === true) {
51        Shadowbox.open({
52            content:    html,
53            player:     "html",
54            title:      "",
55            height:     calculHeight,
56            width:      550,
57            options: {
58                onOpen: function() {
59                    moveCloseLink();
60                    $('#sb-nav-close').css('background-image', 'url(/images/shadowbox/close_f.png)');
61                },
62                overlayOpacity: 0.7,
63                overlayColor: '#FFF'
64            }
65        });
66    }
67
68}
69
70
71
72function openProvenance(ajax) {
73    var html = "";
74    if (ajax) {
75        codeDestination = $('#dp_hidden_depart').val();
76        provenance = $('#dp_provenance').val();
77        if (provenance == "") {
78            var erreurs = [];
79            erreurs.push(_messagesErreur['provenance']);
80
81            if (typeof Sentry !== 'undefined' && Sentry !== null) {
82                Sentry.withScope(function(scope) {
83                    scope.setLevel('info');
84                    Sentry.setExtra("ajax", ajax);
85                    Sentry.setExtra("erreurs", erreurs);
86                    Sentry.setExtra("codeDestination", codeDestination);
87                    Sentry.setExtra("provenance", provenance);
88                    Sentry.captureMessage('Erreur validation openProvenance - provenance vide');
89                });
90            }
91
92            openValidation(erreurs, validationBoxTraduction['erreur']);
93            return false;
94        }
95        else {
96
97            // If the destination is Rouyn Noranda, we trigger a modal that advise the address change.
98            if (codeDestination == 'CYUY') {
99                var modalReservation = document.querySelector('[modal-trigger-reservation]');
100                modalReservation.click();
101            }
102
103            var promo = $('#promo').val();
104            $.ajax({
105                type: "POST",
106                data: {
107                    "code_destination": codeDestination,
108                    "promo": promo
109                },
110                url: "/"+lang+"/index/destination-ajax/",
111                success: function(callback) {
112                    $('.masterContaineurDestinationModals1').empty().html(callback);
113                    html = $('.masterContaineurDestinationModals1 .shadowboxModals').html();
114                    $(".masterContaineurDestinationModals1 .shadowboxModals").show();
115                    if (codeDestination == "CYND") {
116                        var height = 270;
117                    }
118                    else {
119                        var height = $('.masterContaineurDestinationModals1 .shadowboxModals').height();
120                    }
121                    $(".masterContaineurDestinationModals1  .shadowboxModals").hide();
122                    openDestinationModals(callback,height);
123                }
124            });
125        }
126    }
127    else {
128        html = $('.masterContaineurDestinationModals2 .shadowboxModals').html();
129        $(".masterContaineurDestinationModals2 .shadowboxModals").show();
130        var height = $('.masterContaineurDestinationModals2 .shadowboxModals').height();
131        //var height = 500;
132        $(".masterContaineurDestinationModals2 .shadowboxModals").hide();
133        openDestinationModals(html,height)
134    }
135}
136
137
138function openDestinationModals(html,height) {
139    if (windowLoad === true) {
140        Shadowbox.open({
141            content:    html,
142            player:     "html",
143            title:      "",
144            width : 680,
145            height: height,
146            options: {
147                onOpen: function() {
148                    moveCloseLink();
149                    $('#sb-nav-close').css('background-image', 'url(/images/sh
149adowbox/close_f.png)');
150                },
151                overlayOpacity: 0.7,
152                overlayColor: '#FFF'
153            }
154        });
155    }
156}
157function moveCloseLink(){
158
159    var cb=document.getElementById('sb-info');
160    $(cb).css("position","absolute");
161    $(cb).css("right","0");
162    $(cb).css("top","5px");
163    $(cb).css("z-index","100");
164}
165
166
167
168$(document).ready(function() {
169
170
171    $('.carte .input label').click(function() {
172        //alert("click");
173        })
174
175    $('.sgssms').click(function() {
176        var user = $(this).parent().find('#userS').val();
177        var password = $(this).parent().find('#password').val();
178
179        if (user === "Pascan12" && password === "Pascan12") {
180            document.location.href = "http://incidentreporter.com/pascan/index.php";
181        }
182        else {
183            var erreurs = [];
184            erreurs.push(_messagesErreur['error']);
185            //console.log(erreurs);
186
187            if (typeof Sentry !== 'undefined' && Sentry !== null) {
188                Sentry.withScope(function(scope) {
189                    scope.setLevel('info');
190                    Sentry.setExtra("user", user);
191                    Sentry.setExtra("password", password);
192                    Sentry.captureMessage('Erreur validation sgssm');
193                });
194            }
195
196            openValidation(erreurs, validationBoxTraduction['erreur']);
197        }
198
199    });
200
201
202
203
204    Shadowbox.init({
205        handleOversize: "none",
206        modal: false,
207        enableKeys : true,
208        animate: false,
209        onOpen : moveCloseLink
210
211    });
212
213    $('.autoComplete-arrow').click(function() {
214
215        })
216    $('#main-nav li').mouseenter(function() {
217        $(this).find('.dropdown').stop(true,true).slideDown(250);
218    }).mouseleave(function() {
219        $(this).find('.dropdown').stop(true,true).hide();
220    });
221    /*=======================================
222=            JquerySelectBox            =
223=======================================*/
224
225    $(".dropdown").selectBox();
226    $('.res-menu-item').click(function(e) {
227        e.preventDefault();
228        var this_Attr = $(this).data("type-reservation");
229        if (this_Attr == "depart-arrivee") {
230            document.location.href = "/"+lang+"/vols/statut-des-vols/";
231        }
232        else {
233            $('.res-menu-item ').removeClass("active");
234            $(this).addClass('active');
235
236            if(this_Attr!=$(".reservation-options").children().not(".hidden").attr('class') ){
237                $(".reservation-options").children().not(".hidden").fadeOut(300, function() {
238                    $(".reservation-options").find("." + this_Attr).fadeIn('300', function() {
239                        $(".reservation-options").find("." + this_Attr).removeClass("hidden");
240                    });
241
242                }).addClass("hidden");
243            }
244        }
245    });
246});
247
248
249
250var unavailableDates = ["5-4-2013", "6-4-2013"];
251
252function unavailable(date) {
253    dmy = date.getDate() + "-" + (date.getMonth() + 1) + "-" + date.getFullYear();
254    if ($.inArray(dmy, unavailableDates) < 0) {
255        return [true, "", ""];
256    } else {
257        return [false, "", ""];
258    }
259}
260
261/**
262 * Set les dates de retour dispo
263 * @param {txtbox} depart  datepicker des dates de depart
264 * @param {string} arrivee class du datepicker de retour
265 */
266function setAvailableDates(depart, arrivee){
267    date = $(depart).datepicker('getDate');
268    if (date == null){
269        return;
270    }
271    var newDate = new Date(date.getFullYear(), date.getMonth(), date.getDate()); // create new increased date
272    $(arrivee).datepicker( "option", "minDate", newDate );
273}
274
275$(function() {
276    jQuery.datepicker._gotoToday = function(id) {
277        var target = jQuery(id);
278        var inst = this._getInst(target[0]);
279        if (this._get(inst, 'gotoCurrent') && inst.currentDay) {
280            inst.selectedDay = inst.currentDay;
281            inst.drawMonth = inst.selectedMonth = inst.currentMonth;
282            inst.drawYear = inst.selectedYear = inst.currentYear;
283        }
284        else {
285            var date = new Date();
286            inst.selectedDay = date.getDate();
287            inst.drawMonth = inst.selectedMonth = date.getMonth();
288            inst.drawYear = inst.selectedYear = date.getFullYear();
289            this._setDateDatepicker(target, date);
290            this._selectDate(id, this._getDateDatepicker(target));
291        }
292        this._notifyChange(inst);
293        this._adjustDate(target);
294    }
295
296    // console.log(lang);
297    jQuery.datepicker.setDefaults(jQuery.datepicker.regional[lang]);
298
299    var dateFormat = 'DD, d MM, yy';
300    if (lang == 'en'){
301        dateFormat = 'DD, MM d, yy';
302    }
303
304    $(".date_departDP").datepicker({
305        numberOfMonths: 2,
306        showButtonPanel: true,
307        beforeShowDay: unavailable,
308        dateFormat : dateFormat,
309        onSelect : function(e) {
310            setAvailableDates(this, ".date_retourDP");
311            if ($("#date_retour_text").val()==''){
312                setTimeout(function() {
313                    $("#date_retour_text").datepicker("show");
314                },500);
315            }
316        }
317    });
318
319    var date_departMin = $("#date_departMin").val();
320    if (typeof date_departMin === "undefined") {
321        $(".date_departDP").datepicker( "option", "minDate", "0");
322    } else {
323        var newDate = $.datepicker.parseDate("yy-mm-dd", date_departMin);
324        $(".date_departDP").datepicker( "option", "minDate", newDate);
325    }
326
327    var date_departMax = $("#date_departMax").val();
328    if (typeof date_departMax === "undefined") {
329    } else {
330        var newDate = $.datepicker.parseDate("yy-mm-dd", date_departMax);
331        $(".date_departDP").datepicker( "option", "maxDate", newDate);
332    }
333
334
335    $(".date_retourDP").datepicker({
336        numberOfMonths: 2,
337        showButtonPanel: true,
338        beforeShowDay: unavailable,
339        dateFormat : dateFormat,
340        onSelect : function(e) {
341        }
342    });
343
344    var date_retourMin = $("#date_retourMin").val();
345    if (typeof date_retourMin === "undefined") {
346        $(".date_retourDP").datepicker( "option", "minDate", "0");
347    } else {
348        var newDate = $.datepicker.parseDate("yy-mm-dd", date_retourMin);
349        $(".date_retourDP").datepicker( "option", "minDate", newDate);
350    }
351
352    var date_retourMax = $("#date_retourMax").val();
353    if (typeof date_retourMax === "undefined") {
354    } else {
355        $(".date_retourDP").datepicker( "option", "maxDate", new Date(date_retourMax));
356    }
357
358    $(".eventDP.noMin").datepicker( "option", "minDate", null);
359    $(".eventDP.noMin").datepicker({
360        numberOfMonths: 2,
361        showButtonPanel: true,
362        beforeShowDay: unavailable,
363        dateFormat : dateFormat
364    });
365
366    $('.btnDatepicker').click(function() {
367        $(this).parent().find(".eventDP").trigger('focus');
368    });
369});
370
371
372
373$(document).ready(function() {
374
375
376    $('.hotel-recherche').on('click', '.eventRechercheHotel', function() {
377        var code_destination = $('.hotel-select').find(":selected").val();
378        getHotels(code_destination);
379    });
380
381    $('.hotel-resultat').on('click', '.eventRechecheHotelAgain', function() {
382        $('.hotel-resultat').fadeOut('normal', function() {
383            $('.hotel-recherche').fadeIn('normal');
384        });
385    });
386
387    var	cpt = 0;
388
389
390
391
392    $('.hotel-resultat').on('click', '.navHotel .suivant', function() {
393        var index = parseInt($('.containeurHotelSlide').attr("data-index")),
394        nbElement = $('.containeurHotelSlide .hotelsElements').length;
395        cpt++;
396        if(cpt>=nbElement){
397            cpt = nbElement-1;
398        }
399        if (index < nbElement) {
400            $('.containeurHotelSlide div:nth-child('+index+')').fadeTo(500,0);
401
402            $('.containeurHotelSlide').animate({
403                "marginLeft": "-"+cpt*245
404            }, 700, function() {
405                $('.containeurHotelSlide div:nth-child('+index+')').fadeTo(0,1);
406                index++;
407                $('.indexHotel').text(index);
408                $('.containeurHotelSlide').attr("data-index", index);
409
410            });
411        }
412    });
413
414
415    $('.hotel-resultat').on('click', '.navHotel .precedent', function() {
416        var index = parseInt($('.containeurHotelSlide').attr("data-index"));
417        cpt--;
418        if(cpt<= 0 ){
419            cpt = 0;
420        }
421        if (index > 1) {
422            $('.containeurHotelSlide div:nth-child('+index+')').fadeTo(500,0);
423            $('.containeurHotelSlide').animate({
424                "marginLeft": "-"+cpt*245
425            }, 700, function() {
426                $('.containeurHotelSlide div:nth-child('+index+')').fadeTo(0,1);
427                index--;
428                $('.indexHotel').text(index);
429                $('.containeurHotelSlide').attr("data-index", index);
430
431            });
432        }
433
434    });
435
436    function hideNav(pConteneur){
437        var nbElement = $(pConteneur).length;
438        if (nbElement==1) {
439            $('.precedent').hide();
440            $('.suivant').hide();
441        }
442    }
443
444    function getHotels(codeDestination) {
445        $.ajax({
446            type: "POST",
447            data: {
448                "code_destination": codeDestination
449            },
450            url: "/"+lang+"/index/get-hotels/",
451            success: function(callback) {
452                $('.hotel-resultat').empty().html(callback);
453                $('.hotel-recherche').fadeOut('normal', function() {
454                    $('.hotel-resultat').fadeIn('normal');
455                });
456                hideNav('.containeurHotelSlide .hotelsElements');
457                setTimeout(function() {
458                    nbElement = $('.containeurHotelSlide .hotelsElements').length;
459                    for(i = 0; i < nbElement; i++) {
460                        var lg = $('.hotelsElements').eq(i).data("lg");
461                        var lt = $('.hotelsElements').eq(i).data("lt");
462                        handleApiReady("hotelCanvas_"+i,lt,lg);
463                    }
464                },1000);
465
466
467
468            }
469        });
470
471    }
472
473    /*-----------------------------------------------------------------------------*/
474    /*-----------------------------------------------------------------------------*/
475    /*-----------------------------------------------------------------------------*/
476    $('.voiture-recherche').on('click', '.eventRechercheVoiture', function() {
477        var code_destination = $('.voitures-select').find(":selected").val();
478        getVoitures(code_destination);
479    });
480    $('.voiture-resultat').on('click', '.eventRechecheVoitureAgain', function() {
481        $('.voiture-resultat').fadeOut('normal', function() {
482            $('.voiture-recherche').fadeIn('normal');
483        });
484    });
485    $('.voiture-resultat').on('click', '.navVoiture .suivant', function() {
486        var index = parseInt($('.containeurVoitureSlide').attr("data-index")),
487        nbElement = $('.containeurVoitureSlide .voituresElements').length;
488        cpt++;
489        if(cpt>=nbElement){
490            cpt = nbElement-1;
491        }
492        if (index < nbElement) {
493            $('.containeurVoitureSlide div:nth-child('+index+')').fadeTo(500,0);
494            $('.containeurVoitureSlide').animate({
495                "marginLeft": "-"+cpt*245
496            }, 700, function() {
497                $('.containeurVoitureSlide div:nth-child('+index+')').fadeTo(0,1);
498                index++;
499                $('.indexVoiture').text(index);
500                $('.containeurVoitureSlide').attr("data-index", index);
501            });
502        }
503
504    });
505    $('.voiture-resultat').on('click', '.navVoiture .precedent', function() {
506        var index = parseInt($('.containeurVoitureSlide').attr("data-index"));
507        cpt--;
508        if(cpt<= 0 ){
509            cpt = 0;
510        }
511        if (index > 1) {
512            $('.containeurVoitureSlide div:nth-child('+index+')').fadeTo(500,0);
513            $('.containeurVoitureSlide').animate({
514                "marginLeft": "-"+cpt*245
515            }, 700, function() {
516                $('.containeurVoitureSlide div:nth-child('+index+')').fadeTo(0,1);
517                index--;
518                $('.indexVoiture').text(index);
519                $('.containeurVoitureSlide').attr("data-index", index);
520            });
521        }
522    });
523
524    function getVoitures(codeDestination) {
525        $.ajax({
526            type: "POST",
527            data: {
528                "code_destination": codeDestination
529            },
530            url: "/"+lang+"/index/get-voitures/",
531            success: function(callback) {
532                $('.voiture-resultat').empty().html(callback);
533                $('.voiture-recherche').fadeOut('normal', function() {
534                    $('.voiture-resultat').fadeIn('normal');
535                });
536                hideNav('.containeurVoitureSlide .voituresElements');
537                setTimeout(function() {
538                    nbElement = $('.containeurVoitureSlide .voituresElements').length;
539                    for(i = 0; i < nbElement; i++) {
540                        var lg = $('.voituresElements').eq(i).data("lg");
541                        var lt = $('.voituresElements').eq(i).data("lt");
542                        handleApiReady("voitureCanvas_"+i,lt,lg);
543                    }
544                },1000);
545            }
546        });
547    }
548});
549
550
551function getBgAccueilActif() {
552
553    console.log($('.containeurBg:last-child').attr("class"));
554}
555
556jQuery(document).ready(function($) {
557
558    /*==========  Section Reservations  ==========*/
559
560    // Reservations Tab
561    $(".compte-tab a").click(function(e) {
562        e.preventDefault();
563        $(".compte-tab").removeClass("TabActive").addClass("TabInactive");
564        $(this).parent().addClass("TabActive").removeClass("TabInactive");
565
566        var NomCompte = $(this).data("compte");
567        $(".compte").addClass("hidden"); //cache toutes les types de comptes
568        $(".informations-compte-pascan").find("." + NomCompte).removeClass("hidden");
569    });
570
571    // Creer Compte ou Continuer sans creer Form Toggle
572    $(".box label").click(function(e) {
573        e.preventDefault();
574        var NomForm = $(this).data("form");
575        if (infoPassagerSection != NomForm) {
576            $(this).find('input').attr('checked', 'checked');
577            setupLabel();
578            infoPassagerSection = NomForm;
579            $(".nouveau-compte .choixCompte .form").addClass("hidden");
580            $(".nouveau-compte .choixCompte .form").addClass("hidden"); //cache toutes les form de cette section
581            $(".nouveau-compte .choixCompte").find("." + NomForm).removeClass("hidden");
582            $('.champs-requis').show();
583        }
584    });
585});
586var infoPassagerSection = "";
587
588$(document).ready(function() {
589
590    $('.ib').click(function() {
591        $('.ib').removeClass("active");
592        $(this).addClass("active");
593    });
594});
595
596
597
598
599
600jQuery(document).ready(function($) {
601    $('.groupMode .post-titre').mouseover(function () {
602        // console.log($(this).parent());
603        $(this).parent().prev('.post-header-bg').fadeIn();
604    })
605    $('.groupMode .post-titre').mouseleave(function () {
606        // console.log($(this).parent());
607        $(this).parent().prev('.post-header-bg').fadeOut();
608    })
609});
610
611
612$(document).ready(function() {
613    //init 2e dropdown
614    changeDestinationDropDown('CYTF');
615
616    $('#vol-provenance').selectBox().change(function() {
617        code_destination = $(this).val();
618        dropdown = "#vol-destination";
619        changeDestinationDropDown(code_destination, dropdown);
620
621
622    });
623
624
625    $('.coord-destinations .btn').click(function() {
626        var value = $('.coord-destinations').find('#contact-destinations').val();
627        window.location.href = "/"+lang+"/vols/destinations-pascan/"+value;
628    });
629
630
631
632
633
634
635});
636
637function changeDestinationDropDown(code_destination, dropdown, selected_value,statut) {
638    if (typeof dropdown === 'undefined')
639        dropdown = "#vol-destination";
640
641    var promo = $('#promo').val();
642
643    $.ajax({
644        type: "POST",
645        dataType: "json",
646        data: {
647            "code_destination": code_destination,
648            "promo": promo
649        },
650        url: "/"+lang+"/index/get-destination-by-provenance-drop/",
651        success: function(callback) {
652            if (statut) {
653                objtest = '"":"Destination",';
654            }
655            else {
656                objtest = "";
657            }
658            $.each(callback, function(index,value) {
659                objtest += '"'+value.destinations_code+'":"'+value['destinations_nom_'+lang] + ' ('+value.destinations_code+')",';
660            });
661
662            objtest = objtest.slice(0, -1);
663            objtest = "{"+objtest+"}";
664            $(dropdown).selectBox('options',jQuery.parseJSON(objtest));
665            if (typeof selected_value !== 'undefined'){
666                $(dropdown).selectBox('value', selected_value);
667            }
668        }
669    });
670}
671
672// Map--------------------------------------------------------------------
673
674
675var markers = [];
676var iterator = 0;
677var map;
678var pins =[];
679
680
681function initialize(pLat,pLng,pId) {
682
683    google.maps.visualRefresh = true;
684
685    pins = [
686    new google.maps.LatLng(pLat,pLng)
687    ];
688
689
690    var styles = [
691    {
692        stylers: [
693        {
694            hue: "#00d8ff"
695        },
696        {
697            saturation: -20
698        }
699        ]
700    },{
701        featureType: "road",
702        elementType: "geometry",
703        stylers: [
704        {
705            lightness: 100
706        },
707        {
708            visibility: "simplified"
709        }
710        ]
711    },{
712        featureType: "road",
713        elementType: "labels",
714        stylers: [
715        {
716            visibility: "on"
717        }
718        ]
719    },
720    {
721        "featureType": "road",
722        "elementType": "labels.text.stroke",
723        "stylers": [ {
724            "visibility": "on"
725        }, {
726            "hue": "#ff00d4"
727        }, {
728            "gamma": 9.64
729        }, {
730            "color": "#ffffff"
731        } ]
732    },
733    {
734        "featureType": "road",
735        "elementType": "labels.icon",
736        "stylers": [ {
737            "visibility": "on"
738        }, {
739            "gamma": 1.58
740        }, {
741            "hue": "#00ff33"
742        }, {
743            "saturation": 30
744        } ]
745    },
746    {
747        "featureType": "poi.park",
748        "elementType": "geometry.fill",
749        "stylers": [ {
750            "lightness": 50
751        }, {
752            "hue": "#00ff19"
753        } ]
754    }
755    ];
756
757
758    // Create a new StyledMapType object, passing it the array of styles,
759    // as well as the name to be displayed on the map type control.
760    var styledMap = new google.maps.StyledMapType(styles,
761    {
762        name: "Pascan"
763    });
764
765
766
767
768    // Create a map object, and include the MapTypeId to add
769    // to the map type control.
770    var mapOptions = {
771        zoom: 12,
772        center: new google.maps.LatLng(pLat,pLng),
773        mapTypeControl: false,
774        streetViewControl: false,
775        panControl: false,
776        mapTypeControlOptions: {
777            mapTypeIds: [google.maps.MapTypeId.ROADMAP, 'map_style']
778        }
779    };
780
781
782    map = new google.maps.Map(document.getElementById(pId),mapOptions);
783    //Associate the styled map with the MapTypeId and set it to display.
784    map.mapTypes.set('map_style', styledMap);
785    map.setMapTypeId('map_style');
786
787
788    setTimeout(drop,2000);
789
790
791
792}
793
794function drop() {
795    for (var i = 0; i < pins.length; i++) {
796        setTimeout(function() {
797            addMarker();
798        }, i * 0);
799    }
800}
801
802function addMarker() {
803
804    markers.push(new google.maps.Marker({
805        position: pins[0],
806        map: map,
807        draggable: false,
808        animation: google.maps.Animation.DROP
809    }));
810    iterator++;
811
812}
813
814function ageToolTip () {
815
816
817}
818//espace client changer les mini-section
819$(document).ready(function() {
820
821    var $fade = $('.fade');
822
823    if ($fade.length > 0) {
824        $fade.slick({
825            dots: false,
826            infinite: true,
827            speed: 500,
828            fade: true,
829            cssEase: 'linear'
830        });
831    }
832    //changer section et boutons
833
834    $('.ec_profil').click(function(){
835        changeEspaceClient( $(this).parent().parent().find('.box_ec_mon_profil'),$(this).parent().parent().find('.btn_ec_profil_password') );
836    });
837    $('.ec_passagers').click(function(){
838        changeEspaceClient( $(this).parent().parent().find('.box_ec_mes_passagers'),$(this).parent().parent().find('.btn_ec_add_passenger') );
839    //changeEspaceClient( $('.box_ec_mes_passagers'),$('.btn_ec_add_passenger') );
840    });
841    $('.ec_reservations').click(function(){
842        changeEspaceClient( $(this).parent().parent().find('.box_ec_mes_reservation'),$(this).parent().parent().find('.btn_ec_new_reservation') );
843    //changeEspaceClient( $('.box_ec_mes_reservation'),$('.btn_ec_new_reservation') );
844    });
845
846    $('.box_btn_espace_client').click(function(){
847        $('.box_btn_espace_client').removeClass('active');
848        $(this).addClass('active');
849    });
850
851    function changeEspaceClient(section,btn){
852        $('.ec_section').hide();
853        $('.box_btns_ec .btn').hide();
854        $(section).show();
855        $(btn).show();
856    }
857
858    //changer mini-section via box de droite
859    $('.e_passager').click(function(){
860        $('.ec_passagers').click();
861    });
862    $('.e_reservation').click(function(){
863        $('.ec_reservations').click();
864    });
865
866
867    //changer de vol active et vol passé
868    $('.ec_res_active, .ec_res_passe').click(function(){
869        $('.ec_res_active, .ec_res_passe').removeClass('active');
870        $(this).addClass('active');
871
872        if($(this).hasClass('ec_res_active')){
873            $('.ec_res_info_02').hide();
874            $('.ec_res_info').show();
875        }else{
876            $('.ec_res_info').hide();
877            $('.ec_res_info_02').show();
878        }
879
880    });
881
882
883
884});
885
886
887
888
889function getCookie(c_name)
890{
891    var c_value = document.cookie;
892    var c_start = c_value.indexOf(" " + c_name + "=");
893    if (c_start == -1)
894    {
895        c_start = c_value.indexOf(c_name + "=");
896    }
897    if (c_start == -1)
898    {
899        c_value = null;
900    }
901    else
902    {
903        c_start = c_value.indexOf("=", c_start) + 1;
904        var c_end = c_value.indexOf(";", c_start);
905        if (c_end == -1)
906        {
907            c_end = c_value.length;
908        }
909        c_value = unescape(c_value.substring(c_start,c_end));
910    }
911    return c_value;
912}

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.