Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 730 Bytes

README.md

File metadata and controls

33 lines (27 loc) · 730 Bytes

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