madebydanny.uk written in html, css, and a lot of JavaScript I don't understand madebydanny.uk
html css javascript
1
fork

Configure Feed

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

added tor url

+12 -6
+12 -6
js/social-links.js
··· 36 36 createdByUrl: 'https://aturi.to/did:plc:l37td5yhxl2irrzrgvei4qay', 37 37 hostedOn: 'wisp.place', 38 38 hostedOnUrl: 'https://wisp.place', 39 - homeUrl: '/' 39 + homeUrl: '/', 40 + torUrl: 'http://irgwdhat74pqcpkk7ynrphvohnnt574yvwmhredrfusemgu6wj2ik5id.onion/' 40 41 }; 41 42 42 43 function renderSocialLinks(containerId) { ··· 56 57 a.href = link.href; 57 58 a.setAttribute('role', 'listitem'); 58 59 a.setAttribute('aria-label', link.label); 59 - 60 + 60 61 if (link.target === '_blank') { 61 62 a.target = '_blank'; 62 63 a.rel = 'noopener noreferrer'; ··· 88 89 if (window.location.pathname !== '/') { 89 90 const backLink = document.createElement('p'); 90 91 backLink.style.marginBottom = '12px'; 91 - backLink.innerHTML = `<a href="${FOOTER_CONFIG.homeUrl}">← Back to home</a>`; 92 + backLink.innerHTML = `← <a href="${FOOTER_CONFIG.homeUrl}">Back to home</a>`; 92 93 container.appendChild(backLink); 93 94 } 94 95 95 96 const p = document.createElement('p'); 96 - p.innerHTML = `&copy; ${FOOTER_CONFIG.copyright} by <a href="${FOOTER_CONFIG.createdByUrl}">${FOOTER_CONFIG.createdBy}</a> - hosted on <a href="${FOOTER_CONFIG.hostedOnUrl}" target="_blank">${FOOTER_CONFIG.hostedOn}</a>`; 97 - 97 + p.innerHTML = `© ${FOOTER_CONFIG.copyright} by <a href="${FOOTER_CONFIG.createdByUrl}" target="_blank" rel="noopener noreferrer">${FOOTER_CONFIG.createdBy}</a> - hosted on <a href="${FOOTER_CONFIG.hostedOnUrl}" target="_blank" rel="noopener noreferrer">${FOOTER_CONFIG.hostedOn}</a>`; 98 98 container.appendChild(p); 99 + 100 + // Tor link 101 + const torLink = document.createElement('p'); 102 + torLink.style.marginTop = '8px'; 103 + torLink.innerHTML = `<a href="${FOOTER_CONFIG.torUrl}" target="_blank" rel="noopener noreferrer">Open in Tor</a>`; 104 + container.appendChild(torLink); 99 105 } 100 106 101 107 // Auto-render if element with id "social-links" exists ··· 109 115 if (footerContainer) { 110 116 renderFooter('site-footer'); 111 117 } 112 - }); 118 + });