| Server IP : 54.36.91.62 / Your IP : 216.73.216.15 Web Server : Apache System : Linux webm021.cluster127.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : uxhactp ( 169076) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/uxhactp/www/wp-content/themes/bridge/framework/admin/assets/js/ |
Upload File : |
(function($) {
$(document).ready(function() {
qodefTwitterRequestToken();
});
function qodefTwitterRequestToken() {
if($('#qodef-tw-request-token-btn').length) {
$('#qodef-tw-request-token-btn').click(function(e) {
e.preventDefault();
var that = $(this);
var currentPageUrl = $('input[data-name="current-page-url"]').val();
//@TODO get this from data attr
$(this).text('Working...');
var data = {
action: 'qode_twitter_obtain_request_token',
currentPageUrl: currentPageUrl
}
$.ajax({
type: 'POST',
url: ajaxurl,
data: data,
dataType: 'json',
success: function(response) {
if(typeof response.status !== 'undefined' && response.status) {
$(that).text('Redirect to Twitter...');
if(typeof response.redirectURL !== 'undefined' && response.redirectURL !== '') {
window.location = response.redirectURL;
}
} else {
alert(response.message);
}
}
});
});
}
}
})(jQuery)