Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
content-progress
Advanced tools
A jquery plugin that creates stylable progress bars based on scroll position.
Weekly downloads
Readme
A Work in Progress* A jQuery plugin that creates a progress bar/frame based on a user's scroll position.
You can customise the following settings
$(document).ready(function(){
$('body').contentProgress({
//defaults
type: 'bar', //you can specify either frame or bar.
wrapper: '<div />', //the wrapper for the progress bars
attr: {
class: 'content-progress' // the class name of the progress bar container
},
onComplete: function() {
// callback when user reaches end of page or content
},
fromComplete: function() {
// callback when user scrolls back from end of page
}
});
});
#Dependencies jQuery & jquery-transit
install via npm
npm install content-progress
To use, just include the contentProgress.js and css to your page. The appearance of the progressbars can be styled via css (bar thickness, color, etc.). Please take note container paddings to account for the thickness of your progressbars. Progress bars are highly customisable via CSS, you can basically do anything with it! Thickness, background, colors, positioning, go wild! If you decide to change the classname, please change the css accordingly.
$(document).ready(function(){
$('body').contentProgress({
type: 'bar'
});
});
Please see the demo!
FAQs
A jquery plugin that creates stylable progress bars based on scroll position.
The npm package content-progress receives a total of 1 weekly downloads. As such, content-progress popularity was classified as not popular.
We found that content-progress 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
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.