your personal website on atproto - mirror blento.app

add key handler for /random (left arrow or r)

Florian a1761fe1 0bce754a

+8
+8
src/routes/random/+page.svelte
··· 5 5 let { data } = $props(); 6 6 </script> 7 7 8 + <svelte:body 9 + onkeydown={(e) => { 10 + if (e.key === 'ArrowRight' || e.key === 'r') { 11 + window.location.reload(); 12 + } 13 + }} 14 + /> 15 + 8 16 <Website {data} /> 9 17 10 18 <Button