feat: add artplayer-plugin-jassub with initial implementation and documentation

This commit is contained in:
Harvey Zhao committed 2026-01-02 23:42:05 +08:00
1 parent 0bb4e1acdb
commit fce3b33909
8 files changed
+118

No files matched your search

@@ -0,0 +1,31 @@
import style from 'bundle-text:./style.less';
export default function artplayerPluginJassub(option) {
return (art) => {
return {
name: 'artplayerPluginJassub',
};
};
}
if (typeof document !== 'undefined') {
const id = 'artplayer-plugin-jassub';
let $style = document.getElementById(id)
if (!$style) {
$style = document.createElement('style')
$style.id = id
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', () => {
document.head.appendChild($style)
})
}
else {
(document.head || document.documentElement).appendChild($style)
}
}
$style.textContent = style
}
if (typeof window !== 'undefined') {
window.artplayerPluginJassub = artplayerPluginJassub;
}
@@ -0,0 +1,3 @@
.artplayer-plugin-jassub {
//
}