jQuery Plugin for page navigation using directional buttons. Functional for Web-Apps on Smart TV's
// Include the plugin in your HTML file
<script src="path/to/jquery.directional.min.js"></script>
The jQuery.Directional plugin enhances webpage accessibility through directional button navigation. To integrate the plugin, use the following syntax:
$.fn.Directional();
Rewrites all "tabindex" values on the page that are greater than or equal to zero, placing them in ascending order. A note is included, highlighting the potential advantages of this feature in future updates.
$.fn.Directional({
rewriteindexes: true
});
$.fn.Directional({
selectelement: $(".element")
});
$.fn.Directional({
clickonenter: true
});
Activate the plugin only in TV Devices. (Need the plugin IsSmartTV.js.)
$.fn.Directional({
checkistv: true
});