aboutsummaryrefslogtreecommitdiffstats
path: root/trunk/infrastructure/ace/www/index.html
diff options
context:
space:
mode:
authorElliot Kroo <kroo@appjet.com>2010-03-11 15:21:30 -0800
committerElliot Kroo <kroo@appjet.com>2010-03-11 15:21:30 -0800
commit98e2821b38a775737e42a2479a6bc65107210859 (patch)
tree55939a8ba1dce4f4e48ebb13b658061d62bf1b9a /trunk/infrastructure/ace/www/index.html
parentc1894c8e0a52f4e3d2f89fa92f0066bbf0fcf1b1 (diff)
downloadetherpad-98e2821b38a775737e42a2479a6bc65107210859.tar.gz
etherpad-98e2821b38a775737e42a2479a6bc65107210859.tar.xz
etherpad-98e2821b38a775737e42a2479a6bc65107210859.zip
reorganizing the first level of folders (trunk/branch folders are not the git way :)
Diffstat (limited to 'trunk/infrastructure/ace/www/index.html')
-rw-r--r--trunk/infrastructure/ace/www/index.html50
1 files changed, 0 insertions, 50 deletions
diff --git a/trunk/infrastructure/ace/www/index.html b/trunk/infrastructure/ace/www/index.html
deleted file mode 100644
index a1e6e96..0000000
--- a/trunk/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>