hexo-theme-lnote 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
package/source/js/post/enable.js
CHANGED
@@ -1,8 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
)
|
8
|
-
})()
|
1
|
+
const popoverTriggerList = document.querySelectorAll(
|
2
|
+
'[data-bs-toggle="popover"]'
|
3
|
+
)
|
4
|
+
const popoverList = [...popoverTriggerList].map(
|
5
|
+
(popoverTriggerEl) => new bootstrap.Popover(popoverTriggerEl)
|
6
|
+
)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import PhotoSwipeLightbox from '
|
1
|
+
import PhotoSwipeLightbox from '//lib.baomitu.com/photoswipe/5.4.2/photoswipe-lightbox.esm.min.js';
|
2
2
|
|
3
3
|
const imgs = document.querySelectorAll('.markdown-body img')
|
4
4
|
const promiseds = Array.prototype.map.call(imgs, (item) => {
|
@@ -1,13 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
theme,
|
11
|
-
})
|
12
|
-
mermaid.init()
|
13
|
-
})()
|
1
|
+
let theme = document.documentElement.getAttribute('data-bs-theme')
|
2
|
+
if (theme !== 'dark') {
|
3
|
+
theme = 'forest'
|
4
|
+
}
|
5
|
+
mermaid.initialize({
|
6
|
+
theme,
|
7
|
+
startOnLoad: true
|
8
|
+
})
|
9
|
+
mermaid.init()
|