PageSourceSearch

https://advent-of-sveltekit-2022.vercel.app/_app/immutable/chunks/ChristmasOrnament-36319485.js

js advent-of-sveltekit-2022.vercel.app collected 2026-10-03 06:12:15 UTC 676 bytes, 29 lines download raw bytes

1const t=`<script lang="ts">
2	import type { PRNG } from 'seedrandom';
3	import { getContext } from 'svelte';
4	let random = getContext<PRNG>('rng');
5
6	const AMPLIFY = 20;
7	const offsetY = 16 + (random() * AMPLIFY - AMPLIFY / 2);
8	const offsetX = 16 + (random() * AMPLIFY - AMPLIFY / 2);
9
10	export let color: 'green' | 'red' = 'red';
11<\/script>
12
13<div
14	style:top="{offsetY}px"
15	style:left="{offsetX}px"
16	style:background-color={color === 'green' ? 'var(--green-3)' : 'var(--red-6)'}
17/>
18
19<style>
20	div {
21		position: absolute;
22		border-radius: var(--radius-round);
23		width: 1.5rem;
24		height: 1.5rem;
25		z-index: 10;
26		background-color: var(--green);
27	}
28</style>
29`;export{t as default};

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.