Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.

Latest commit

 

History

History
56 lines (43 loc) · 1.38 KB

README.md

File metadata and controls

56 lines (43 loc) · 1.38 KB

jQuery.Directional

jQuery Plugin for page navigation using directional buttons. Functional for Web-Apps on Smart TV's

Usage

// Include the plugin in your HTML file
<script src="path/to/jquery.directional.min.js"></script>

Overview

The jQuery.Directional plugin enhances webpage accessibility through directional button navigation. To integrate the plugin, use the following syntax:

$.fn.Directional();

Parameters

RewriteIndexes

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
});

SelectElement

Selects an initial element, serving as a starting point for directional navigation.

$.fn.Directional({
  selectelement: $(".element")
});

ClickOnEnter

Simulates mouse click when the Enter key is pressed.

$.fn.Directional({
  clickonenter: true
});

CheckIsTv

Activate the plugin only in TV Devices. (Need the plugin IsSmartTV.js.)

$.fn.Directional({
  checkistv: true
});

Note

Feel free to explore and customize the jQuery.Directional plugin to enhance your webpage's navigation experience.