PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/polo-family.com/wp-content/plugins/wwcAliAff/modules/alibaba_debug/ |
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/polo-family.com/wp-content/plugins/wwcAliAff/modules/alibaba_debug/app.class.js |
// Initialization and events code for the app wwcAliAffAlibabaDebug = (function($) { "use strict"; // public var debug_level = 0; var loading = $('<div id="wwcAliAff-ajaxLoadingBox" class="wwcAliAff-panel-widget">loading</div>'); // append loading // init function, autoload function init() { // load the triggers $(document).ready(function() { triggers(); }); }; function make_request() { ajaxLoading( 'show' ); var data = []; // action data.push({ name : 'action', value : 'wwcAliAffAlibabaDebugGetResponse' }); // wwcaliaff_sku data.push({ name : 'wwcaliaff_sku', value : $('#wwcAliAff-wwcAliAffDbg-wwcaliaff_sku').val() }); // turn the result into a query string //console.log( data ); return false; data = $.param( data ); $.ajax({ url: ajaxurl, type: 'POST', data: data, dataType: 'json', success: function(response) { if( typeof response.status != 'undefined' && response.status == 'valid' ) { var jsonStr = response.html; //jsonStr = jsonStr.toString(); //jsonStr = JSON.parse(jsonStr); //jsonStr = JSON.stringify(jsonStr, null, '\t'); /* jsonStr = '<pre><code class="json">' + jsonStr + '</code></pre>'; var $respWrap = $('#wwcAliAff-wwcAliAffDbg-alibabaResponse').html( jsonStr ); // highlight.js hljs.configure({ tabReplace : ' ' // 4 spaces }); //hljs.initHighlightingOnLoad(); $('pre code').each(function(i, block) { hljs.highlightBlock(block); }); */ var $respWrap = $('#wwcAliAff-wwcAliAffDbg-alibabaResponse #RawJson').html( jsonStr ); $('#wwcAliAff-wwcAliAffDbg-alibabaResponse #GoFormatJson').trigger('click'); ajaxLoading( 'remove' ); } } }); } function ajaxLoading(status) { if( status == 'show' ){ $('#wwcAliAff-wwcAliAffDbg-alibabaResponse').append( loading ); } else{ $('#wwcAliAff-wwcAliAffDbg-alibabaResponse #wwcAliAff-ajaxLoadingBox').remove(); } } function triggers() { // get response $('#wwcAliAff-alibabaDebug #wwcAliAff-wwcAliAffDbg-getAlibabaResponse').click(function(e) { e.preventDefault(); make_request(); }); console.log( $("#wwcAliAff-alibabaDebug #wwcAliAff-wwcAliAffDbg-alibabaResponse") ); }; init(); // external usage return { "ajaxLoading": ajaxLoading }; })(jQuery);