extjs-gpl
Version:
GPL licensed version of Sencha Ext JS
77 lines (62 loc) • 1.91 kB
HTML
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=10, user-scalable=yes">
<title>Key Navigation Sample</title>
<link rel="stylesheet" type="text/css" href="../shared/examples.css" />
<!-- GC -->
<style type="text/css">
#board {
width: 402px;
height: 402px;
border: 1px solid black;
}
.square {
width: 100px;
height: 100px;
float: left;
border: 1px solid black;
text-align: center;
padding-top: 40px;
}
.active-red {
background-color: #FF0000;
}
.active-green {
background-color: #00FF00;
}
/* IE6/7/8 bugs */
.x-strict #board {
width: 400px;
height: 400px;
}
.x-strict .square {
width: 98px;
padding-top: 0;
line-height: 100px;
}
.x-quirks .x-ie .x-clear {
margin-top: -1px;
}
.x-quirks .x-ie7m .x-clear {
margin-top: 0;
}
</style>
<script type="text/javascript" src="../shared/include-ext.js"></script>
<script type="text/javascript" src="../shared/options-toolbar.js"></script>
<script type="text/javascript" src="keynav.js"></script>
</head>
<body>
<h1>Key Navigation Sample</h1>
<p>The js is not minified so it is readable. See <a href="keynav.js">keynav.js</a>.</p>
<p>
Use the arrow keys to navigate the board. <br />
Press the space key to make an effect on the active cell. <br />
Press the home key to change the highlight color.
</p>
<div id="board" class="x-border-box">
</div>
</body>
</html>