1(function($) { 2 $('a[data-note]').click(function(){ 3 let idNote = $(this).data('note'); 4 console.log(idNote); 5 $('.modal-note-content-title').empty(); 6 $('.modal-note-content-text').empty(); 7 $('.modal-note-content-button').empty(); 8 $('.eap-modal-loading').show(); 9 getContent(idNote); 10 $('.modal-note-scroll').addClass('modal-note-show'); 11 $('html').addClass('eap-html-modal'); 12 }) 13 14 $('.modal-note-close').click(function(){ 15 $('.modal-note-scroll').removeClass('modal-note-show'); 16 $('html').removeClass('eap-html-modal'); 17 }); 18 19 function getContent(idNote){ 20 $.ajax({ 21 url: my_ajax_object.ajax_url, 22 method: 'POST', 23 data: { 24 action: 'get_content_note', 25 id: idNote, 26 }, 27 success: function(response) { 28 console.log('Réponse AJAX:', response); 29 $('.eap-modal-loading').hide(); 30 if (response.success) { 31 let data = response.data; 32 $('.modal-note-content-text').append(data[0]); 33 $('.modal-note-content-title').append(data[1]); 34 $('.modal-note-content-button').append('<a class="eap-modal-button" href="'+data[2]+'" target="_blank">'+my_ajax_object.download_text+'</a>'); 35 } 36 }, 37 error: function(xhr, status, error) { 38 console.log('Erreur AJAX:', error); 39 $('.eap-modal-loading').hide(); 40 $('.modal-note-content-text').append('Erreur de chargement ...'); 41 } 42 }); 43 } 44 45})(jQuery);
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.