1;(function ($, window, document, undefined) { 2 $(function () { 3 4 var image = $('.wp-jamstack-deployments-badge img'); 5 var imageSrc = image.prop('src'); 6 var refreshTimout = null; 7 8 var updateNetlifyBadgeUrl = function () { 9 if (!image.length) { 10 return; 11 } 12 var d = new Date(); 13 image.prop('src', imageSrc + '?v=s_' + d.getTime()); 14 refreshTimout = setTimeout(updateNetlifyBadgeUrl, 15000); 15 }; 16 17 refreshTimout = setTimeout(updateNetlifyBadgeUrl, 15000); 18 19 $('.wp-jamstack-deployments-button').click(function (e) { 20 e.preventDefault(); 21 $.ajax({ 22 type: 'POST', 23 url: wpjd.ajaxurl, 24 data: { 25 action: 'wp_jamstack_deployments_manual_trigger', 26 security: wpjd.deployment_button_nonce, 27 }, 28 dataType: 'json', 29 success: updateNetlifyBadgeUrl, 30 }); 31 clearTimeout(refreshTimout); 32 }); 33 34 }); 35})(jQuery, window, document);
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.