Skip to content

Commit

Permalink
Fixed omg. Time to go home.
Browse files Browse the repository at this point in the history
  • Loading branch information
velveteenrobot committed Apr 21, 2012
1 parent 7436eb4 commit 79c19ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions web_abominations/my_programs.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function main() {
var left_corner = (screen.width - 600)/2; var left_corner = (screen.width - 600)/2;
var top_corner = (screen.height - 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() ); 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 w.document.close(); // needed for chrome and safari
}); });
} }
Expand All @@ -91,7 +91,7 @@ function main() {
var left_corner = (screen.width - 600)/2; var left_corner = (screen.width - 600)/2;
var top_corner = (screen.height - 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() ); 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 w.document.close(); // needed for chrome and safari
}); });
} }
Expand Down
2 changes: 1 addition & 1 deletion web_abominations/queue.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function main() {
var left_corner = (screen.width - 600)/2; var left_corner = (screen.width - 600)/2;
var top_corner = (screen.height - 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() ); 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 w.document.close(); // needed for chrome and safari
}); });
} }
Expand Down

0 comments on commit 79c19ca

Please sign in to comment.