easter-eggs

1.2.0 • Public • Published

easter-eggs

npm version

A simple script for adding the Konami Code easter egg to your site. Configurable to add your own patterns and callback functions in the case of match.

easter-eggs demo image

Quick start

1 Download and Install easter-eggs

2 Include dependences

2.1 easter-eggs.js or easter-eggs.min.js are under dist folder.

2.2 Include easter-eggs.js or easter-eggs.min.js, e.g.

<script src="../dist/easter-eggs.min.js"></script>

3 Use it

In your javascript code this way:

EasterEggs.show();
 
EasterEggs.addSequence(null,[51,50,49],function(){
    console.log("MATCH!!! 3,2,1");
})

4 License

easter-eggs.js is MIT licensed.

Dependencies (0)

    Dev Dependencies (7)

    Package Sidebar

    Install

    npm i easter-eggs

    Weekly Downloads

    3

    Version

    1.2.0

    License

    MIT

    Unpacked Size

    69.9 kB

    Total Files

    9

    Last publish

    Collaborators

    • ajsoriar