spatial-navigation-polyfill
Version:
A polyfill for the spatial navigation
22 lines (20 loc) • 1.07 kB
HTML
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="application-name" content="iframe Element">
<meta name="author" content="Jihye Hong">
<meta name="description" content="The iframe Element is considered as a container that can give priority to the internal elements in spatial navigation. You can test spatial navigation behavior in the iframe element using arrow keys.">
<link rel="stylesheet" href="spatnav-style.css">
<script src="spatnav-utils.js"></script>
<script src="../../polyfill/spatial-navigation-polyfill.js"></script>
</head>
<body>
<iframe src="heuristic_non_scrollable_iframe_element.html" class="container c2"></iframe>
<div tabindex="0" class="box b1" style="left: 70px; top: -180px;"></div>
<div tabindex="0" class="box b1" style="left: 180px; top: -120px;"></div>
<div tabindex="0" class="box b1" style="left: 20px; top: -90px;"></div>
<div tabindex="0" class="box b1" style="left: 190px; top: -50px;"></div>
</body>
</html>