diff --git a/js/social-links.js b/js/social-links.js
index e35caa3..68f12c0 100644
--- a/js/social-links.js
+++ b/js/social-links.js
@@ -36,7 +36,8 @@ const FOOTER_CONFIG = {
createdByUrl: 'https://aturi.to/did:plc:l37td5yhxl2irrzrgvei4qay',
hostedOn: 'wisp.place',
hostedOnUrl: 'https://wisp.place',
- homeUrl: '/'
+ homeUrl: '/',
+ torUrl: 'http://irgwdhat74pqcpkk7ynrphvohnnt574yvwmhredrfusemgu6wj2ik5id.onion/'
};
function renderSocialLinks(containerId) {
@@ -56,7 +57,7 @@ function renderSocialLinks(containerId) {
a.href = link.href;
a.setAttribute('role', 'listitem');
a.setAttribute('aria-label', link.label);
-
+
if (link.target === '_blank') {
a.target = '_blank';
a.rel = 'noopener noreferrer';
@@ -88,14 +89,19 @@ function renderFooter(containerId) {
if (window.location.pathname !== '/') {
const backLink = document.createElement('p');
backLink.style.marginBottom = '12px';
- backLink.innerHTML = `← Back to home`;
+ backLink.innerHTML = `← Back to home`;
container.appendChild(backLink);
}
const p = document.createElement('p');
- p.innerHTML = `© ${FOOTER_CONFIG.copyright} by ${FOOTER_CONFIG.createdBy} - hosted on ${FOOTER_CONFIG.hostedOn}`;
-
+ p.innerHTML = `© ${FOOTER_CONFIG.copyright} by ${FOOTER_CONFIG.createdBy} - hosted on ${FOOTER_CONFIG.hostedOn}`;
container.appendChild(p);
+
+ // Tor link
+ const torLink = document.createElement('p');
+ torLink.style.marginTop = '8px';
+ torLink.innerHTML = `Open in Tor`;
+ container.appendChild(torLink);
}
// Auto-render if element with id "social-links" exists
@@ -109,4 +115,4 @@ document.addEventListener('DOMContentLoaded', () => {
if (footerContainer) {
renderFooter('site-footer');
}
-});
+});
\ No newline at end of file