Socket
Socket
Sign inDemoInstall

foundation-joyride

Package Overview
Dependencies
2
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    foundation-joyride

Joyride plugin for Foundation 6.


Version published
Maintainers
1
Install size
1.00 MB
Created

Readme

Source

Joyride

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

Installation

To install joyride you can either use NPM (comming soon) 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.

Keywords

FAQs

Last updated on 09 Mar 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc