PageSourceSearch

https://harmonisproduction.com/js/jquery.typewatch.js

js harmonisproduction.com collected 2026-10-04 02:27:06 UTC 1,745 bytes, 14 lines download raw bytes

1/*
2*	TypeWatch 2.2
3*
4*	Examples/Docs: github.com/dennyferra/TypeWatch
5*	
6*  Copyright(c) 2013 
7*	Denny Ferrassoli - dennyferra.com
8*   Charles Christolini
9*  
10*  Dual licensed under the MIT and GPL licenses:
11*  http://www.opensource.org/licenses/mit-license.php
12*  http://www.gnu.org/licenses/gpl.html
13*/
14(function(jQuery){jQuery.fn.typeWatch=function(o){var _supportedInputTypes=["TEXT","TEXTAREA","PASSWORD","TEL","SEARCH","URL","EMAIL","DATETIME","DATE","MONTH","WEEK","TIME","DATETIME-LOCAL","NUMBER","RANGE"];var options=jQuery.extend({wait:750,callback:function(){},highlight:true,captureLength:2,inputTypes:_supportedInputTypes},o);function checkElement(timer,override){var value=jQuery(timer.el).val();if((value.length>=options.captureLength&&value.toUpperCase()!=timer.text)||(override&&value.length>=options.captureLength)){timer.text=value.toUpperCase();timer.cb.call(timer.el,value);}}function watchElement(elem){var elementType=elem.type.toUpperCase();if(jQuery.inArray(elementType,options.inputTypes)>=0){var timer={timer:null,text:jQuery(elem).val().toUpperCase(),cb:options.callback,el:elem,wait:options.wait};if(options.highlight){jQuery(elem).focus(function(){this.select();});}var startWatch=function(evt){var timerWait=timer.wait;var overrideBool=false;var evtElementType=this.type.toUpperCase();if(typeof evt.keyCode!="undefined"&&evt.keyCode==13&&evtElementType!="TEXTAREA"&&jQuery.inArray(evtElementType,options.inputTypes)>=0){timerWait=1;overrideBool=true;}var timerCallbackFx=function(){checkElement(timer,overrideBool);};clearTimeout(timer.timer);timer.timer=setTimeout(timerCallbackFx,timerWait);};jQuery(elem).on("keydown paste cut input",startWatch);}}return this.each(function(){watchElement(this);});};})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.