User Interaction With Key Sequence - jQuery keySequence

File Size: 3.87 KB
Views Total: 1184
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
User Interaction With Key Sequence - jQuery keySequence

keySequence is a jQuery plugin to create a fancy user interaction that triggers an event based on a sequence of pre-defined keyboard keys. Ideal for creating a Cheat Code (Easter Egg) on your web page.

Similar Plugins

How to use it:

1. Include the JavaScript file ks.jquery.js after the latest jQuery library (slim build).

<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" 
        integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" 
        crossorigin="anonymous"></script>
<script src="ks.jquery.js"></script>

2. Trigger a custom function as you type 'jQueryScript' on the webpage.

$(function(){

  $.keySequence('jqueryscript', function(){
    alert('Welcome to JQueryScript.net');
    console.log('Welcome to JQueryScript.net');
    // ...
  });

});

This awesome jQuery plugin is developed by iamtiago. For more Advanced Usages, please check the demo page or visit the official website.