Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
nanobar
Advanced tools
Readme
Very lightweight progress bars (~699 bytes gzipped).
Compatibility: iE7+ and the rest of the world
Download and extract the latest release or install with package manager:
$ bower install nanobar
npm:
$ npm install nanobar
Link nanobar.js
from your html file
<script src="path/to/nanobar.min.js"></script>
or require it:
var Nanobar = require('path/to/nanobar');
var nanobar = new Nanobar( options );
options
id
<String>
: (optional) id for nanobar divclassname
<String>
: (optional) class for nanobar divtarget
<DOM Element>
: (optional) Where to put the progress bar, nanobar will be fixed to top of document if no target
is passedResize the bar with nanobar.go(percentage)
arguments
percentage
<Number>
: percentage width of nanobarCreate bar
var options = {
classname: 'my-class',
id: 'my-id',
target: document.getElementById('myDivId')
};
var nanobar = new Nanobar( options );
//move bar
nanobar.go( 30 ); // size bar 30%
nanobar.go( 76 ); // size bar 76%
// size bar 100% and and finish
nanobar.go(100);
Nanobar injects a style tag in your HTML head. Bar divs has class .bar
, and its containers .nanobar
, so you can overwrite its values.
Default css:
.nanobar {
width: 100%;
height: 4px;
z-index: 9999;
top:0
}
.bar {
width: 0;
height: 100%;
transition: height .3s;
background:#000;
}
You should know what to do with that ;)
© 2016 jacoborus - Released under MIT License
FAQs
Very lightweight js progress bars (for browsers)
The npm package nanobar receives a total of 9,204 weekly downloads. As such, nanobar popularity was classified as popular.
We found that nanobar 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.