Add LHB Engineering case study with reusable header/footer partials and scrollable hero screenshots

This commit is contained in:
Ovidiu U
2026-03-13 13:39:55 +00:00
parent f2d497db9a
commit 484066a80e
11 changed files with 328 additions and 107 deletions

View File

@@ -0,0 +1,13 @@
document.querySelectorAll('.screenshot-hero-scroll').forEach(function (el) {
var img = el.querySelector('img');
function check() {
if (el.scrollHeight <= el.clientHeight) {
el.classList.add('screenshot-hero-scroll--no-hint');
}
}
if (img && !img.complete) {
img.addEventListener('load', check);
} else {
check();
}
});