keynav.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  4. <title>Key Navigation Sample</title>
  5. <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
  6. <link rel="stylesheet" type="text/css" href="../shared/example.css" />
  7. <!-- GC -->
  8. <style type="text/css">
  9. #board {
  10. width: 402px;
  11. height: 402px;
  12. border: 1px solid black;
  13. }
  14. .square {
  15. width: 100px;
  16. height: 100px;
  17. float: left;
  18. border: 1px solid black;
  19. text-align: center;
  20. padding-top: 40px;
  21. }
  22. .active-red {
  23. background-color: #FF0000;
  24. }
  25. .active-green {
  26. background-color: #00FF00;
  27. }
  28. /* IE6/7/8 bugs */
  29. .x-strict #board {
  30. width: 400px;
  31. height: 400px;
  32. }
  33. .x-strict .square {
  34. width: 98px;
  35. padding-top: 0;
  36. line-height: 100px;
  37. }
  38. .x-quirks .x-ie .x-clear {
  39. margin-top: -1px;
  40. }
  41. .x-quirks .x-ie7m .x-clear {
  42. margin-top: 0;
  43. }
  44. </style>
  45. <script type="text/javascript" src="../../ext-all.js"></script>
  46. <script type="text/javascript" src="keynav.js"></script>
  47. </head>
  48. <body>
  49. <h1>Key Navigation Sample</h1>
  50. <p>The js is not minified so it is readable. See <a href="keynav.js">keynav.js</a>.</p>
  51. <p>
  52. Use the arrow keys to navigate the board. <br />
  53. Press the space key to make an effect on the active cell. <br />
  54. Press the home key to change the highlight color.
  55. </p>
  56. <div id="board">
  57. </div>
  58. </body>
  59. </html>