PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/newcrypto.kerihosting.com/wp-content/plugins/wp2speed/lib/asset/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/newcrypto.kerihosting.com/wp-content/plugins/wp2speed/lib/asset/admin.js |
(function($) { $(function() { var $mmr_processed = $('#mmr_processed'), $mmr_jsprocessed = $('#mmr_jsprocessed', $mmr_processed), $mmr_jsprocessed_ul = $('ul', $mmr_jsprocessed), $mmr_cssprocessed = $('#mmr_cssprocessed', $mmr_processed), $mmr_cssprocessed_ul = $('ul', $mmr_cssprocessed), $mmr_noprocessed = $('#mmr_noprocessed'), timeout = null, stamp = null; $mmr_processed.on('click','.log',function(e) { e.preventDefault(); $(this).parent().nextAll('pre').slideToggle(); }); $mmr_processed.on('click','.purge',function(e) { e.preventDefault(); clearInterval(timeout); getFiles({purge:$(this).attr('href').substr(1)}); $(this).parent().parent().remove(); }); $('.purgeall', $mmr_processed).on('click',function(e) { var btn=$(this);if(btn.data('locked')) return;btn.data('locked',1); //hoang e.preventDefault(); clearInterval(timeout); getFiles({purge:'all'}, function(){ btn.data('locked',0); alert('successful'); }); //$mmr_noprocessed.show(); //hoang //$mmr_processed.hide(); $mmr_jsprocessed_ul.html(''); $mmr_cssprocessed_ul.html(''); }); function processResponse(response, $ul) { $(response).each(function(i) { var $li = $ul.find('li.' + this.hash); if($li.length > 0) { var $filename = $li.find('.filename'); if($filename.text() != this.filename) { $filename.html(i+') '+this.filename); } if($li.find('pre').text() != this.log) { $li.find('pre').html(this.log); } if($li.find('.accessed').text() != 'Last Accessed: ' + this.accessed) { $li.find('.accessed').html('Last Accessed: ' + this.accessed); } if(this.error) { $filename.addClass('error'); } else { $filename.removeClass('error'); } } else { $ul.append('<li class="' + this.hash + '"><span class="filename' + (this.error?' error':'') + '">'+i+') ' + this.filename + '</span> <span class="accessed">Last Accessed: ' + this.accessed + '</span> <span class="actions"><a href="#" class="log button button-primary">View Log</a> <a href="#' + this.hash + '" class="button button-secondary purge">Purge</a></span><pre>' + this.log + '</pre></li>'); } }); } function getFiles(extra, cb) { stamp = new Date().getTime(); var data = { 'action': 'mmr_files', 'stamp': stamp }; if(extra) { for (var attrname in extra) { data[attrname] = extra[attrname]; } } $.post(ajaxurl, data, function(response) { if(stamp == response.stamp) //only update when request is the latest { if(response.js.length > 0) { $mmr_jsprocessed.show(); processResponse(response.js, $mmr_jsprocessed_ul); } else { //$mmr_jsprocessed.hide(); } if(response.css.length > 0) { $mmr_cssprocessed.show(); processResponse(response.css, $mmr_cssprocessed_ul); } else { //$mmr_cssprocessed.hide(); } if(response.js.length == 0 && response.css.length == 0) { $mmr_noprocessed.show(); //$mmr_processed.hide(); } else { //$mmr_noprocessed.hide(); $mmr_processed.show(); } clearInterval(timeout); timeout = setTimeout(getFiles, 5000); } if(data.purge=='all' && cb) cb(); }); } getFiles(); }); })(jQuery);