一旦コメントアウト

This commit is contained in:
moris 2025-04-06 23:42:09 +09:00
parent 07fd2de204
commit 2ae55f181b

View file

@ -59,15 +59,15 @@
return ()=>{window.removeEventListener('hashchange', hashChange)} return ()=>{window.removeEventListener('hashchange', hashChange)}
}) })
// copy code // // copy code
onMount(()=>{ // onMount(()=>{
document.getElementById('blog')?.addEventListener('click',(e:MouseEvent)=>{ // document.getElementById('blog')?.addEventListener('click',(e:MouseEvent)=>{
if (e.target instanceof HTMLElement && e.target.matches('pre')) { // if (e.target instanceof HTMLElement && e.target.matches('pre')) {
let code = e.target.textContent || ''; // let code = e.target.textContent || '';
navigator.clipboard.writeText(code) // navigator.clipboard.writeText(code)
} // }
}) // })
}) // })
</script> </script>