SHARE
TWEET

Untitled

a guest Aug 21st, 2019 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. // ACOA PC GENERATION TOOL -- SHOULD BE FOR JUSTIN ONLY!
  3. $("a[id*='generate_acoapc_']").click(function(){
  4.   var id = $(this).attr("id").replace("generate_acoapc_", "");
  5.  
  6.   $.ajax({
  7.       url : '/analytics/api/set_pc/',
  8.       type : 'POST',
  9.       data : {
  10.           'id' : id,
  11.           'csrfmiddlewaretoken': 'krYGV622ofKuGEIpu6vEQvMvXdhO1gHvlvSJHYL7gJCYt6mwJe90QnzI4Ulzt5Nn',
  12.       },
  13.       //dataType:'text json',
  14.       success : function(data) {
  15.           //alert('Data: '+data);
  16.           var str = "mkacoapc_" + id;
  17.           //alert(str);
  18.           html = 'AutographCOA - Pre-Certified Online<br/><a href="https://www.autographcoa.com/cert/' + data + '" target="_blank">' + data + '</a>';
  19.           $("span[id="+str+"]").html(html);
  20.       },
  21.       error : function(request,error)
  22.       {
  23.           //alert("Request: "+JSON.stringify(request));
  24.           alert("error setting PC. call hacker.");
  25.       }
  26.    });
  27. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top