diff --git a/hacking_religion/chapter_1.html b/hacking_religion/chapter_1.html index 9bf7e23..d48eb59 100644 --- a/hacking_religion/chapter_1.html +++ b/hacking_religion/chapter_1.html @@ -2,7 +2,7 @@ - + @@ -1161,24 +1161,6 @@ window.document.addEventListener("DOMContentLoaded", function (event) { // clear code selection e.clearSelection(); }); - var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//); - var mailtoRegex = new RegExp(/^mailto:/); - var filterRegex = new RegExp('/' + window.location.host + '/'); - var isInternal = (href) => { - return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href); - } - // Inspect non-navigation links and adorn them if external - var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool)'); - for (var i=0; i