Sha256: 7cfdf1930db469f287bea5f1c02aa68e2ab7839a525b1213b1bf57b94cd86f7b

Contents?: true

Size: 1.7 KB

Versions: 11

Compression:

Stored size: 1.7 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

11 entries across 11 versions & 1 rubygems

Version Path
appscms-tools-theme-4.8.3 assets/js/sharePage.js
appscms-tools-theme-4.8.2 assets/js/sharePage.js
appscms-tools-theme-4.8.1 assets/js/sharePage.js
appscms-tools-theme-4.8.0 assets/js/sharePage.js
appscms-tools-theme-4.7.9 assets/js/sharePage.js
appscms-tools-theme-4.7.8 assets/js/sharePage.js
appscms-tools-theme-4.6.2 assets/js/sharePage.js
appscms-tools-theme-4.0.7 assets/js/sharePage.js
appscms-tools-theme-4.0.6 assets/js/sharePage.js
appscms-tools-theme-4.0.5 assets/js/sharePage.js
appscms-tools-theme-4.0.4 assets/js/sharePage.js