diff options
| author | Owen <despito@MacBook-Pro-de-Despito.local> | 2014-06-24 15:29:43 +0200 |
|---|---|---|
| committer | Owen <despito@MacBook-Pro-de-Despito.local> | 2014-06-24 15:29:43 +0200 |
| commit | 2d98eaaf727834c128fdd2513d43d677d97fe8d7 (patch) | |
| tree | 567362955cbbcfde63c554e034544c2a568c4bde /scripts/watchdog.js | |
| parent | 8c9f7f278806918308ac40ee721b1f9162385bf1 (diff) | |
client-only prototype files
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(); + +}); + + |
