Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
jquery.counterup
Advanced tools
jquery.counterup is a lightweight jQuery plugin that counts up to a targeted number when the number becomes visible.
jquery.counterup is a jQuery plugin that animates a number from zero (counting up towards it). It supports counting up:
12345
0.1234
1,234,567.00
21:45:00
Features:
data-counterup-time=""
and data-counterup-delay=""
.Requires waypoints.js
Install with Bower
bower install jquery.counterup
=====
Include
<script src="https://cdnjs.cloudflare.com/ajax/libs/waypoints/4.0.0/jquery.waypoints.min.js"></script>
<script src="jquery.counterup.min.js"></script>
HTML
With default values from plugin instantiation.
<span class="counter">1,234,567.00</span>
<span>$</span><span class="counter">1.99</span>
<span class="counter">12345</span>
With values from data
attribute.
<span class="counter" data-counterup-time="1500" data-counterup-delay="30">1,234,567.00</span>
jQuery
$('.counter').counterUp();
or with extra parameters
$('.counter').counterUp({
delay: 10,
time: 1000,
formatter: function (n) {
return n.replace(/,/g, '.');
});
});
delay
- The delay in milliseconds per number count up
time
- The total duration of the count up animation
formatter
- A callback to format the number with
FAQs
jquery.counterup is a lightweight jQuery plugin that counts up to a targeted number when the number becomes visible.
The npm package jquery.counterup receives a total of 2,002 weekly downloads. As such, jquery.counterup popularity was classified as popular.
We found that jquery.counterup 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.