• Stars
    star
    1,423
  • Rank 31,674 (Top 0.7 %)
  • Language
    JavaScript
  • Created over 12 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

jQuery feature tour plugin.

Joyride

Joyride is an easy to configure site tour wizard for Foundation for Sites.

Demo

You can try out Joyride on the Demo Page.

Installation

To install Joyride you can either use NPM (NPM repository) or download the files directly.

  • npm start - Calls the build process and opens the demo in your browser.
  • npm test - Runs the JavaScript tests.
  • npm run test:javascript - Runs tests for JavaScript with Mocha using PhantomJS.
  • npm run test:visual - Runs visual tests/live demos.

Usage

All versions of joyride depend on jQuery and what-input. While jQuery is mandatory, what-input is used for styling purposes and not necessary for joyride to work.

Regardless of the way you use Joyride, you need to initialize it like all Foundation plugins by calling:

$(document).foundation();

The following HTML is an example on how to use Joyride. You can also have a look at the visual test cases in the test/visual/ folder.

<ol data-joyride data-autostart="true" id="docs-joyride">
  <li data-target="#basic-joyride">
    <p>This is the default one without settings</p>
  </li>
  <li data-target="#footer" data-position="bottom" data-closable="false">
    <p>This one isn't closable</p>
  </li>
  <li>
    <p>If no target is specified, you create a modal.</p>
  </li>
  <li data-target="#open-issues">
    <p>Your ride ends here!</p>
    <p class="text-center">
      <button class="button success" data-joyride-close>OK, thanks!</button>
    </p>
  </li>
</ol>

Foundation plugin

Originally, Joyride is a plugin for Foundation for Sites and leaverages existing plugins and functionalities of the framework. To use Joyride with Foundation, just include the files into your page right after the Foundation files. Then follow the example above to create the ride.

Standalone plugin

To make Joyride available for a broader amount of users, it is also available as a standalone plugin. All relevant Foundation functionalities are bundled with the Joyride files, so Joyride can still benefit from them. To use Joyride with Foundation, just include the files into your page right and follow the example above to create the ride.

Using script loader

Joyride can be used by including its files via HTML-tags and also the most popular script loaders, such as RequireJS. This is done by leveraging UMD.

Testing

  • npm run test:javascript to run JavaScript tests with Mocha using PhantomJS.
  • npm run test:visual to run visual regression tests.

Contributing

Check out our contributing guide to learn how you can contribute to this plugin. You can also browse the Help Wanted tag in our issue tracker to find things to do.

More Repositories

1

tribute

ES6 Native @mentions
JavaScript
1,961
star
2

foundation-apps

The first front-end framework created for developing fully responsive web apps.
CSS
1,584
star
3

twentytwenty

jQuery Plugin to Compare Images
CSS
1,246
star
4

reveal

JavaScript
676
star
5

foundation-5-sublime-snippets

ZURB Foundation 5 Sublime Text 2 Snippets
493
star
6

orbit

JavaScript
457
star
7

responsive-tables

Tables that work responsively on small devices.
CSS
431
star
8

foundation-icons

CSS
427
star
9

pizza

Better pie, donut, line, and bar graphs.
JavaScript
413
star
10

flickrbomb

flickrBomb provides an easy way for you to fill your prototypes with relevant content, and not just those dull gray placeholder images.
JavaScript
270
star
11

foundation-icon-fonts

Foundation Icon Fonts
HTML
109
star
12

html5_video_voting

78
star
13

foundation-apps-template

Our starter template for Foundation for Apps projects. Powered by Angular, Sass, and Gulp.
CSS
74
star
14

foundation-layouts

Sample layouts for the Zurb Foundation Framework
JavaScript
54
star
15

reactive-listener

JavaScript
42
star
16

fastclick

JavaScript
34
star
17

advanced-foundation-course

Content for Advance Foundation Course
CSS
33
star
18

wrangle

JavaScript
32
star
19

foundation-course

Material for Foundation Course JavaScript
CSS
30
star
20

css-flip-book

CSS
24
star
21

foundation-templates-layer

Templates that are integrated into Foundation's templates layer downloads.
JavaScript
24
star
22

ZURB-code-standards

Code standards for ZURB's family of products and client deliverables.
19
star
23

foundation-migrate

Foundation migration plugin: http://foundation.zurb.com/docs/upgrading.html
JavaScript
16
star
24

foundation-sites-6

[ARCHIVED] Version 6.0 of Foundation for Sites (Public Beta).
HTML
14
star
25

inky-cli

Command-line interface for the Inky templating language.
JavaScript
13
star
26

angular-tribute

Angular directive for Tribute.js
JavaScript
10
star
27

front-router

Generate AngularJS states from Front Matter in state templates. Used by Foundation for Apps.
JavaScript
8
star
28

ARCHIVED-giving-tree-wordpress

7
star
29

notable-cli

Upload to Notable from the command-line
Go
7
star
30

media-query-examples

Media Query Examples
CSS
7
star
31

foundation-demo

This is a demo repository for meetups and conferences to show the process of building a simple page using Foundation.
CSS
7
star
32

tribute-rb

Tribute.js @mentions for the Rails Asset Pipeline
Ruby
7
star
33

foundation-inline-svg

JavaScript
7
star
34

foundation-compass-stack

This is a stack for developing your website using Foundation, with Assemble for templates and Compass for Sass compilation.
CSS
7
star
35

siphon-media-query

Extract media query-specific rules from CSS.
JavaScript
6
star
36

sample-scss-project

Sample Sass Project
5
star
37

F5-accessibility-audit

5
star
38

ARCHIVED-giving-tree-static

Giving Tree static site skeleton
PHP
5
star
39

topbar

topbar
CSS
4
star
40

inky-rails-talk

Live code/demo for inky-rb rails integration
Ruby
4
star
41

cardpack

A collection of Badass Foundation Flex Cards
HTML
3
star
42

zurb-template

ZURB's Client Project Template
JavaScript
3
star
43

yetinews

Tutorial project for Foundation for Apps protoype
CSS
2
star
44

10-minute-responsive-email

Code from the Foundation meetup - Foundation for Emails
JavaScript
2
star
45

wrangle-demo

Demo of wrangle.
JavaScript
2
star
46

client-template

Template for client projects, using Assemble.
CSS
1
star
47

zurb-talk-demos

CSS
1
star
48

building-blocks-ARCHIVED

HTML
1
star
49

Helio-Blog

PHP
1
star