diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2010-06-08 08:22:05 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2010-06-08 08:22:05 +0200 |
commit | d7c5ad7d6263fd1baf9bfdbaa4c50b70ef2fbdb2 (patch) | |
tree | ae0b65da6432f4c26c8d5a7319efbda5d172846c /infrastructure/ace/www/index.html | |
parent | fa61221dcd89fcd72cba2c97971626f456c86e5d (diff) | |
download | etherpad-d7c5ad7d6263fd1baf9bfdbaa4c50b70ef2fbdb2.tar.gz etherpad-d7c5ad7d6263fd1baf9bfdbaa4c50b70ef2fbdb2.tar.xz etherpad-d7c5ad7d6263fd1baf9bfdbaa4c50b70ef2fbdb2.zip |
reverted folder structure change for better mergeing with upstream
Diffstat (limited to 'infrastructure/ace/www/index.html')
-rw-r--r-- | infrastructure/ace/www/index.html | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/infrastructure/ace/www/index.html b/infrastructure/ace/www/index.html deleted file mode 100644 index a1e6e96..0000000 --- a/infrastructure/ace/www/index.html +++ /dev/null @@ -1,50 +0,0 @@ -<!DOCTYPE html PUBLIC - "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html> - <head> - <title>A Code Editor</title> - <script src="jquery-1.2.1.js"></script> - <!-- DEBUG --> - <script src="ace2_outer.js"></script> - <script src="firebug/firebugx.js"></script> - <!-- /DEBUG --> - <script src="testcode.js"></script> - <!-- PROD: <script src="ace2.js"></script> --> - <script> - $(document).ready(function() { - var editor = new Ace2Editor(); - editor.init("editorcontainer", getTestCode(), editorReady); - - editor.setOnKeyPress(function (evt) { - if (evt.ctrlKey && evt.which == "s".charCodeAt(0)) { - alert("You tried to save."); - return false; - } - return true; - }); - - function editorReady() { - resizeEditor(); - $(window).bind("resize", resizeEditor); - setTimeout(function() {editor.focus();}, 0); - } - - function resizeEditor() { - $("#editorcontainer").get(0).style.height = "100%"; - editor.getFrame().style.height = ((document.documentElement.clientHeight)-1)+"px"; - editor.adjustSize(); - } - }); - </script> - <style> - html { overflow: hidden } /* for Win IE 6 */ - body { margin:0; padding:0; border:0; overflow: hidden; } - #editorcontainer { height: 1000px; /* changed programmatically */ } - #editorcontainer iframe { width: 100%; height: 100%; border:0; padding:0; margin:0; } - </style> - </head> - <body> - <div id="editorcontainer"><!-- --></div> - </body> -</html> |