Skip to content

redos8/jTutorial

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jTutorial v0.4

Jquery plugin for tutorial on web pages. by RED (red@dbwap.ru)

Special thanks to SeWeRd-in


How to use

steps = 
	[
		{ // Step 1
			items:"#ad-images-views li:first", // Elemets what's will higlight
			message: {text: "YAHOO", position: {x:33,y:90}}, // Message and position of message
			events: [{item: "#ad-images-views li:first", type: "click", condition: func_step_delay_100}] // Event's or/and function trigger for move next step
		},
		{},
		{},
		...
	];
$.jtutorial(steps);
$.jtutorial('start');

Demo

Methods

  • $.jtutorial('start') - Start tutorial (Alias - #jtutorial-start)

  • $.jtutorial('close'); - Stop tutorial. (Alias - #jtutorial-close)

  • $.jtutorial('prevstep'); - Launch prev step. (Alias - #jtutorial-prevstep)

  • $.jtutorial('nextstep'); - Launch next step. (Alias - #jtutorial-nextstep)

  • $.jtutorial('laststep'); - Launch last step. (Alias - #jtutorial-laststep)

  • $.jtutorial('firststep'); - Launch first step. (Alias - #jtutorial-firststep)

  • $.jtutorial('stepend', function(step){}); - Execute function when step is ended.

  • $.jtutorial('addstep', step); - Add step. Syntax like steps in initialize.

  • $.jtutorial('delstep', step_number); - Delete step.

Events

  • jtutorial.stepend - Execute function when step is ended. Synonym method stepend.

About

Jquery plugin for tutorial

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 54.0%
  • CSS 46.0%