Could you explain the operation
-
Hello
Could you explain the operation ofjQuery(‘#GA_newsecret’).bind(‘click’, function() {
var data=new Object();
data[‘action’] = ‘GoogleAuthenticator_action’;
data[‘nonce’] = GAnonce;
jQuery.post(ajaxurl, data, function(response) {
jQuery(‘#GA_secret’).val(response[‘new-secret’]);
chl=escape(“otpauth://totp/”+jQuery(‘#GA_description’).val()+”?secret=”+jQuery(‘#GA_secret’).val());
qrcodeurl=”https://chart.googleapis.com/chart?cht=qr&chs=300×300&chld=H|0&chl=”+chl;
jQuery(‘#GA_QRCODE’).attr(‘src’,qrcodeurl);
jQuery(‘#GA_QR_INFO’).show(‘slow’);
});
});I want to apply this same process on another website without wordpress
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Could you explain the operation’ is closed to new replies.