
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
jquery-roadmap
Advanced tools
Another timeline jquery plugin. This plugin was custom made for another project and then separated.
npm install jquery-roadmap
<script src="https://cdn.jsdelivr.net/npm/jquery-roadmap@1.2.0/src/jquery.roadmap.min.js"></script>
Include jQuery:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
Include plugin's code:
<script src="dist/jquery.roadmap.min.js"></script>
Call the plugin:
$("#my-roadmap").roadmap(data, options);
First parameter is an array of objects with the following structure:
var data = [
{
date: 'Q1 - 2018',
content: 'Lorem ipsum dolor sit amet'
},
{
date: 'Q2 - 2018',
content: 'Lorem ipsum dolor sit amet'
},
{
date: 'Q3 - 2018',
content: 'Lorem ipsum dolor sit amet'
},
{
date: 'Q4 - 2018',
content: 'Lorem ipsum dolor sit amet'
}
];
Second parameter is an object of properties used to customize the timeline. Here's a list of all properties and it's default values:
$("#my-roadmap").roadmap(data, {
eventsPerSlide: 6,
slide: 1,
rootClass: 'roadmap',
prevArrow: 'prev',
nextArrow: 'next',
eventTemplate: '<div class="event">' +
'<div class="event__date">####DATE###</div>' +
'<div class="event__content">####CONTENT###</div>' +
'</div>'
});
Sets the number of events per slide.
Default value: 6
Sets the slide to show after initialization.
Default value: 1
Allows you to change the css root class.
Default value: roadmap
Allows you to customize the "Previous" arrow. HTML is allowed.
Default value: prev
Allows you to customize the "Next" arrow. HTML is allowed.
Default value: next
Allows you to customize the event template. Use
####DATE###
and####CONTENT###
as tokens to show the events date and content.
Check CONTRIBUTING.md for more information.
MIT License © Stefano Marra
FAQs
A simple timeline plugin for jQuery
The npm package jquery-roadmap receives a total of 29 weekly downloads. As such, jquery-roadmap popularity was classified as not popular.
We found that jquery-roadmap 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.