PageSourceSearch

https://premluczak.work/assets/js/gradient-aura-frame.js?v=Z0Zo5Z-kObLaXLC7

js premluczak.work collected 2026-10-04 08:04:34 UTC 970 bytes, 28 lines download raw bytes

1/**
2 * GRADIENT AURA FRAME
3 * Initializes every [data-gradient-aura] element on the page (multi-
4 * instance safe — see main.css ".gradient-aura-frame" for why). Same
5 * scanning pattern as gradient-frame.js's [data-gradient-frame]: loaded
6 * site-wide, no-ops with zero cost on any page with no matching element.
7 */
8(function () {
9  'use strict';
10
11  function initFrame(el) {
12    var colors = (el.getAttribute('data-aura-colors') || '')
13      .split(',')
14      .map(function (c) { return c.trim(); })
15      .filter(Boolean);
16    ['--aura-1', '--aura-2', '--aura-3'].forEach(function (prop, i) {
17      if (colors[i]) el.style.setProperty(prop, colors[i]);
18    });
19
20    var size = el.getAttribute('data-aura-size');
21    if (size) el.style.setProperty('--aura-size', size);
22
23    var speed = el.getAttribute('data-aura-speed');
24    if (speed) el.style.setProperty('--aura-speed', speed);
25  }
26
27  document.querySelectorAll('[data-gradient-aura]').forEach(initFrame);
28})();

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.