~davewalker/etherpad/ubuntu-unlimited-max-users-and-revisions

« back to all changes in this revision

Viewing changes to infrastructure/ace/build/index.html

  • Committer: James Page
  • Date: 2011-04-13 08:00:43 UTC
  • Revision ID: james.page@canonical.com-20110413080043-eee2nq7y1v7cv2mp
* Refactoring to use native Ubuntu Java libraries. 
* debian/control:
  - use openjdk instead of sun's java
  - update maintainer
* debian/etherpad.init.orig, debian/etherpad.upstart:
  - move the init script out of the way
  - create a basic upstart script
  - note that the open office document conversion daemon was dropped
    from the upstart configuration; if this behavior is desired, please
    create a separate upstart job for it
* debian/rules:
  - just use basic dh_installinit, as it will pick up the new upstart job
* New release
* Changed maintainer to Packaging
* Fixed installation scripts
* Initial Release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC
 
2
          "-//W3C//DTD XHTML 1.0 Transitional//EN"
 
3
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
4
<html>
 
5
  <head>
 
6
    <title>A Code Editor</title>
 
7
    <script src="jquery-1.2.1.js"></script>
 
8
    
 
9
    <script src="testcode.js"></script>
 
10
    <script src="ace2.js"></script>
 
11
    <script>
 
12
      $(document).ready(function() {
 
13
        var editor = new Ace2Editor();
 
14
        editor.init("editorcontainer", getTestCode(), editorReady);
 
15
 
 
16
        editor.setOnKeyPress(function (evt) {
 
17
          if (evt.ctrlKey && evt.which == "s".charCodeAt(0)) {
 
18
            alert("You tried to save.");
 
19
            return false;
 
20
          }
 
21
          return true;
 
22
        });
 
23
      
 
24
        function editorReady() {
 
25
          resizeEditor();
 
26
          $(window).bind("resize", resizeEditor);
 
27
          setTimeout(function() {editor.focus();}, 0);
 
28
        }
 
29
 
 
30
        function resizeEditor() {
 
31
          $("#editorcontainer").get(0).style.height = "100%";
 
32
          editor.getFrame().style.height = ((document.documentElement.clientHeight)-1)+"px";
 
33
          editor.adjustSize();
 
34
        }
 
35
      });
 
36
    </script>
 
37
    <style>
 
38
      html { overflow: hidden } /* for Win IE 6 */
 
39
      body { margin:0; padding:0; border:0; overflow: hidden; }
 
40
      #editorcontainer { height: 1000px; /* changed programmatically */ }
 
41
      #editorcontainer iframe { width: 100%; height: 100%; border:0; padding:0; margin:0; }
 
42
    </style>
 
43
  </head>
 
44
  <body>
 
45
    <div id="editorcontainer"><!-- --></div>
 
46
  </body>
 
47
</html>