chromevox.html 790 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>ACE ChromeVox demo</title>
  6. <style type="text/css" media="screen">
  7. body {
  8. overflow: hidden;
  9. }
  10. #editor {
  11. margin: 0;
  12. position: absolute;
  13. top: 0;
  14. bottom: 0;
  15. left: 0;
  16. right: 0;
  17. }
  18. </style>
  19. </head>
  20. <body>
  21. <pre id="editor"></pre>
  22. <!-- load ace -->
  23. <script src="../src/ace.js"></script>
  24. <!-- load ace accessibility extension -->
  25. <script src="../src/ext-chromevox.js"></script>
  26. <script>
  27. // trigger extension
  28. ace.require("ace/ext/chromevox");
  29. var editor = ace.edit("editor");
  30. editor.session.setMode("ace/mode/html");
  31. editor.setTheme("ace/theme/tomorrow");
  32. </script>
  33. <script src="./show_own_source.js"></script>
  34. </body>
  35. </html>