feat(aplayer): add dark-mode for APlayer and fix Typeit bug

This commit is contained in:
Dillon
2020-01-29 22:16:50 +08:00
parent 5537e2ccef
commit c8e612b888
10 changed files with 197 additions and 76 deletions

View File

@@ -269,15 +269,16 @@ jQuery(function($) {
if (window.typeitArr) {
for (let i = 0; i < typeitArr.length; i++) {
const group = typeitArr[i];
(function typeone (i) {
(function typeone(i) {
const content = document.getElementById(`r${group[i]}`).innerHTML;
if (i === group.length - 1) {
new TypeIt(`#${group[i]}`, {
strings: document.getElementById(`r${group[i]}`).innerHTML,
strings: content,
}).go();
return;
}
let instance = new TypeIt(`#${group[i]}`, {
strings: document.getElementById(`r${group[i]}`).innerHTML,
strings: content,
afterComplete: () => {
instance.destroy();
typeone(i + 1);

View File

@@ -5,7 +5,7 @@ lazysizes@5.1.2
katex@0.11.1
mermaid@8.4.2
echarts@4.5.0
typeit@6.1.1
typeit@6.0.3
jquery-countdown@2.2.0
aplayer@1.10.1
meting@2.0.1

10
assets/js/lib/typeit/typeit.min.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long