Turn on the recognition of complex gestures with the mouse (gestures can describe letters, symbols of other alphabets and other symbols, including your own characters) on your site!
Opportunities
You can create your own gestures;
You can have many areas on the page that will be able to recognize gestures;
$( document ).ready( function () { $( '#sample' ).fancygestures( function (data) { alert(data); }); });
</ script >
* This source code was highlighted with Source Code Highlighter .
Customization
Please use the key below to generate a string of numbers for your character: for example. L will look like a sequence of movements 2 and 0. The following characters are already displayed in the script:
Suppose you want to add the symbol “CIRCLE” (circle) with the sequence of movements “432107654”; to do this, edit jquery.fancygestures.js, adding the following after line 7:
gestures[ "CIRCLE" ] = "432107654" ;
* This source code was highlighted with Source Code Highlighter .
The above code will return the “CIRCLE” from the function when you draw a circle. However, make sure that you do not have such sets of movements, as in this case you will get unpredictable results, for example, the presence of the same gesture for zero and the O symbol.