Server IP : 162.0.217.223 / Your IP : 216.73.216.150 Web Server : LiteSpeed System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : mypckeys ( 1539) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/mypckeys/yeslicense.org/wp-content/plugins/webp-express/lib/wcfm/ |
Upload File : |
window["wcfmoptions"] = {}; window["wcfmoptions"]['poster'] = function(action, options, successCallback, errorCallback) { //console.log('wcfmoptions.poster called. Action: ' + action); console.log('wcfmoptions.poster called. Options: ' + JSON.stringify(options)); // Call the API var data = { 'action': 'webpexpress-wcfm-api', 'nonce' : window.webpExpressWCFMNonce, 'command': action, //'args': options 'args': JSON.stringify(options) }; jQuery.ajax({ type: "POST", url: ajaxurl, data: data, //contentType: "application/json; charset=utf-8", dataType: 'text', // text or json? timeout: 30000, error: function (jqXHR, status, errorThrown) { console.log(errorThrown); }, /*success: function(responseObj) { console.log('ajax response', responseObj); successCallback(responseObj); }*/ success: function(responseText) { //console.log('ajax response', responseText); //response = "[{name:'hello'}]"; //console.log('response:'); //console.log(responseText); try { responseObj = JSON.parse(responseText); } catch (e) { console.log('The "' + action + '" response could not be parsed as JSON. ' + e.name + ':' + e.message); console.log('response:' + responseText); errorCallback(responseText); return } successCallback(responseObj); } }); } function adjustWCFMHeight() { var usedHeight = document.getElementById('wpadminbar').offsetHeight + document.getElementById('wpfooter').offsetHeight + document.getElementById('screen-meta').offsetHeight + document.getElementById('wcfmintro').offsetHeight; var wcfm = document.getElementById('webpconvert-filemanager'); var h = Math.max(document.body.clientHeight - usedHeight - 30, 300); //console.log('setting height', h, document.body.clientHeight, usedHeight); wcfm.style.height = h + 'px'; } window.addEventListener('load', function(event) { adjustWCFMHeight(); }); window.addEventListener('resize', function(event) { adjustWCFMHeight(); });