You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// "This code creates a new <p> element with the div "custom-nav" and it's content. The following code looks for a element with the wrapper id and adds the new <p> element. If the element with the wrapper id is not present, then the <p> element is added after the post-body element. There is then code which sets a hypothesis config which sets the sidebar to stay closed and sets custom colors. The last part of the code looks into the post-body element, finds any footnote reference and then changes them into a clickable link."//topP.style.textAlign = "center";vartopP=document.createElement("p");topP.innerHTML=`<hr><div class="custom-nav"><a rel="me" href="https://tiny.write.as/bilge/${location.pathname}">Tiny</a> ※ <a href="https://davidblue.wtf/sms">SMS</a> ※ <a rel="me" href="https://mastodon.social/@DavidBlue">Mastodon</a> ※ <a href="https://github.com/extratone/bilge">GitHub</a> ※ <a href="https://gist.github.com/extratone/140a11428b5dd1dda500b3928e0438b1">License</a></div>`;varcont=document.getElementById("wrapper");if(cont!==null){// Add to blog index and tag pagescont.appendChild(topP);}else{// Add to individual blog post pagecont=document.getElementById("post-body");cont.insertAdjacentHTML("afterend",topP.outerHTML);}// src: https://platform.twitter.com/widgets.js
src: https://hypothes.is/embed.jswindow.hypothesisConfig=function(){return{"openSidebar": true,"theme": "clean",branding: {appBackgroundColor: '#e6f7ff',ctaBackgroundColor: '#da2573',ctaTextColor: '#00006b',selectionFontFamily: 'Georgia, serif'}};};// Footnote hyperlinks in the body.varnotePattern=/\[\^(\d+)\]/g;varnoteText="<a name=\"fn$1\"></a><sup><a class=\"footnote\" href=\"#fnref$1\">$1</a></sup>";// Footnote references at the bottom.varrefPattern=/\[(\d+)\](.*)/g;varrefText="<a name=\"fnref$1\"></a><sup><a class=\"footnote-ref\" href=\"#fn$1\">$1</a></sup><span class=\"footnote-ref-text\">$2</span>";varpostContent=document.getElementById("post-body").innerHTML;postContent=postContent.replace(notePattern,noteText);postContent=postContent.replace(refPattern,refText);document.getElementById("post-body").innerHTML=postContent;
The text was updated successfully, but these errors were encountered:
Tracking changes to custom.js.
The text was updated successfully, but these errors were encountered: