Giter VIP home page Giter VIP logo

guide.js's Introduction

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

guide.js's People

Stargazers

Ahmed Samir avatar Mahmoud Yasseen avatar Imaculate avatar  avatar xiongwilee avatar Mohammad Younes avatar Derek Perkins avatar Ethan Welborn avatar James D. Morris avatar Pachito Marco Calabrese avatar Khalil avatar

Watchers

Dave Birch avatar James D. Morris avatar

guide.js's Issues

Block underlying content

How about adding an invisible layer to block the underlying content while the guide is active! This will freeze the page and prevent the user from interacting with the actual content.

And thanks for the awesome work ๐Ÿ‘

Interested in position options patch?

First of all, thank you!!! There are a tonne of site-guide plugins, and none of them ****ing work, due to the really nasty opacity overlay issues.

I need control of whether the tips occur left/right/top/bottom, which you don't have implemented yet. If I get that working, do you want the pull request?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.