mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-29 11:11:20 -08:00
feat: add i18n support documentation and language import examples
- Created a new documentation file for language settings in i18n. - Added examples for setting default languages and importing additional languages. - Included instructions for adding and modifying languages in the ArtPlayer plugin. - Introduced a new plugin: artplayer-plugin-liquid-glass with various build formats (legacy, mjs, etc.).
This commit is contained in:
1 parent
01d8dc680c
commit
dbeaba78e6
49 files changed
+132
-66
No files matched your search
@@ -15,13 +15,14 @@ export default function artplayerPluginLiquidGlass(option = {}) {
|
||||
|
||||
art.on('control', (state) => {
|
||||
if (state) {
|
||||
$liquidGlass.style.width = option.width;
|
||||
$liquidGlass.style['max-width'] = option['max-width'];
|
||||
$liquidGlass.style['min-width'] = option['min-width'];
|
||||
} else {
|
||||
$liquidGlass.style.width = '';
|
||||
$liquidGlass.style['max-width'] = '';
|
||||
$liquidGlass.style['min-width'] = '';
|
||||
$liquidGlass.style.width = option.width
|
||||
$liquidGlass.style['max-width'] = option['max-width']
|
||||
$liquidGlass.style['min-width'] = option['min-width']
|
||||
}
|
||||
else {
|
||||
$liquidGlass.style.width = ''
|
||||
$liquidGlass.style['max-width'] = ''
|
||||
$liquidGlass.style['min-width'] = ''
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user