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