GithubHelp home page GithubHelp logo

nullnotfound / product-tour Goto Github PK

View Code? Open in Web Editor NEW

This project forked from robophil/product-tour

0.0 1.0 0.0 3.29 MB

A responsive tour snippet, with a step-by-step guide(onboarding) to help users understand how to use your website.

License: MIT License

CSS 46.79% JavaScript 46.56% HTML 6.65%

product-tour's Introduction

Product-Tour

A responsive tour snippet, with a step-by-step guide(onboarding) to help users understand how to use your website.

npm install product-tour

Requirements

Example

See index.html

Usage

Simply include the following to get started

<script src="<link to jquery.js>"></script>
<script src="product-tour.min.js" type="text/javascript"></script>
<link href="product-tour.min.css" rel="stylesheet" type="text/css"/>
// initialize constructor
var productTour = new ProductTour({ 
	overlay:true, // optional (true || false) defaults: true
	onStart: function () {}, // called when tour starts || optional
	onChanged:function (e) {}, // called when tour changes || optional 
	onClosed:function (e) {}, // called when the tour has been closed || optional
	nextText: '', // optional defaults: 'next'
	prevText: '', // optional defaults: 'prev'
	html: // optional (true || false) defaults: false
});
// can only be called once
productTour.steps([ // pass an array of tour steps
	{
		element: '', // specify the target selector by id or class #search or .header (defaults: body)
		title: '', // title of the tour step
		content: '', // content. Could be text or html. (if html set html attribute above to be true)
		image: '', // specify image to be shown on mobile view
		position: '' // top, bottom, right, left
	},
	{
		element: '', // specify the target selector by id or class #search or .header (defaults: body)
		title: '', // title of the tour step
		content: '', // content. Could be text or html. (if html set html attribute above to be true)
		image: '', // specify image to be shown on mobile view
		position: '' // top, bottom, right, left
	}
]); 
productTour.startTour(); // initialize the tour

Development

To clone and run project with a view of developing framework

NPM would help in getting our environment ready:

npm install

Bring in our jquery dependency:

bower install

We used gulp in handling our building and test running of frame work.

Use the index.html to do your design and testing of the framework with the browser. Simply use the command below:

gulp serve

This will listen to updates of our product-tour.js and product-tour.css and call:

gulp build

to help compile and build our minified version which is automatically or already called in our index.html file so the browser is opened.

Build Just the JS

gulp build-js

Build Just the CSS

gulp build-css

Credits

https://codyhouse.co/gem/product-tour/

Demo

https://codyhouse.co/demo/product-tour/

Contributions

Send a pull request or create an issue... thanks

product-tour's People

Contributors

brendon avatar gday avatar jayankarthik avatar numaquevedo avatar robophil avatar theoomoregbee avatar

Watchers

 avatar

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.