Skip to content

dozyatom/guide.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

guide.js

guide.js is a jQuery plugin that creates a clickable walkthrough of elements on your webpage

Installing

Ensure you have referenced a jQuery library:

<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>

Download guide.js and guide.css and add the following assets:

<link href="guide.css" rel="stylesheet">
<script src="guide.js"></script>

Using

In you document ready, first attach the guide to the parent element you'd like to mask:

var guide = $("body").guide();

Then attach the steps to the elements to highlight, using jquery selectors:

guide.addStep("#hello", "This step says hello");
guide.addStep("#world", "This step says world");

Then initiate the guide, manually or via a trigger event

guide.start();

Methods

.guide([options])

Attach the guide to the selector

Parameters:

  • options : Object (optional) Control the gap between the highlighted element and the mask with margin

guide.addStep(selector, introduction, options)

Add a step to the guide

Parameters:

  • selector : jQuery selector identifying the DOM element to highlight
  • introduction : The string to display
  • options : Object with optional settings for margin and callback

guide.start()

Start the guide...

Roadmap

  • Abstract CSS (currently based on Bootstrap)
  • Remove jQuery dependency
  • Add keypress support

About

jQuery plugin to guide the user around an html document

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published