From 02c3891865c7741b8f772aea75cc01564d2f0ff4 Mon Sep 17 00:00:00 2001
From: amzrk2
Date: Mon, 1 Jun 2020 15:44:04 +0800
Subject: Remove jQuery
---
layouts/partials/scripts-end.html | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
(limited to 'layouts/partials/scripts-end.html')
diff --git a/layouts/partials/scripts-end.html b/layouts/partials/scripts-end.html
index 1e02812..99f9e9e 100644
--- a/layouts/partials/scripts-end.html
+++ b/layouts/partials/scripts-end.html
@@ -1,8 +1,8 @@
+
-
{{ with .Params.playerURL }}
@@ -19,5 +19,12 @@
cover: '{{ $.Params.playerCover }}'
}]
});
+ // aplayer toc anchors fix
+ // see https://github.com/MoePlayer/APlayer/issues/242#issuecomment-602471423
+ document.addEventListener('DOMContentLoaded', function () {
+ var issueTocEle = document.querySelector('.sidebar-toc');
+ var newTocEle = issueTocEle.cloneNode(true);
+ issueTocEle.parentNode.replaceChild(newTocEle, issueTocEle);
+ });
{{ end }}
\ No newline at end of file
--
cgit v1.2.3