Skip to content

nofreakz/freaknav

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FreakNav

Keyboard Navigation for links

Live Demo

You can see the script running here.

Installation

To use the Freak Nav, add to your project the freaknav.js.

<script src="lib/freaknav.js"></script>

Usage

You just need to instantiate the object

JAVASCRIPT

var nav = new freakNav();

HOTKEYS

You can also navigate using hotkeys. To use this feature, you just need to put data-hotkey attribute to any page's link

<a href="#" data-hotkey="r">My link with hotkey "R"</a>

NOTE: The elements need to be loaded first, to ensure this, use:

window.onload = function() {
    var nav = new freakNav();
}

Releases

No releases published

Packages

No packages published