mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 14:41:20 -08:00
Aliyundrive (#436)
* init * init * add example * add initControl * add initControl * update style * update style * update style * update style * update style * update style * update style * update style * build all * build all * update style
This commit is contained in:
1 parent
4dcde5a539
commit
6b791be35a
52 files changed
+689
-50
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import screenfull from '../libs/screenfull';
|
||||
import { append, tooltip, setStyle } from '../utils';
|
||||
|
||||
export default function fullscreen(option) {
|
||||
@@ -15,8 +16,8 @@ export default function fullscreen(option) {
|
||||
art.fullscreen = !art.fullscreen;
|
||||
});
|
||||
|
||||
art.on('fullscreen', (value) => {
|
||||
if (value) {
|
||||
screenfull.on('change', () => {
|
||||
if (art.fullscreen) {
|
||||
tooltip($control, i18n.get('Exit Fullscreen'));
|
||||
setStyle($fullscreenOn, 'display', 'none');
|
||||
setStyle($fullscreenOff, 'display', 'inline-flex');
|
||||
|
||||
@@ -11,6 +11,7 @@ export default function setting(option) {
|
||||
|
||||
proxy($control, 'click', () => {
|
||||
art.setting.toggle = true;
|
||||
art.setting.updateStyle();
|
||||
});
|
||||
|
||||
art.on('setting', (value) => {
|
||||
|
||||
Reference in new issue
Block a user