diff options
Diffstat (limited to 'scripts/watchdog.js')
| -rw-r--r-- | scripts/watchdog.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/watchdog.js b/scripts/watchdog.js new file mode 100644 index 00000000..9ecdb6da --- /dev/null +++ b/scripts/watchdog.js @@ -0,0 +1,13 @@ + +var oldtext; +$('#textanalyser').keyup(function(){ + + var counter=$('#textanalyser').val().match(/([#])/g); + if(counter.length>2){ + $('#textanalyser').val(oldtext); + } + oldtext=$('#textanalyser').val(); + +}); + + |
