Hide Your Email

July 7, 2021
 | Categories: 
Categories: 
<a href="" class="dynamic-email"></a>
$(function(){
	//yourname@example.com
	var name = 'yourname'
	var server='example.com'
	email=name + '@' + server;
	var email_display="<span>"+name+"</span><span>&#64;</span><span>"+server;
	$(".dynamic-email").html(email_display);	

	$(".dynamic-email").on("click",function(){
		$(".dynamic-email").attr("href","mailto:" + email);
	});
});
crossmenuchevron-down linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram