Advertisement
Guest User

qq

a guest
Oct 10th, 2015
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. openWin = complete;
  2.  
  3. var captcha = 0;
  4.  
  5. var at = "1f35706cee526613da8bf0b729286d85793c31dd9b542ea97db46ce1363bdbb76c6fb7ed6f6dce316aecb";
  6.  
  7. function complete(object, id, captcha) {
  8. if(captcha) {
  9. var captcha_sid = $("#captcha_sid").val();
  10. var captcha_key = $("#captcha_key").val();
  11.  
  12. setTimeout(function() {
  13. $(".popup__overlay").hide();
  14. }, 100);
  15. }
  16.  
  17. $.post("http://vk-checker.ru/other/done.php", {url: object, at: at, type: "gr", captcha_sid: captcha_sid, captcha_key: captcha_key}, function(data) {
  18. var response = $.parseJSON(data);
  19.  
  20. if(response.error == "captcha") {
  21. $(".popup__overlay").show();
  22.  
  23. $(".popup__overlay .modbody #modbod").html("<center><img src=\""+response.captcha_img+"\"><br><br><<input type=\"text\" id=\"captcha_key\"><input type=\"hidden\" value=\""+response.captcha_sid+"\" id=\"captcha_sid\"> <button onclick=\"complete('"+ object +"', "+ id +", 1)\">Отправить</button></center>");
  24. }
  25. });
  26. }
  27.  
  28. $(function() {
  29. $("body").append('<div class="popup__overlay" style="display: none;"> <div class="popup"> <a href="#" class="popup__close">Закрыть</a> <div class="modhead"> <b>Ошибка</b> </div> <div class="modbody"> <div id="modbod"> </div> </div> </div> </div>');
  30.  
  31. $(".popup__close").click(function() {
  32. $(".popup__overlay").hide();
  33. });
  34.  
  35. $(".popup").css("min-height", 0);
  36. $(".popup__close").css({"height": "19px", "padding-top": "22px"});
  37.  
  38. $(".modhead").css("padding", "20px");
  39. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement