PageSourceSearch

https://www.dataaccess.com/js/jquery.color.js

js dataaccess.com collected 2026-10-02 04:06:15 UTC 3,447 bytes, 92 lines download raw bytes

1(function (d) {
2    d.each(["backgroundColor", "borderBottomColor", "borderLeftColor", "borderRightColor", "borderTopColor", "color", "outlineColor"], function (f, e) {
3        d.fx.step[e] = function (g) {
4            if (!g.colorInit) {
5                g.start = c(g.elem, e);
6                g.end = b(g.end);
7                g.colorInit = true
8            }
9            g.elem.style[e] = "rgb(" + [Math.max(Math.min(parseInt((g.pos * (g.end[0] - g.start[0])) + g.start[0]), 255), 0), Math.max(Math.min(parseInt((g.pos * (g.end[1] - g.start[1])) + g.start[1]), 255), 0), Math.max(Math.min(parseInt((g.pos * (g.end[2] - g.start[2])) + g.start[2]), 255), 0)].join(",") + ")"
10        }
11    });
12
13    function b(f) {
14        var e;
15        if (f && f.constructor == Array && f.length == 3) {
16            return f
17        }
18        if (e = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(f)) {
19            return [parseInt(e[1]), parseInt(e[2]), parseInt(e[3])]
20        }
21        if (e = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(f)) {
22            return [parseFloat(e[1]) * 2.55, parseFloat(e[2]) * 2.55, parseFloat(e[3]) * 2.55]
23        }
24        if (e = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(f)) {
25            return [parseInt(e[1], 16), parseInt(e[2], 16), parseInt(e[3], 16)]
26        }
27        if (e = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(f)) {
28            return [parseInt(e[1] + e[1], 16), parseInt(e[2] + e[2], 16), parseInt(e[3] + e[3], 16)]
29        }
30        if (e = /rgba\(0, 0, 0, 0\)/.exec(f)) {
31            return a.transparent
32        }
33        return a[d.trim(f).toLowerCase()]
34    }
35    function c(g, e) {
36        var f;
37        do {
38            f = d.css(g, e);
39            if (f != "" && f != "transparent" || d.nodeName(g, "body")) {
40                break
41            }
42            e = "backgroundColor"
43        } while (g = g.parentNode);
44        return b(f)
45    }
46    var a = {
47        aqua: [0, 255, 255],
48        azure: [240, 255, 255],
49        beige: [245, 245, 220],
50        black: [0, 0, 0],
51        blue: [0, 0, 255],
52        brown: [165, 42, 42],
53        cyan: [0, 255, 255],
54        darkblue: [0, 0, 139],
55        darkcyan: [0, 139, 139],
56        darkgrey: [169, 169, 169],
57        darkgreen: [0, 100, 0],
58        darkkhaki: [189, 183, 107],
59        darkmagenta: [139, 0, 139],
60        darkolivegreen: [85, 107, 47],
61        darkorange: [255, 140, 0],
62        darkorchid: [153, 50, 204],
63        darkred: [139, 0, 0],
64        darksalmon: [233, 150, 122],
65        darkviolet: [148, 0, 211],
66        fuchsia: [255, 0, 255],
67        gold: [255, 215, 0],
68        green: [0, 128, 0],
69        indigo: [75, 0, 130],
70        khaki: [240, 230, 140],
71        lightblue: [173, 216, 230],
72        lightcyan: [224, 255, 255],
73        lightgreen: [144, 238, 144],
74        lightgrey: [211, 211, 211],
75        lightpink: [255, 182, 193],
76        lightyellow: [255, 255, 224],
77        lime: [0, 255, 0],
78        magenta: [255, 0, 255],
79        maroon: [128, 0, 0],
80        navy: [0, 0, 128],
81        olive: [128, 128, 0],
82        orange: [255, 165, 0],
83        pink: [255, 192, 203],
84        purple: [128, 0, 128],
85        violet: [128, 0, 128],
86        red: [255, 0, 0],
87        silver: [192, 192, 192],
88        white: [255, 255, 255],
89        yellow: [255, 255, 0],
90        transparent: [255, 255, 255]
91    }
92})(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.