h5ai/src/_h5ai/js/inc/splash.js
2012-03-25 00:45:32 +01:00

25 lines
No EOL
508 B
JavaScript

(function (window, $) {
'use strict';
/*jslint browser: true, confusion: true, white: true */
/*global jQuery */
var deobfuscate = function () {
$('.obfusma').each(function () {
var $this = $(this),
add = $this.text().replace(/\s*/g, '').replace(/\[at\]/gi, '@').replace(/\[dot\]/gi, '.'),
$a = $('<a/>').attr('href', 'mailto:' + add).text(add).addClass('deobfusma');
$this.replaceWith($a);
});
},
init = function () {
deobfuscate();
};
$(init);
}(window, jQuery));