Prettier for Event Badges

This commit is contained in:
Scott Idem
2026-03-24 12:13:37 -04:00
parent e9379be5a1
commit a3ed379b17
16 changed files with 5131 additions and 4075 deletions

View File

@@ -1,38 +1,38 @@
<script lang="ts">
interface Props {
/** @type {import('./$types').LayoutData} */
data: any;
children?: import('svelte').Snippet;
log_lvl?: number;
}
interface Props {
/** @type {import('./$types').LayoutData} */
data: any;
children?: import('svelte').Snippet;
log_lvl?: number;
}
let { data, children, log_lvl = 0 }: Props = $props();
let { data, children, log_lvl = 0 }: Props = $props();
// *** Import Svelte specific
// *** Import Svelte specific
let box: any;
let xLeft = $state(0);
let xScroll = $state(0);
let xWidth = $state(0);
let yTop = $state(0);
let yScroll = $state(0);
let yHeight = $state(0);
let box: any;
let xLeft = $state(0);
let xScroll = $state(0);
let xWidth = $state(0);
let yTop = $state(0);
let yScroll = $state(0);
let yHeight = $state(0);
// let scroll_x = $state(0);
// let scroll_y = $state(0);
// let scroll_x = $state(0);
// let scroll_y = $state(0);
function parse_scroll() {
// console.log(`parse_scroll() called`);
xLeft = box.scrollLeft;
xScroll = box.scrollWidth;
xWidth = box.clientWidth;
yTop = box.scrollTop;
yHeight = box.clientHeight;
yScroll = box.scrollHeight;
// console.log(`parse_scroll() called: ${yTop}`);
}
function parse_scroll() {
// console.log(`parse_scroll() called`);
xLeft = box.scrollLeft;
xScroll = box.scrollWidth;
xWidth = box.clientWidth;
yTop = box.scrollTop;
yHeight = box.clientHeight;
yScroll = box.scrollHeight;
// console.log(`parse_scroll() called: ${yTop}`);
}
// *** Functions and Logic
// *** Functions and Logic
</script>
<!-- <svelte:head>
@@ -48,5 +48,4 @@
</svelte:head> -->
<!-- - Badges - {$events_loc?.title} -->
{@render children?.()}