PageSourceSearch

https://www.xn--espaaescultura-tnb.es/.resources/templating/base/j…tion-color~2026-09-28-14-41-48-000~cache.js

js xn--espaaescultura-tnb.es collected 2026-10-02 04:27:17 UTC 1,139 bytes, 35 lines download raw bytes

1function intToRgbaColor(num) {
2    num >>>= 0;
3    var b = num & 0xFF,
4        g = (num & 0xFF00) >>> 8,
5        r = (num & 0xFF0000) >>> 16,
6        a = ( (num & 0xFF000000) >>> 24 ) / 255 ;
7    return "rgba(" + [r, g, b, a].join(",") + ")";
8}
9
10function rgbaToHex(rgba) {
11  rgba = rgba.match(
12    /^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i
13  );
14  return rgba && rgba.length === 4
15    ? "#" +
16        ("0" + parseInt(rgba[1], 10).toString(16)).slice(-2) +
17        ("0" + parseInt(rgba[2], 10).toString(16)).slice(-2) +
18        ("0" + parseInt(rgba[3], 10).toString(16)).slice(-2)
19    : "";
20}
21
22function actualizarMuestraColor(){
23    //let muestrasColor = this;
24    // Loop all .content class elements
25  $(document).ready(function(){
26      $('.MuestraColor').each(function(){
27        colorInt = $(this).attr('codeColor');
28        if (colorInt != ""){
29			colorRgba = intToRgbaColor(colorInt);
30        	colorHex =  rgbaToHex(colorRgba);
31        	$(this).attr('style', 'background-color: ' + colorHex + ' !important;' + ' color: ' + 'white' + ' !important;' );
32		}
33      });
34  });
35}

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.