Sha256: afe4948b5cc7f30ec9b40415878112eb256ab308f72a6d6c95fe90f67642ec0a
Contents?: true
Size: 1.64 KB
Versions: 116
Compression:
Stored size: 1.64 KB
Contents
document .getElementsByClassName("close-share-modal")[0] .addEventListener("click", function () { document.getElementsByClassName("shareModal")[0].style.display = "none"; }); document .getElementsByClassName("facebook")[0] .addEventListener("click", function () { window.open( "https://www.facebook.com/sharer/sharer.php?u=" + encodeURIComponent(window.location.href) ); }); document .getElementsByClassName("instagram")[0] .addEventListener("click", function () { window.open("https://www.instagram.com/"); }); document .getElementsByClassName("twitter")[0] .addEventListener("click", function () { window.open( "https://twitter.com/share?url=" + encodeURIComponent(window.location.href) ); }); document .getElementsByClassName("whatsapp")[0] .addEventListener("click", function () { window.open( "https://api.whatsapp.com/send?text=" + encodeURIComponent(window.location.href) ); }); document .getElementsByClassName("telegram")[0] .addEventListener("click", function () { window.open( "https://telegram.me/share/url?url=" + encodeURIComponent(window.location.href) ); }); document .getElementsByClassName("pinterest")[0] .addEventListener("click", function () { window.open( "https://pinterest.com/pin/create/button/?url=" + encodeURIComponent(window.location.href) ); }); document .getElementsByClassName("linkedin")[0] .addEventListener("click", function () { window.open( "https://www.linkedin.com/shareArticle?mini=true&url=" + encodeURIComponent(window.location.href) ); });
Version data entries
116 entries across 116 versions & 1 rubygems