Migrate Laysense to unmodified LaySite 1.5.2

This commit is contained in:
2026-11-28 14:44:34 +08:00
parent e39439467d
commit b08008c9ca
134 changed files with 3485 additions and 754 deletions
+18
View File
@@ -0,0 +1,18 @@
'use strict';
const homeHero = document.querySelector('#main-content > .hero-home');
const homeTitle = homeHero?.querySelector('.hero-copy h1');
if (homeTitle) {
const cursor = document.createElement('span');
cursor.className = 'home-cursor';
cursor.setAttribute('aria-hidden', 'true');
cursor.textContent = '_';
homeTitle.append(cursor);
}
const homeImage = homeHero?.querySelector('.hero-visual > img');
if (homeImage && new URL(homeImage.src).pathname === HOME_IMAGE_PATH) {
homeImage.insertAdjacentHTML('afterend', HOME_MOTION_SVG);
}
document.querySelector('#main-content > .hero-home ~ #about')?.setAttribute('data-moment', 'iris-opens');