Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed omg. Time to go home.

  • Loading branch information...
commit 79c19ca63c19c4a65bb609eea1ebafe417f64f65 1 parent 7436eb4
@velveteenrobot authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 web_abominations/my_programs.js
  2. +1 −1  web_abominations/queue.js
View
4 web_abominations/my_programs.js
@@ -77,7 +77,7 @@ function main() {
var left_corner = (screen.width - 600)/2;
var top_corner = (screen.height - 600)/2;
var w = window.open('', '', 'width=600,height=600,resizeable,scrollbars,top=' + top_corner.toString() + ',left=' + left_corner.toString() );
- w.document.write(resp.output[resp.output.length -1].output);
+ w.document.body.innerHTML = '<textarea id="code" name="code" rows="20" cols="150">' + resp.output[resp.output.length -1].output + '</textarea>';
w.document.close(); // needed for chrome and safari
});
}
@@ -91,7 +91,7 @@ function main() {
var left_corner = (screen.width - 600)/2;
var top_corner = (screen.height - 600)/2;
var w = window.open('', '', 'width=600,height=600,resizeable,scrollbars,top=' + top_corner.toString() + ',left=' + left_corner.toString() );
- w.document.write(resp.program.code);
+ w.document.body.innerHTML = '<textarea id="code" name="code" rows="20" cols="150">' + resp.program.code + '</textarea>';
w.document.close(); // needed for chrome and safari
});
}
View
2  web_abominations/queue.js
@@ -135,7 +135,7 @@ function main() {
var left_corner = (screen.width - 600)/2;
var top_corner = (screen.height - 600)/2;
var w = window.open('', '', 'width=600,height=600,resizeable,scrollbars,top=' + top_corner.toString() + ',left=' + left_corner.toString() );
- w.document.write(resp.program.code);
+ w.document.body.innerHTML = '<textarea id="code" name="code" rows="20" cols="150">' + resp.program.code + '</textarea>';
w.document.close(); // needed for chrome and safari
});
}

0 comments on commit 79c19ca

Please sign in to comment.
Something went wrong with that request. Please try again.