Sha256: 2d70f6d4322346462c1512671f4c8c20451d72ec4d7b47b741f7a08f118c4e37

Contents?: true

Size: 1.71 KB

Versions: 4

Compression:

Stored size: 1.71 KB

Contents

{I"
class:ETI"ProcessedAsset;FI"logical_path;TI"anti-spam.js;FI"
pathname;TI"T/Users/rchaves/Sites/AntiSpam/anti_spam/app/assets/javascripts/anti-spam.js.erb;FI"content_type;TI"application/javascript;TI"
mtime;Tl+vÎbTI"length;TiÎI"digest;TI"%c80a74439b8ca14aea37de17d0c3f755;FI"source;TI"Î(function(){

	var antiSpamizeForms = function(){
		var forms = document.querySelectorAll("form");
		for(var i = 0, max = forms.length; i < max; i++){
			var form = forms[i];
			form.onsubmit = function(){
				if(form.querySelectorAll('input.antispam_token').length == 0){
					var input = document.createElement('input');
				    input.type = 'hidden';
				    input.name = 'antispam_token';
				    input.className = 'antispam_token'
				    input.value = 'd5ba63b622ae4249834414e937b5477b';
				    form.appendChild(input);
				    form.submit();
				    return false;
				}
			}
		}
	}
	
	if(document.attachEvent){
		document.attachEvent("onreadystatechange", antiSpamizeForms);
		document.attachEvent("onload", antiSpamizeForms);
	}else{
		document.addEventListener('DOMContentLoaded', antiSpamizeForms, false);
		document.addEventListener('load', antiSpamizeForms, false);
		document.addEventListener('page:load', antiSpamizeForms, false); // for turbolinks
	}

})();
;TI"dependency_digest;TI"%71007aedff6e914bdd7783729fb7557b;FI"required_paths;T[I"T/Users/rchaves/Sites/AntiSpam/anti_spam/app/assets/javascripts/anti-spam.js.erb;FI"dependency_paths;T[{I"	path;TI"T/Users/rchaves/Sites/AntiSpam/anti_spam/app/assets/javascripts/anti-spam.js.erb;FI"
mtime;TI"2014-11-12T01:05:26-02:00;TI"digest;TI"%a342be6adc65859bca2ca92d8b259345;FI"
_version;TI"%5c3e44a14ff6af2b9f721e31fc3e60ca;F

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
anti_spam-0.0.2 test/dummy/tmp/cache/assets/test/sprockets/12a72027ac2b5c6d58b42d466fdb6ed9
anti_spam-0.0.2 test/dummy/tmp/cache/assets/test/sprockets/c0e7b185844e51ee81edb6b0283952e6
anti_spam-0.0.1 test/dummy/tmp/cache/assets/test/sprockets/12a72027ac2b5c6d58b42d466fdb6ed9
anti_spam-0.0.1 test/dummy/tmp/cache/assets/test/sprockets/c0e7b185844e51ee81edb6b0283952e6