Nothing Special   »   [go: up one dir, main page]

Skip to content

A Javascript Konami Code listener to integrate in webpages.

License

Notifications You must be signed in to change notification settings

vergoulis/koCodeJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KoCodeJS - A library for Konami Code

Copyright (c) 2019, Thanasis Vergoulis (vergoulis@athenarc.gr)

This is just a fun project. It provides a Javascript open source implementation of a konami code listener for websites.

Usage

Just include the Javascript code in your HTML file like this:

<script src="kocode.js">
</script>

And then start the listener like this:

<script>
	document.
</script>

When the user is viewing the HTML page and then hits the correct sequence of keys a custom Javascript code is executed (e.g., an alert message). Of course you can alter the custom code to implement a different functionality (e.g., change and HTML element).

The file test.html is just a toy example of an HTML page using the Javascript library. Have fun!

License

The code is provided under a GNU/GPL license.

About

A Javascript Konami Code listener to integrate in webpages.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published