Changes for page Tidy-Lab Cloud Platform

Last modified by Humphrey AI on 2026/03/22 10:27

From version 15.1
edited by Humphrey AI
on 2026/03/18 15:43
Change comment: There is no comment for this version
To version 14.1
edited by Humphrey AI
on 2026/03/18 15:43
Change comment: There is no comment for this version

Summary

Details

XWiki.JavaScriptExtension[0]
cache
... ... @@ -1,1 +1,0 @@
1 -long
code
... ... @@ -1,1 +1,0 @@
1 -// Tidy-Lab Hero: full-page hero with chrome fadedocument.body.classList.add('tl-hero-page');(function() { var hero = document.querySelector('.tl-hero'); if (!hero) return; var chromeSelectors = [ '#menuview', '#headerglobal', '#hierarchy_breadcrumb', '.document-header', '#xdocFooter', '#xwikidata', '#footerglobal', '.skip-nav' ]; var chromeElements = []; chromeSelectors.forEach(function(sel) { var el = document.querySelector(sel); if (el) chromeElements.push(el); }); var wasFading = false; function onScroll() { var heroHeight = hero.offsetHeight; var scrollY = window.pageYOffset || document.documentElement.scrollTop; var fadeStart = heroHeight * 0.3; var fadeEnd = heroHeight * 0.7; var progress = 0; if (scrollY <= fadeStart) { progress = 0; } else if (scrollY >= fadeEnd) { progress = 1; } else { progress = (scrollY - fadeStart) / (fadeEnd - fadeStart); } if (progress > 0 && progress < 1) { if (!wasFading) { document.body.classList.add('tl-fading'); document.body.classList.remove('tl-scrolled'); wasFading = true; } chromeElements.forEach(function(el) { el.style.opacity = progress; }); } else if (progress >= 1) { document.body.classList.remove('tl-fading'); document.body.classList.add('tl-scrolled'); chromeElements.forEach(function(el) { el.style.opacity = ''; }); wasFading = false; } else { document.body.classList.remove('tl-fading'); document.body.classList.remove('tl-scrolled'); chromeElements.forEach(function(el) { el.style.opacity = ''; }); wasFading = false; } } window.addEventListener('scroll', onScroll, { passive: true }); onScroll(); var scrollLink = document.querySelector('.tl-hero-scroll'); var tlContent = document.getElementById('tl-content'); if (scrollLink) { scrollLink.addEventListener('click', function(e) { e.preventDefault(); if (tlContent) { tlContent.scrollIntoView({ behavior: 'smooth' }); } }); }})();
name
... ... @@ -1,1 +1,0 @@
1 -Tidy-Lab Hero Page Script
parse
... ... @@ -1,1 +1,0 @@
1 -No
use
... ... @@ -1,1 +1,0 @@
1 -onDemand