tiny 88x31 lexicon for atproto
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Beepe

+4 -4
+3 -3
tmpl/embedbase.html
··· 47 47 const openUri = (e) => { 48 48 if (e.button === 1) { 49 49 e.preventDefault() 50 - const uri = e.target.dataset.uri 51 - console.log(uri) 52 - window.open(`https://88x31.store/button?uri=${uri}`, "_blank") 50 + const url = e.target.dataset.url 51 + console.log(url) 52 + window.open(url, "_blank") 53 53 } 54 54 } 55 55 const buttons = document.querySelectorAll(".button a")
+1 -1
tmpl/partial/embedbuttonpart.html
··· 1 1 {{define "buttonpart"}} 2 - <a href="{{.HREF}}" target="_blank" rel="noopener noreferrer" data-uri="{{.URI}}"> 2 + <a href="{{.HREF}}" target="_blank" rel="noopener noreferrer" data-url="https://88x31.store/buttons?uri={{.URI}}"> 3 3 <img src="/xrpc/store.88x31.getButton?uri={{.URI}}" alt="{{.Alt}}" {{if .Title}} title="{{.Title}}"{{end}} style="display: block"/> 4 4 </a> 5 5 {{end}}