PageSourceSearch

https://blog.tomayac.com/js/share.e1427b184d.mjs

js tomayac.com collected 2026-09-24 10:04:44 UTC 779 bytes, 1 lines download raw bytes

1import{imgs}from"/js/script.mjs";const share=async()=>{try{await navigator.share({title:"",text:`“${document.title}” by @tomayac:`,url:document.querySelector("link[rel=canonical]").href})}catch(err){console.warn(err.name,err.message)}};const button=document.createElement("button");button.type="button";button.textContent="Share Article";const isAppleBrowser=/Mac|iPhone/.test(navigator.platform);button.classList.add("share",isAppleBrowser?"share-ios":"share-others");button.addEventListener("click",share);const paragraph=document.createElement("p");paragraph.appendChild(button);const footer=document.querySelector("article > footer");footer.insertBefore(paragraph,footer.firstChild);if("canShare"in navigator&&imgs.length){import("./share-image.mjs")}export{imgs,button};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.