diff options
Diffstat (limited to 'static/js/codeBlockNameLinks.min.js')
| -rw-r--r-- | static/js/codeBlockNameLinks.min.js | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/static/js/codeBlockNameLinks.min.js b/static/js/codeBlockNameLinks.min.js deleted file mode 100644 index df1f999..0000000 --- a/static/js/codeBlockNameLinks.min.js +++ /dev/null @@ -1 +0,0 @@ -document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll("code[data-name]").forEach(function(e){var t,a=e.getAttribute("data-name");a.startsWith("http")&&((t=document.createElement("a")).href=a,t.className="source-path",t.textContent=a,e.insertBefore(t,e.firstChild),e.removeAttribute("data-name"),e.parentElement?.removeAttribute("data-name"))}),document.querySelectorAll(".code-source").forEach(function(e){var t,a=e.getAttribute("data-source");"PRE"===(e=e.nextElementSibling)?.tagName&&(e=e.querySelector("code"))&&(a.startsWith("http")?((t=document.createElement("a")).href=a,t.className="source-path",t.textContent=a,e.insertBefore(t,e.firstChild)):e.setAttribute("data-name",a))})}); |
