Sha256: 9dc59b27e91716f61edc4acf5a2304625048e9f1d6cd993690ebd8298a7f7d89

Contents?: true

Size: 739 Bytes

Versions: 25

Compression:

Stored size: 739 Bytes

Contents

/**
 * @author Tanin Na Nakorn
 */

var whowishWordStorage = {};

(function($w){

 	$w.extend({ 
 		
 		whowishWord: function(recurring) {
			
			var elems = $w('body').find('*');
			var matchers = whowishWordVariables.matchers;
			
			for (var i=0;i<elems.length;i++) {
				
				for (var j=0;j<matchers.length;j++) {
					
					if (matchers[j].match(elems[i])) {
						matchers[j].createWhowishWord(elems[i]);
					}
				}
				
			}
			
			$w('.whowishWordEditIcon').unbind('click');
			whowishWordHelper.repositionAllEditIconPanels();
			$w('.whowishWordEditIcon').bind('click', whowishWordHelper.editHandler);
			
			if (recurring != false) {
				setTimeout("$w.whowishWord(true);",1000);
			}
			
		}
		
	});
	
})(jQueryWhowishWord);

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
whowish_word-1.0.0 lib/whowish_word/rails/public/javascripts/4_whowish_word.js
whowish_word-0.6.5 lib/whowish_word/rails/public/javascripts/4_whowish_word.js
whowish_word-0.6.4 lib/whowish_word/rails/public/javascripts/4_whowish_word.js
whowish_word-0.6.3 lib/whowish_word/rails/public/javascripts/4_whowish_word.js
whowish_word-0.6.2 lib/whowish_word/rails/public/javascripts/4_whowish_word.js
whowish_word-0.6.2gem lib/whowish_word/rails/public/javascripts/4_whowish_word.js
whowish_word-0.6.1 lib/whowish_word/rails/public/javascripts/4_whowish_word.js
whowish_word-0.6.0 lib/whowish_word/rails/public/javascripts/4_whowish_word.js
whowish_word-0.5.5 lib/whowish_word/rails/public/javascripts/4_whowish_word.js
whowish_word-0.5.4 lib/whowish_word/rails/public/javascripts/4_whowish_word.js
whowish_word-0.5.3 lib/whowish_word/rails/public/javascripts/4_whowish_word.js
whowish_word-0.5.2 lib/whowish_word/rails/public/javascripts/4_whowish_word.js
whowish_word-0.5.1 lib/whowish_word/rails/public/javascripts/4_whowish_word.js
whowish_word-0.5.0 lib/whowish_word/rails/public/javascripts/4_whowish_word.js
whowish_word-0.4.0 lib/whowish_word/rails/public/javascripts/4_whowish_word.js
whowish_word-0.3.3 lib/whowish_word/rails/public/javascripts/4_whowish_word.js
whowish_word-0.3.2 lib/whowish_word/rails/public/javascripts/4_whowish_word.js
whowish_word-0.3.1 lib/whowish_word/rails/public/javascripts/4_whowish_word.js
whowish_word-0.3.0 lib/whowish_word/rails/public/javascripts/4_whowish_word.js
whowish_word-0.2.7 lib/whowish_word/rails/public/javascripts/4_whowish_word.js