22 lines
930 B
HTML
22 lines
930 B
HTML
<!doctype html>
|
|
<!-- Screenshot probe: headless Chrome clamps --window-size below ~500px, so a
|
|
fixed-width iframe gives a true narrow layout viewport. Copied into dist/
|
|
by shoot.sh; not part of the site. -->
|
|
<meta charset="utf-8">
|
|
<title>probe</title>
|
|
<style>html,body{margin:0;background:#b0b4c0}iframe{border:0;display:block}</style>
|
|
<script>
|
|
var q = new URLSearchParams(location.search);
|
|
var f = document.createElement('iframe');
|
|
f.src = q.get('p') || '/';
|
|
f.style.width = (q.get('w') || 390) + 'px';
|
|
f.style.height = (q.get('h') || 2000) + 'px';
|
|
f.onload = function () {
|
|
var s = +(q.get('s') || 0);
|
|
// behavior:instant — the site sets scroll-behavior:smooth, which would
|
|
// leave the screenshot mid-animation
|
|
if (s) f.contentWindow.scrollTo({ top: s, behavior: 'instant' });
|
|
};
|
|
document.addEventListener('DOMContentLoaded', function () { document.body.appendChild(f); });
|
|
</script>
|