Sha256: 840dabab85d54d22c20e6cb4a0d752cfbb66038e7c0254a5ec33c8b2cdf7ff59
Contents?: true
Size: 702 Bytes
Versions: 296
Compression:
Stored size: 702 Bytes
Contents
/* Stop IE flicker */ if ($.browser.msie == true) document.execCommand('BackgroundImageCache', false, true); ChiliBook.recipeFolder = "js/chili/"; ChiliBook.stylesheetFolder = "js/chili/" jQuery.fn.antispam = function() { return this.each(function(){ var email = $(this).text().toLowerCase().replace(/\sdot/g,'.').replace(/\sat/g,'@').replace(/\s+/g,''); var URI = "mailto:" + email; $(this).hide().before( $("<a></a>").attr("href",URI).addClass("external").text(email) ); }); }; $(function() { $("pre.javascript").chili(); $("pre.html").chili(); $("pre.css").chili(); $("a.external").each(function() {this.target = '_new'}); $("span.email").antispam(); });
Version data entries
296 entries across 296 versions & 2 rubygems