1var xhr; 2var vars; 3jQuery(document).ready(function($) { 4 console.info('******* JS Home Builder *******'); 5 console.log(vars) 6 $('body').on('click', '#wp-admin-bar-rmb-regenerar-json a', function() { 7 if(xhr!=null){ xhr.abort()} 8 $('#wpcontent').append(` 9 <div class="overlay" style="position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: #0000008a;display: flex;"> 10 <div>Generando Archivo JSON de portada 11 <div id="loading"> 12 <span>.</span> 13 <span>.</span> 14 <span>.</span> 15 </div> 16 </div> 17 </div> 18 `); 19 20 var intervalID = window.setInterval(function() { 21 var dots = document.querySelectorAll('#loading span'); 22 for (var i = 0; i < dots.length; i++) { 23 if (dots[i].innerHTML === '.') { 24 dots[i].innerHTML = '..'; 25 } else if (dots[i].innerHTML === '..') { 26 dots[i].innerHTML = '...'; 27 } else { 28 dots[i].innerHTML = '.'; 29 } 30 } 31 }, 500); 32 33 xhr = $.post(vars.ajaxurl, { 'action': 'regenerajsonportada' }, function(respuesta) { 34 console.log(respuesta); 35 window.clearInterval(intervalID); 36 $('.overlay').remove(); 37 alert('Se volvio a generar el archivo JSON de la portada'); 38 }); 39 return false; 40 }); 41 42});
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.