bugfix: fixing twitter and email share that I destroyed before
Compare changes
+ 15
− 16
@@ -551,18 +551,22 @@ document.addEventListener("DOMContentLoaded", event => {
@@ -551,18 +551,22 @@ document.addEventListener("DOMContentLoaded", event => {
var valUrl = window.location.href.replace(regexContributor, 'public').replace(regexSearcher, 'public')
$('.twshare').attr("href", "https://twitter.com/intent/tweet?text=Check%20this%20resource%20from%20Coopedia%20:%20&original_referer="+valUrl+"&ref_src=twsrc%5Etfw&tw_p=tweetbutton&&url="+valUrl+"&");
var valUrl = window.location.href.replace(regexContributor, 'public').replace(regexSearcher, 'public')
document.querySelectorAll('.emshare')[0].setAttribute("href", "mailto:?subject=Coopedia%20shared%20resource&body=I%20share%20you%20this%20resource%20from%20Coopedia%20:%20" + valUrl);
@@ -619,11 +623,6 @@ document.addEventListener("DOMContentLoaded", event => {
@@ -619,11 +623,6 @@ document.addEventListener("DOMContentLoaded", event => {
$('.twshare').attr("href", "https://twitter.com/intent/tweet?original_referer=http%3A%2F%2F127.0.0.1%3A3000%2Fevenements&ref_src=twsrc%5Etfw&tw_p=tweetbutton&url=" + valUrl + "&");