2017-08-22 00:58:18 +02:00
|
|
|
$(function() {
|
|
|
|
$(".facteur").on("click", function(){
|
|
|
|
var $this = $(this);
|
|
|
|
var sticker = $this.attr('data-mref')
|
2020-09-02 18:28:26 +02:00
|
|
|
.replace(/pont/g, '.')
|
|
|
|
.replace(/arbre/g, '@')
|
2017-08-22 00:58:18 +02:00
|
|
|
.replace(/(.)-/g, '$1');
|
2020-09-02 18:28:26 +02:00
|
|
|
|
2017-08-22 00:58:18 +02:00
|
|
|
var boite = $("<a>", {href:"ma"+"il"+"to:"+sticker}).text(sticker);
|
|
|
|
$(this).before(boite)
|
|
|
|
.remove();
|
|
|
|
})
|
|
|
|
});
|