1$(document).ready(function(){ 2 $(document).ready(() => { 3 $("form").on("submit", e => { 4 $(":submit", e.currentTarget).on("click", e => false) 5 }) 6 }) 7 if ($("div").is("#diapo-main")){ 8 $("#diapo-main ul.diaporama").slick({ 9 dots: false, 10 infinite: true, 11 autoplay:true, 12 autoplaySpeed:5000, 13 fade: true 14 }); 15 } 16 if($("div").is("#catalogue_main")){$('#catalogue_main a').lightBox();} 17 $("#frmnewsletter #email").focus(function(){ 18 if (($("#frmnewsletter #email").val() == "Votre e-mail")||($("#frmnewsletter #email").val() == "E-mail incorrect")) 19 { 20 $("#frmnewsletter #email").val(""); 21 } 22 }).blur(function(){ 23 if (($("#frmnewsletter #email").val() == "")||($("#frmnewsletter #email").val() == "E-mail incorrect")) 24 { 25 $("#frmnewsletter #email").val("Votre e-mail"); 26 } 27 }); 28 if($("#dialog-main a").hasClass("reglement")){ 29 $("#dialog-main").click(function(){$(this).hide();}); 30 } 31 $("#dialog-close").click(function(){$("#dialog-main").hide();}); 32 $(".reloadPos,.autourdemoi").click(function(){GeoLocalisation(1)}); 33 $("#geolocalisation").click(function(){initialize(); showMapAll();}); 34 $("#popupLogin #btnlogin").click(function(){GNVlogin("popup")}); 35 $("a.btn").button(); 36 //$("a").click(function(){$.mobile.loading( 'show' );}); 37 //$(".btnback").click(function(){history.go(-1);}); 38 //$("a").click(function(){$.mobile.loading( "show" );setTimeout("$.mobile.loading('hide');", 8000);}); 39 if ($.mobile){ 40 41 $("#Ficheadherent a").click(function(){$.mobile.loading( 'hide' );}); 42 $("#btn-login a").click(function(){$.mobile.loading( 'hide' );}); 43 $(".groupe6 #btn-login a").click(function(){$.mobile.loading( 'show' );}); 44 $("#saisieman a").click(function(){$.mobile.loading( 'hide' );}); 45 $(".action a").click(function(){$.mobile.loading( 'hide' );}); 46 $(".historique a").click(function(){$.mobile.loading( 'hide' );}); 47 $("#saisiecodebarre h2").click(function(){$("#saisieman").slideDown();}); 48 $(".noload").click(function(){$.mobile.loading( 'hide' ); }); 49 $(".sitemobile #DerniersTickets").click(function(){$("#DerniersTickets-content").toggle() }); 50 $(".ui-collapsible-inset a").click(function(){$.mobile.loading( 'hide' );}); 51 } 52 53 // $("#MonCompte .frm").validate(); 54 $("#MonCompte #zip").change(function(){ 55 $("#MonCompte #mkg_ville").hide() 56 if($("#MonCompte #ville").val()!=$("#villeComercea").val()){$("#MonCompte #mkg_ville").show()} 57 }); 58 //debugapp(''); 59 60 $("#drive_theme").on("click", ".drive_famille_item",function(){ 61 //$("#drive_theme").find(".drive_famille_item").animate({height: '100px'}, 500); 62 $("#drive_theme").find(".drive_famille_ssitem").hide(); 63 //$(this).animate({height: '45px'}, 500, function() { 64 // Animation complete. chargement de la sous famille 65 var monid=$(this).attr('id'); 66 $.post("/Portal_annuaire/Ajax/drive_famille.asp",{"id":monid},function(data){$("#lst_"+monid).html(data).show();}); 67 //}); 68 } 69 ); 70 $("#drive_theme").on("click", ".drive_famille_ssitem li.drive_f1",function(){ 71 72 var monid=$(this).attr('id'); 73 var monidpar=$(this).data("famille") 74 $.post("/Portal_annuaire/Ajax/drive_familless.asp",{"id":monid,"famille":monidpar},function(data){$("#lst_drive_"+monidpar).html(data).show();}); 75 } 76 ); 77 $("#drive_theme").on("click", ".drive_sf2ul li",function(){ 78 $(".triangle1").hide(); 79 $(".drive_sf2ul").hide(0); 80 $(".drive_lstprod").hide(0); 81 82 var monid=$(this).attr('id'); 83 var monidpar=$(this).data("famille") 84 $.post("/Portal_annuaire/Ajax/drive_famillessss.asp",{"id":monid,"famille":monidpar},function(data){$("#drive_lstprod"+monidpar).html(data).show();}); 85 } 86 ); 87 88 $("#drive_theme").on("click", ".drive_lstprod",function(){ 89 $(".drive_sf2ul").hide(); 90 $(this).hide(); 91 $(".drive_lstproddiv").show(); 92 var monid=$(this).data("famille") 93 $.post("/Portal_annuaire/Ajax/drive_famillelstprod.asp",{"id":monid},function(data){$("#drive_lstprod"+monid).html(data).show();}); 94 } 95 96 ); 97 98 $("#drive_barre").on("keyup","#drive_RechTxt",function(){ 99 relache_drive_Rech(); 100 }); 101 $("#drive_barre").on("keydown","#drive_RechTxt",function(){ 102 appuie_drive_Rech(); 103 }); 104 105 $("#drive_theme").on("click", ".drive_lib_ssf",function(){ 106 $(".triangle1").show(); 107 $(".drive_sf2ul").show(); 108 $(".drive_lstprod").show(); 109 $(".drive_lstproddiv").html(""); 110 }); 111 112 $("#content").on("click", ".drive_prod_lib,.drive_prod_photo",function(){ 113 $(this).parent().children(".drive_prod_desclong").toggle(); 114 }); 115 116 117 $("#content").on("click", ".drive_add",function(){ 118 var monid=$(this).data('id'); 119 var monstock=eval($(this).next().data('stock')); 120 $("#qty_"+monid).val(1); 121 $("#qty_disp_"+monid).html($("#qty_"+monid).val()); 122 $(this).hide(); 123 $(this).next().toggle(); 124 if (eval($("#qty_"+monid).val()) == monstock) {$("#msg_"+monid).show();} 125 $.post("/Portal_annuaire/Ajax/drive_caddie.asp",{"id_art":monid,"m_mode":"add"},function(data){ 126 $("#panier_compte").html(data); 127
128 if ($("#drive_listing").css('display') == 'block') { 129 $("#tot_ssfrais").val(data.replace(" €", "")); 130 $.post("/Portal_annuaire/Ajax/drive_caddie.asp",{"m_mode":"totcommande","m_retrait":$("#formlstprod input[name=drive_consigne]:checked").val()},function(data){ 131 $("#DIVfraisport").html(data); 132 if($("#item0").css('display') == 'none') 133 { 134 $("#drive_afftot").html($("#tot_ssfrais").val()); 135 $("#drive_afftotart").html($("#tot_ssfrais").val()); 136 $("#tot_cmde").val($("#tot_ssfrais").val()); 137 } 138 else { 139 $("#drive_afftot").html($("#tot_avecfrais").val()); 140 $("#drive_afftotart").html($("#tot_ssfrais").val()); 141 $("#tot_cmde").val($("#tot_avecfrais").val()); 142 } 143 $.post("/Portal_annuaire/Ajax/drive_caddie.asp",{"id_com":$("#id_com"+monid).val(),"m_mode":"totcom"},function(data){$("#drive_prod_totcommerce"+$("#id_com"+monid).val()).html(data);}); 144 }); 145 } 146 }); 147 }); 148 149 150 $("#content").on("click", ".drive_moins",function(){ 151 var monid=$(this).parent().data('id'); 152 if ($("#qty_"+monid).val()==1) { 153 $("#qty_"+monid).val(0); 154 $("#btn_add_"+monid).show(); 155 $(this).parent().hide(); 156 $("#msg_"+monid).hide(); 157 } 158 else { 159 $("#qty_"+monid).val(eval($("#qty_"+monid).val())-1); 160 $("#qty_disp_"+monid).html($("#qty_"+monid).val()); 161 $("#msg_"+monid).hide(); 162 } 163 $.post("/Portal_annuaire/Ajax/drive_caddie.asp",{"id_art":monid,"m_mode":"del"},function(data){ 164 $("#panier_compte").html(data); 165 if ($("#drive_listing").css('display') == 'block') { 166 $("#tot_ssfrais").val(data.replace(" €", "")); 167 $.post("/Portal_annuaire/Ajax/drive_caddie.asp",{"m_mode":"totcommande","m_retrait":$("#formlstprod input[name=drive_consigne]:checked").val()},function(data){ 168 $("#DIVfraisport").html(data); 169 if($("#item0").css('display') == 'none') 170 { 171 $("#drive_afftot").html($("#tot_ssfrais").val()); 172 $("#drive_afftotart").html($("#tot_ssfrais").val()); 173 $("#tot_cmde").val($("#tot_ssfrais").val()); 174 } 175 else { 176 $("#drive_afftot").html($("#tot_avecfrais").val()); 177 $("#drive_afftotart").html($("#tot_ssfrais").val()); 178 $("#tot_cmde").val($("#tot_avecfrais").val()); 179 } 180 if ($("#qty_"+monid).val()==0) { 181 $("#item"+monid).hide(); 182 } 183 else { 184 $.post("/Portal_annuaire/Ajax/drive_caddie.asp",{"id_com":$("#id_com"+monid).val(),"m_mode":"totcom"},function(data){$("#drive_prod_totcommerce"+$("#id_com"+monid).val()).html(data);}); 185 } 186 }); 187 188 189 } 190 }); 191 192 }); 193 $("#content").on("click", ".drive_plus",function(){ 194 var monid=$(this).parent().data('id'); 195 var monstock=eval($(this).parent().data('stock')); 196 if (eval($("#qty_"+monid).val()) < monstock) { 197 $("#qty_"+monid).val(eval($("#qty_"+monid).val())+1); 198 $("#qty_disp_"+monid).html($("#qty_"+monid).val()); 199 $.post("/Portal_annuaire/Ajax/drive_caddie.asp",{"id_art":monid,"m_mode":"add"},function(data){ 200 $("#panier_compte").html(data); 201 if ($("#drive_listing").css('display') == 'block'){ 202 $("#tot_ssfrais").val(data.replace(" €", "")); 203 $.post("/Portal_annuaire/Ajax/drive_caddie.asp",{"m_mode":"totcommande","m_retrait":$("#formlstprod input[name=drive_consigne]:checked").val()},function(data){ 204 $("#DIVfraisport").html(data); 205 $.post("/Portal_annuaire/Ajax/drive_caddie.asp",{"id_com":$("#id_com"+monid).val(),"m_mode":"totcom"},function(data){$("#drive_prod_totcommerce"+$("#id_com"+monid).val()).html(data);}); 206 if($("#item0").css('display') == 'none') 207 { 208 $("#drive_afftot").html($("#tot_ssfrais").val()); 209 $("#drive_afftotart").html($("#tot_ssfrais").val()); 210 $("#tot_cmde").val($("#tot_ssfrais").val()); 211 } 212 else { 213 $("#drive_afftot").html($("#tot_avecfrais").val()); 214 $("#drive_afftotart").html($("#tot_ssfrais").val()); 215 $("#tot_cmde").val($("#tot_avecfrais").val()); 216 } 217 }); 218 } 219 }); 220 if (eval($("#qty_"+monid).val()) == monstock) {$("#msg_"+monid).show();} 221 } 222 223 }); 224 $("#drive_barre").on("click", "#panier_ico",function(){ 225 $("#drive_resrech1").hide();
226 if($("#drive_listing").css('display') == 'none') 227 { 228 $.post("/Portal_annuaire/Ajax/drive_caddie.asp",{"m_mode":"list"},function(data){$("#drive_listing").html(data); 229 $("#formlstprod").validate(); 230 $("#formlstprod").on("click", "#drive_cmd1",function(event){ 231 var norreor=0; 232 event.preventDefault(); 233 if (($("#btnChoixDrive").length<=0)||($("#btnChoixDrive").css('display') == 'none')) { 234 norreor=0; 235 } 236 else { 237 norreor=1; 238 alert("Merci de choisir un drive"); 239 } 240 241 var mtot=$("#tot_cmde").val(); 242 if (($("#drive_paiement1").length>=0)&&($("#drive_paiement1").is(":checked"))&&( parseFloat(mtot.replace(/\./g,'').replace(',', '.'))<20)) { 243 norreor=1; 244 alert("Pour pouvoir régler votre commande par CB, le montant minimum de commande est de 20â¬"); 245 } 246 247 if ($("#formlstprod input[name=drive_consigne]:checked").val()==2) { 248 $.post("/Portal_annuaire/Ajax/drive_verif_coord.asp",{},function(data){ 249 if (data==0) { 250 alert("Pour pouvoir bénéficier du service de livraison à domicile, merci de compléter votre adresse postale et votre numéro de téléphone."); 251 top.location='/moncompte/'; 252 } 253 else { 254 if (norreor==0) $("#formlstprod").submit(); 255 } 256 }); 257 } 258 else { 259 if (norreor==0) $("#formlstprod").submit(); 260 } 261 }); 262 if ($("#goancre").length) {$('html,body').animate({scrollTop: $("#"+$("#goancre").val()+"").offset().top}, 'slow');} 263 }); 264 } 265 else { 266 $("#drive_listing").html(""); 267 } 268 $("#drive_listing").toggle(); 269 $("#btnChoixDrive").toggle(); 270 $("#drive_theme").toggle(); 271 272 }); 273 $("#drive_listing").on("change", ".switch_frais",function(){ 274 if (this.value==2) {$("#drive_choixRetraittitre").html("Date de livraison souhaitée");}else {$("#drive_choixRetraittitre").html("Date de retrait souhaitée");} 275 $.post("/Portal_annuaire/Ajax/drive_caddie.asp",{"m_mode":"totcommande","m_retrait":this.value},function(data){ 276 $("#DIVfraisport").html(data); 277 if ($("#formlstprod input[name=drive_consigne]:checked").val()==1){$("#btnChoixDrive").show();$(".drive_toggle").show()} else {$("#btnChoixDrive").hide();$(".drive_toggle").hide()} 278 if ($("#tot_cmde").val()!=$("#tot_avecfrais").val()){ 279 $("#drive_afftot").html($("#tot_avecfrais").val()); 280 $("#tot_cmde").val($("#tot_avecfrais").val()); 281 $("#item0").show(); 282 } 283 else { 284 $("#drive_afftot").html($("#tot_avecfrais").val()); 285 $("#tot_cmde").val($("#tot_avecfrais").val()); 286 $("#item0").hide(); 287 } 288 if ($("#formlstprod input[name=drive_consigne]:checked").val()>0)
289 {if($('#drive_paiement0').is(':checked')) {$("#drive_paiement0").prop("checked", false);$("#drive_paiement1").prop("checked", true);} $("#drive_paiement0").prop( "disabled", true );} 290 else { 291 $("#drive_paiement0").prop( "disabled", false ); 292 } 293 }); 294 $.post("/Portal_annuaire/Ajax/drive_getDretrait.asp",{"m_retrait":this.value,"lst_idcom":$("#lst_idcom").val(),"nb_com":$("#nb_com").val()},function(data){ 295 $("#dreservation").html(data); 296 }); 297 298 }); 299 300 $(document).on("change","#dateresa",function(){ 301 $.post("/Portal_annuaire/Ajax/drive_get_horaire.asp",{"m_retrait":$("#formlstprod input[name=drive_consigne]:checked").val(),"datejour":$(this).val(),"lst_idcom":$("#lst_idcom").val()},function(data){ 302 $("#heure-reservation").html(data); 303 }); 304 }); 305 306 307}); 308function loadPointsRetrait(strMode, intDist){ 309 if(strMode=="carte"){ 310 $("#resRech").html("<div id='carteGM'></div>"); 311 312 $("#carteGM").goMap({scaleControl: true, maptype: "ROADMAP", streetViewControl: false, zoom: defzoom, latitude: deflat, longitude: deflon}); 313 $.post("/portal_annuaire/ajax/geoPointsVente.asp", {"ouvert":"1","distance":intDist}, function(data){ 314 $(".bSearch .map").hide(); $(".bSearch .liste").show(); 315 if(data){ 316 if(data.length>0){ 317 var ul = $("<ul class='nopuce resultats'>") 318 for(var i = 0, l = data.length; i < l; i++) { 319 var marker = data[i]; 320 $.goMap.createMarker({ 321 latitude: marker.lat, 322 longitude: marker.lon, 323 icon:marker.icone, 324 id:'marker_'+marker.id, 325 html:marker.horaires 326 + "<a href='" +marker.urladd+ "' class='btn selretrait'>Choisir ce point de retrait</a>" 327 // + "<div class='adresse'>" +marker.adresse+ "</div>" 328 // + "<div class='horaires'>" +marker.horaires + "</div>" 329 // + "</div>" 330 }); 331 var li = "<li class='item'>" 332 + "<div class='right btn-box'>" 333 + "<button type='button' class='btn btnLocaliser' data-objid='marker_"+marker.id+"'>Localiser</button>" 334 + "<a href='" +marker.urladd+ "' class='btn selretrait right'>Choisir ce point</a>" 335 + "</div>" 336 + "<div class='left details-box'>" + marker.horaires + "</div>" 337 + "<div class='clear'></div></li>" 338 ; 339 ul.append(li); 340 } 341 var markers = []; 342 for (var i in $.goMap.markers) { 343 var temp = $($.goMap.mapId).data($.goMap.markers[i]); 344 markers.push(temp); 345 } 346 markerclusterer = new MarkerClusterer($.goMap.map, markers); 347 $.goMap.fitBounds(); 348 $("#listingRech").html(ul); 349 } 350 } 351 $("#listingRech").on("click", ".btnLocaliser", function(){ 352 var objid = $(this).attr("data-objid"); 353 $.goMap.fitBounds('markers',[objid]); 354 google.maps.event.trigger($($.goMap.mapId).data(objid), 'click'); 355 $.goMap.setMap({zoom:16}); 356 $('html,body').animate({scrollTop: $("#resRech").offset().top}, 'slow'); 357 }); 358 }, 'json'); 359 360 }else{ 361 // $.post("/portal_annuaire/ajax/recherche_ouverts.asp", {"mode":strMode, "distance": intDist},function(data){ 362 // $("#resRech").html(data); 363 // }); 364 $.post("/portal_annuaire/ajax/recherche_ouverts.asp", {"mode":"liste", "distance": intDist}, function(data){ 365 var total = data[0].total; 366 var content = data[0].content; 367 if(total=="0"){ 368 $("#btnModeRes").hide(); 369 }else{ 370 $("#btnModeRes").show(); 371 if (strMode=="liste"){ 372 $(".bSearch .map").show(); $(".bSearch .liste").hide(); 373 } 374 else{ 375 $(".bSearch .map").hide(); $(".bSearch .liste").show(); 376 } 377 378 } 379 $("#resRech").html(content); 380 }, "json"); 381 382 // $.post("/portal_annuaire/ajax/recherche_ouverts.asp", {"mode":"liste", "distance": intDist}, function(data){ 383 // var ret = JSON.parse(data); 384 // total = ret[0].total; 385 // content = ret[0].content; 386 // $("#resRech").html(content); 387 // }); 388 } 389 //if(firstLoad==0){$(".bSearch .map").toggleClass("hide"); $(".bSearch .liste").toggleClass("hide");} 390 } 391 392 393var RechTxt=0; 394function appuie_drive_Rech(){clearTimeout(RechTxt);RechTxt=0;} 395function relache_drive_Rech(){if(RechTxt==0){RechTxt=setTimeout("cherche_driveprod()",400);}} 396function cherche_driveprod() { 397 $.post("/Portal_annuaire/Ajax/drive_searchprod.asp",{"rechTxt":$("#drive_RechTxt").val()},function(data){$("#drive_listing").html("").hide();$("#drive_resrech1").html(data).show(300);}); 398 399}
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.