Sha256: 8348b243855fd105cf5ddef2d9f9aec2372abb346d10d18c6ea5c161a4378f0d

Contents?: true

Size: 624 Bytes

Versions: 7

Compression:

Stored size: 624 Bytes

Contents

Util.copy = string => {
  const el = document.createElement('textarea');
        el.value = string;
        document.body.appendChild(el);
        el.select();
        document.execCommand('copy');
        document.body.removeChild(el);
}

Util.share = function(ting) {
  let target = $(ting).parents(Site.page.share),
      getUrl = $(target.context).find(Site.page.url).text(),
      tl     = gsap.timeline(),
      type   = "";
      getUrl = getUrl.replace("index","");  

  $(target.context.classList).map((index,value)=>{
    if (value.includes("type-")) {
      type = value;
    }    
  });

  Util.copy(getUrl);
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
futuro-1.1.8 assets/js/footer/custom/5_Util.share.js
futuro-1.1.7 assets/js/footer/custom/5_Util.share.js
futuro-1.1.6 assets/js/footer/custom/5_Util.share.js
futuro-1.1.5 assets/js/footer/custom/5_Util.share.js
futuro-1.1.4 assets/js/footer/custom/5_Util.share.js
futuro-1.1.3 assets/js/footer/custom/5_Util.share.js
futuro-1.1.2 assets/js/footer/custom/5_Util.share.js