diff --git a/src/routes/idaa/(idaa)/recovery_meetings/+page.svelte b/src/routes/idaa/(idaa)/recovery_meetings/+page.svelte index 2abfe871..d8c589bb 100644 --- a/src/routes/idaa/(idaa)/recovery_meetings/+page.svelte +++ b/src/routes/idaa/(idaa)/recovery_meetings/+page.svelte @@ -401,6 +401,36 @@ function add_activity_log( log_lvl: log_lvl }); } + +// let hide_scroll_btn = $state(true); // This is to hide the scroll to top button initially +// let scroll_y = $state(75); + +// function go_top() { +// document.body.scrollIntoView(); +// } + +// function scroll_container() { +// console.log('Element', document.getElementById('ae_idaa__recovery_meetings')) +// return document.getElementById('ae_idaa__recovery_meetings') || document.documentElement || document.body; +// // return document.documentElement || document.body; +// } + +// function handle_on_scroll() { +// if (!scroll_container()) { +// return; +// } +// console.log(`Scroll position: ${scroll_container().scrollTop}`); + +// let show_on_px = 500; // The scroll position at which the button will be shown + +// if (scroll_container().scrollTop > show_on_px) { +// hide_scroll_btn = false; +// } else { +// hide_scroll_btn = true; +// } +// } + + @@ -413,6 +443,7 @@ function add_activity_log( +