The indispensable directive for VueJS
Full documentation website can be found here.
If targeting Vue2, please read Legacy docs
npm install vue-konami --save
<div v-konami="easterEgg"></div>
<script setup>
const easterEgg = () => {
alert('easterEgg');
};
</script>
<div v-konami="easterEgg"></div>
<script setup>
const easterEgg = {
timeout: 500,
chain: ['A', 'Z', 'E', 'R', 'T', 'Y'],
callback: () => {
alert('easterEgg');
}
};
</script>
cadgerfeast |
Aterbonus |
MIT