Back to top

le marché de Pessac et des Capus

Accueil » le marché de Pessac et des Capus
/* Source and licensing information for the line(s) below can be found at https://france3-regions.francetvinfo.fr/nouvelle-aquitaine/sites/all/modules/custom/fr3r_newsletter_text/scripts/newsletter_inscription.js. */
(function(e){Drupal.behaviors.newsletter_inscription={attach:function(n,o){var t=e('#fr3-footer #nl-box-btn:not(.inscription-processed)');if(t.length){e('#fr3-footer #nl-box-btn').on('click',function(e){r(e)});e('#fr3-footer .abonner form').on('submit',function(e){r(e)});e('#fr3-footer #nl-box-btn').addClass('inscription-processed')};function r(n){var r=e('#fr3-footer #nl-box-email').val(),t=o.base_url;if(r==''){alert('Veuillez saisir une adresse email.')}
else if(!r.match('^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z]{2,})$')){alert('Veuillez saisir une adresse email correcte.')}
else{console.log('NL is sent');e.ajax({type:'GET',url:t+'/newsletter/inscription/'+r,async:!1,success:function(e,n,o){alert(e);console.log(e)},error:function(e,n,o){alert(e);console.log(e)}})};n.preventDefault()}}}}(jQuery));;
/* Source and licensing information for the above line(s) can be found at https://france3-regions.francetvinfo.fr/nouvelle-aquitaine/sites/all/modules/custom/fr3r_newsletter_text/scripts/newsletter_inscription.js. */
/* Source and licensing information for the line(s) below can be found at https://france3-regions.francetvinfo.fr/nouvelle-aquitaine/misc/autocomplete.js. */
(function(t){Drupal.behaviors.autocomplete={attach:function(e,i){var s=[];t('input.autocomplete',e).once('autocomplete',function(){var i=this.value;if(!s[i]){s[i]=new Drupal.ACDB(i)};var e=t('#'+this.id.substr(0,this.id.length-13)).attr('autocomplete','OFF').attr('aria-autocomplete','list');t(e[0].form).submit(Drupal.autocompleteSubmit);e.parent().attr('role','application').append(t('<span class="element-invisible" aria-live="assertive"></span>').attr('id',e.attr('id')+'-autocomplete-aria-live'));new Drupal.jsAC(e,s[i])})}};Drupal.autocompleteSubmit=function(){return t('#autocomplete').each(function(){this.owner.hidePopup()}).length==0};Drupal.jsAC=function(e,i){var s=this;this.input=e[0];this.ariaLive=t('#'+this.input.id+'-autocomplete-aria-live');this.db=i;e.keydown(function(t){return s.onkeydown(this,t)}).keyup(function(t){s.onkeyup(this,t)}).blur(function(){s.hidePopup();s.db.cancel()})};Drupal.jsAC.prototype.onkeydown=function(t,e){if(!e){e=window.event};switch(e.keyCode){case 40:this.selectDown();return!1;case 38:this.selectUp();return!1;default:return!0}};Drupal.jsAC.prototype.onkeyup=function(t,e){if(!e){e=window.event};switch(e.keyCode){case 16:case 17:case 18:case 20:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:return!0;case 9:case 13:case 27:this.hidePopup(e.keyCode);return!0;default:if(t.value.length>0&&!t.readOnly){this.populatePopup()}
else{this.hidePopup(e.keyCode)};return!0}};Drupal.jsAC.prototype.select=function(e){this.input.value=t(e).data('autocompleteValue');t(this.input).trigger('autocompleteSelect',[e])};Drupal.jsAC.prototype.selectDown=function(){if(this.selected&&this.selected.nextSibling){this.highlight(this.selected.nextSibling)}
else if(this.popup){var e=t('li',this.popup);if(e.length>0){this.highlight(e.get(0))}}};Drupal.jsAC.prototype.selectUp=function(){if(this.selected&&this.selected.previousSibling){this.highlight(this.selected.previousSibling)}};Drupal.jsAC.prototype.highlight=function(e){if(this.selected){t(this.selected).removeClass('selected')};t(e).addClass('selected');this.selected=e;t(this.ariaLive).html(t(this.selected).html())};Drupal.jsAC.prototype.unhighlight=function(e){t(e).removeClass('selected');this.selected=!1;t(this.ariaLive).empty()};Drupal.jsAC.prototype.hidePopup=function(e){if(this.selected&&((e&&e!=46&&e!=8&&e!=27)||!e)){this.select(this.selected)};var i=this.popup;if(i){this.popup=null;t(i).fadeOut('fast',function(){t(i).remove()})};this.selected=!1;t(this.ariaLive).empty()};Drupal.jsAC.prototype.populatePopup=function(){var e=t(this.input),i=e.position();if(this.popup){t(this.popup).remove()};this.selected=!1;this.popup=t('<div id="autocomplete"></div>')[0];this.popup.owner=this;t(this.popup).css({top:parseInt(i.top+this.input.offsetHeight,10)+'px',left:parseInt(i.left,10)+'px',width:e.innerWidth()+'px',display:'none'});e.before(this.popup);this.db.owner=this;this.db.search(this.input.value)};Drupal.jsAC.prototype.found=function(e){if(!this.input.value.length){return!1};var i=t('<ul></ul>'),s=this;for(key in e){t('<li></li>').html(t('<div></div>').html(e[key])).mousedown(function(){s.hidePopup(this)}).mouseover(function(){s.highlight(this)}).mouseout(function(){s.unhighlight(this)}).data('autocompleteValue',key).appendTo(i)};if(this.popup){if(i.children().length){t(this.popup).empty().append(i).show();t(this.ariaLive).html(Drupal.t('Autocomplete popup'))}
else{t(this.popup).css({visibility:'hidden'});this.hidePopup()}}};Drupal.jsAC.prototype.setStatus=function(e){switch(e){case'begin':t(this.input).addClass('throbbing');t(this.ariaLive).html(Drupal.t('Searching for matches...'));break;case'cancel':case'error':case'found':t(this.input).removeClass('throbbing');break}};Drupal.ACDB=function(t){this.uri=t;this.delay=300;this.cache={}};Drupal.ACDB.prototype.search=function(e){var i=this;this.searchString=e;e=e.replace(/^\s+|\.{2,}\/|\s+$/g,'');if(e.length<=0||e.charAt(e.length-1)==','){return};if(this.cache[e]){return this.owner.found(this.cache[e])};if(this.timer){clearTimeout(this.timer)};this.timer=setTimeout(function(){i.owner.setStatus('begin');t.ajax({type:'GET',url:i.uri+'/'+Drupal.encodePath(e),dataType:'json',success:function(t){if(typeof t.status=='undefined'||t.status!=0){i.cache[e]=t;if(i.searchString==e){i.owner.found(t)};i.owner.setStatus('found')}},error:function(t){Drupal.displayAjaxError(Drupal.ajaxError(t,i.uri))}})},this.delay)};Drupal.ACDB.prototype.cancel=function(){if(this.owner)this.owner.setStatus('cancel');if(this.timer)clearTimeout(this.timer);this.searchString=''}})(jQuery);;
/* Source and licensing information for the above line(s) can be found at https://france3-regions.francetvinfo.fr/nouvelle-aquitaine/misc/autocomplete.js. */
/* Source and licensing information for the line(s) below can be found at https://france3-regions.francetvinfo.fr/nouvelle-aquitaine/sites/all/modules/custom/fr3r_ajax_blocks/scripts/fr3r_ajax_blocks.js. */
(function(a){Drupal.behaviors.fr3r_ajax_blocks={attach:function(r,t){for(i in Drupal.settings.fr3r_ajax_blocks){a(Drupal.settings.fr3r_ajax_blocks[i].selector,r).once('fr3r_ajax_blocks',function(){e(Drupal.settings.fr3r_ajax_blocks[i].selector,Drupal.settings.fr3r_ajax_blocks[i].lifetime,Drupal.settings.fr3r_ajax_blocks[i].ajax_url)})};function e(r,n,s){var i=a(r);if(i.length>0){var e=i.attr('data-time');if(e!=undefined){var e=parseInt(e),l=parseInt((new Date).getTime()/1000);if(l-e>n){a.ajax({url:s,}).done(function(n){var s=parseInt(a(n).filter(r).attr('data-time'));if(s>e){i.replaceWith(n);Drupal.attachBehaviors(i.parent(),t)}})}}}}}}}(jQuery));;
/* Source and licensing information for the above line(s) can be found at https://france3-regions.francetvinfo.fr/nouvelle-aquitaine/sites/all/modules/custom/fr3r_ajax_blocks/scripts/fr3r_ajax_blocks.js. */
Partager

Ajouter un commentaire

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Saisir les caractères affichés dans l'image.