PageSourceSearch

https://identi.ca/javascript/libs/jquery-spin.js

js identi.ca collected 2026-09-24 08:29:25 UTC 1,328 bytes, 36 lines download raw bytes

1(function($, Spinner) {
2    var defaults = {
3        lines: 9, // The number of lines to draw
4        length: 6, // The length of each line
5        width: 2, // The line thickness
6        radius: 2, // The radius of the inner circle
7        corners: 1, // Corner roundness (0..1)
8        rotate: 0, // The rotation offset
9        color: '#000', // #rgb or #rrggbb
10        speed: 1, // Rounds per second
11        trail: 60, // Afterglow percentage
12        shadow: false, // Whether to render a shadow
13        hwaccel: false, // Whether to use hardware acceleration
14        className: 'spinner', // The CSS class to assign to the spinner
15        zIndex: 2e9, // The z-index (defaults to 2000000000)
16        top: 'auto', // Top position relative to parent in px
17        left: 'auto' // Left position relative to parent in px
18    };
19
20    $.fn.spin = function(opts) {
21        this.each(function() {
22            var $this = $(this),
23                data = $this.data();
24
25            if (data.spinner) {
26                data.spinner.stop();
27                delete data.spinner;
28            }
29            if (opts !== false) {
30                data.spinner = new Spinner($.extend($.extend({color: $this.css('color')}, defaults), opts)).spin(this);
31            }
32        });
33        return this;
34    };
35})(window.jQuery, window.Spinner);
36

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.