6bit.ch/html/js/helpers.js
root 39752c845a modified: index.html
new file:   js/art.js
	new file:   js/hdr.js
	new file:   js/hearts.js
	new file:   js/helpers.js
	new file:   js/particles.js
	new file:   js/qlpycon.js
	new file:   js/qlpyconbanner.js
	new file:   js/snek.js
	new file:   js/sparks.js
	new file:   js/stars.js
	modified:   slamp.html
	modified:   style.css
2026-06-14 14:08:52 +02:00

8 lines
315 B
JavaScript

document.querySelector('#things-details').addEventListener('toggle', function(e) {
if (!e.target.open) return;
e.target.querySelectorAll('img[data-src]').forEach(function(img) {
img.src = img.getAttribute('data-src');
img.removeAttribute('data-src');
});
});