PageSourceSearch

https://www.nrosedevelopers.in/assets/js/jquery.animateNumbers.min.js

js nrosedevelopers.in collected 2026-10-04 19:38:32 UTC 1,560 bytes, 20 lines download raw bytes

1/***********
2	Animates element's number to new number with commas
3	Parameters:
4		stop (number): number to stop on
5        commas (boolean): turn commas on/off (default is true)
6		duration (number): how long in ms (default is 1000)
7		ease (string): type of easing (default is "swing", others are avaiable from jQuery's easing plugin
8	Examples:
9        $("#div").animateNumbers(1234, false, 500, "linear"); // half second linear without commas
10		$("#div").animateNumbers(1234, true, 2000); // two second swing with commas
11		$("#div").animateNumbers(4321); // one second swing with commas
12	This fully expects an element containing an integer
13	If the number is within copy then separate it with a span and target the span
14    Will work in appropriate inputs
15	Inserts and accounts for commas during animation by default
16    
17    https://github.com/talmand/jquery-animate-numbers
18***********/
19
20!function(e){e.fn.animateNumbers=function(t,a,n,l){return this.each(function(){var i=e(this),r=i.is("input"),v=parseInt(r?i.val().replace(/,/g,""):i.text().replace(/,/g,"")),u=/(\d)(?=(\d\d\d)+(?!\d))/g;a=void 0===a?!0:a,r&&"number"===i[0].type&&(a=!1),e({value:v}).animate({value:t},{duration:void 0===n?1e3:n,easing:void 0===l?"swing":l,step:function(){r?i.val(Math.floor(this.value)):i.text(Math.floor(this.value)),a&&(r?i.val(i.val().replace(u,"$1,")):i.text(i.text().replace(u,"$1,")))},complete:function(){(parseInt(i.text())!==t||parseInt(i.val())!==t)&&(r?i.val(t):i.text(t),a&&(r?i.val(i.val().replace(u,"$1,")):i.text(i.text().replace(u,"$1,"))))}})})}}(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.