]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | <!DOCTYPE html>\r |
2 | <html>\r | |
3 | <head>\r | |
4 | <meta http-equiv="X-UA-Compatible" content="IE=edge">\r | |
5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\r | |
6 | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">\r | |
7 | <title>Key Navigation Sample</title>\r | |
8 | <link rel="stylesheet" type="text/css" href="../shared/examples.css" />\r | |
9 | \r | |
10 | <!-- GC -->\r | |
11 | \r | |
12 | <style type="text/css">\r | |
13 | #board {\r | |
14 | width: 402px;\r | |
15 | height: 402px;\r | |
16 | border: 1px solid black;\r | |
17 | }\r | |
18 | \r | |
19 | .square {\r | |
20 | width: 100px;\r | |
21 | height: 100px;\r | |
22 | float: left;\r | |
23 | border: 1px solid black;\r | |
24 | text-align: center;\r | |
25 | padding-top: 40px;\r | |
26 | }\r | |
27 | \r | |
28 | .active-red {\r | |
29 | background-color: #FF0000;\r | |
30 | }\r | |
31 | \r | |
32 | .active-green {\r | |
33 | background-color: #00FF00;\r | |
34 | }\r | |
35 | \r | |
36 | /* IE6/7/8 bugs */\r | |
37 | \r | |
38 | .x-strict #board {\r | |
39 | width: 400px;\r | |
40 | height: 400px;\r | |
41 | }\r | |
42 | \r | |
43 | .x-strict .square {\r | |
44 | width: 98px;\r | |
45 | padding-top: 0;\r | |
46 | line-height: 100px;\r | |
47 | }\r | |
48 | \r | |
49 | .x-quirks .x-ie .x-clear {\r | |
50 | margin-top: -1px;\r | |
51 | }\r | |
52 | \r | |
53 | .x-quirks .x-ie7m .x-clear {\r | |
54 | margin-top: 0;\r | |
55 | }\r | |
56 | </style>\r | |
57 | <script type="text/javascript" src="../shared/include-ext.js"></script>\r | |
58 | <script type="text/javascript" src="../shared/options-toolbar.js"></script>\r | |
59 | <script type="text/javascript" src="keynav.js"></script>\r | |
60 | </head>\r | |
61 | <body>\r | |
62 | <h1>Key Navigation Sample</h1>\r | |
63 | \r | |
64 | <p>The js is not minified so it is readable. See <a href="keynav.js">keynav.js</a>.</p>\r | |
65 | \r | |
66 | <p>\r | |
67 | Use the arrow keys to navigate the board. <br />\r | |
68 | Press the space key to make an effect on the active cell. <br />\r | |
69 | Press the home key to change the highlight color.\r | |
70 | </p>\r | |
71 | \r | |
72 | <div id="board" class="x-border-box">\r | |
73 | \r | |
74 | </div>\r | |
75 | </body>\r | |
76 | </html>\r |