1jQuery(document).ready(function ($) { 2 "use strict"; 3 4 5 //external link 6 $('a').each(function() { 7 var a = new RegExp('/' + window.location.host + '/'); 8 if(!a.test(this.href)) { 9 $(this).click(function(event) { 10 event.preventDefault(); 11 event.stopPropagation(); 12 window.open(this.href, '_blank'); 13 }); 14 } 15 }); 16 17 // AJAX boutons action annonce 18jQuery('.annonce-bouton').click(function(event) { 19 20 event.preventDefault(); 21 // get search term 22 var bouton = jQuery(event.target); 23 var annonceId = bouton.data('annonce'); 24 var boutonContenu = bouton.html(); 25 26 jQuery.ajax({ 27 url : '/wp-admin/admin-ajax.php', 28 type: 'GET', 29 data:{ 30 'action':'annonces_contact', 31 'annonce':annonceId 32 }, 33 beforeSend:function(){ 34 bouton.html('chargement...'); 35 }, 36 success:function(result){ 37 //jQuery('tr#cell-statut-'+dosId+' td').html(result); 38 bouton.replaceWith(result); 39 }, 40 complete:function(){ 41 42 } 43 }); 44 45}); 46 47 48});
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.