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

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

License

Notifications You must be signed in to change notification settings

jeankassio/jQuery.Directional

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published