Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
foundation-joyride
Advanced tools
Joyride is an easy to configure site tour wizard for Foundation for Sites.
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.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>
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.
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.
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.
npm run test:javascript
to run JavaScript tests with Mocha using PhantomJS.npm run test:visual
to run visual regression tests.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.
FAQs
Joyride plugin for Foundation 6.
The npm package foundation-joyride receives a total of 72 weekly downloads. As such, foundation-joyride popularity was classified as not popular.
We found that foundation-joyride demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.