CV update
All checks were successful
Rebuild signaller for deprived.dev to rebuild site / test_service (push) Successful in 23s
All checks were successful
Rebuild signaller for deprived.dev to rebuild site / test_service (push) Successful in 23s
This commit is contained in:
parent
60bc0a221c
commit
b2a4c286bf
8 changed files with 138 additions and 112 deletions
|
|
@ -30,6 +30,8 @@
|
|||
export let scrollThumbText =
|
||||
"-------------------------------------------------------------------------------------------------------------------------------Scroll-------------------------------------------------------------------------------------------------------------------------------";
|
||||
|
||||
let hideOnPrint = false;
|
||||
|
||||
let viewport: HTMLDivElement;
|
||||
let vBar: HTMLDivElement; // vertical bar container
|
||||
let hBar: HTMLDivElement; // horizontal bar container
|
||||
|
|
@ -246,6 +248,9 @@
|
|||
let ro: ResizeObserver;
|
||||
|
||||
onMount(() => {
|
||||
const params = new URLSearchParams(window.location.search);
|
||||
hideOnPrint = params.get("hideOnPrint") === "1";
|
||||
|
||||
const onScroll = () => {
|
||||
updateVerticalThumb();
|
||||
updateHorizontalThumb();
|
||||
|
|
@ -316,7 +321,7 @@
|
|||
{#if showBarY}
|
||||
<div
|
||||
bind:this={vBar}
|
||||
class="absolute bg-base-200"
|
||||
class="absolute bg-base-200 {hideOnPrint ? 'hide-on-print' : ''} "
|
||||
style="
|
||||
top: {padding}px;
|
||||
bottom: {padding}px;
|
||||
|
|
@ -361,7 +366,7 @@
|
|||
{#if showBarX}
|
||||
<div
|
||||
bind:this={hBar}
|
||||
class="absolute"
|
||||
class="absolute {hideOnPrint ? 'hide-on-print' : ''} "
|
||||
style="
|
||||
left: {padding}px;
|
||||
right: {padding}px;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue