mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 17:01:20 -08:00
feat: add artplayer-plugin-jassub with initial implementation and documentation
This commit is contained in:
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 {
|
||||
//
|
||||
}
|
||||
Reference in new issue
Block a user