PageSourceSearch

https://hashai.co.uk/wp-content/plugins/nextbricks/elements/js/bc_spotlight.min.js?ver=2.2.7

js hashai.co.uk collected 2026-09-29 11:52:03 UTC 1,173 bytes, 6 lines download raw bytes

1function bc_spotlight(){function getCSSVariableValue(variable){if(variable.startsWith('var(')&&variable.endsWith(')')){const variableName=variable.slice(4,-1).trim();return getComputedStyle(document.documentElement).getPropertyValue(variableName).trim()}
2return variable}
3document.querySelectorAll(".bc-spotlight").forEach(function(e){e.removeAttribute('data-flickering')
4var g=e.getAttribute("data-gradient-colors").split("bc11").filter(Boolean);var palette=e.getAttribute("data-palette");if(palette=='custom'){g=g.map(color=>getCSSVariableValue(color));if(g.length<2){g=g.concat(g)}
5let gradientStops='';const totalColors=g.length;const stepSize=20/totalColors;g.forEach((color,index)=>{const startPercentage=10+(index*stepSize);const endPercentage=10+((index+1)*stepSize);gradientStops+=`${color} ${startPercentage.toFixed(2)}%, ${color} ${endPercentage.toFixed(2)}%${index < totalColors - 1 ? ',' : ''}`});const rainbowGradient=`repeating-linear-gradient(100deg, ${gradientStops})`;e.style.setProperty('--rainbow',rainbowGradient)}})}
6document.addEventListener("DOMContentLoaded",function(t){if(typeof bricksIsFrontend!=='undefined'&&bricksIsFrontend){bc_spotlight()}})

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.