Created
July 28, 2019 02:28
-
-
Save hibuno/f1ef4705e51efefb8d2c030ee598e571 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
function handleMouseenter() { | |
console.log('Cursor memasuki halaman') | |
} | |
function handleMouseleave() { | |
console.log('Cursor meninggalkan halaman') | |
} | |
</script> | |
<!-- Memasukan HTML ke dalam tag Head --> | |
<svelte:head> | |
<title>Custom Title</title> | |
</svelte:head> | |
<!-- Memasukan / menjalankan fungsi pada tag Body --> | |
<svelte:body | |
on:mouseenter={handleMouseenter} | |
on:mouseleave={handleMouseleave} | |
/> | |
<!-- Melakukan re-konfigurasi Svelte compiler --> | |
<svelte:options | |
immutable={true} | |
/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment