mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-19 03:11:20 -08:00
分离菜单函数
This commit is contained in:
1 parent
faa0a15148
commit
21a5085b55
9 files changed
+92
-85
No files matched your search
+10
-2
@@ -41,9 +41,9 @@
|
||||
},
|
||||
contextmenu: [
|
||||
{
|
||||
html: '自定义菜单 - 天黑请关灯 Σ(っ °Д °;)っ',
|
||||
html: '自定义菜单1 - 天亮请关灯 Σ(っ °Д °;)っ',
|
||||
click: function () {
|
||||
document.body.classList.toggle('dark');
|
||||
document.body.classList.remove('dark');
|
||||
this.hide();
|
||||
}
|
||||
}
|
||||
@@ -83,6 +83,14 @@
|
||||
]
|
||||
});
|
||||
|
||||
app.contextmenu.add({
|
||||
html: '自定义菜单2 - 天黑请开灯 Σ(っ °Д °;)っ',
|
||||
click: function () {
|
||||
document.body.classList.add('dark');
|
||||
this.hide();
|
||||
}
|
||||
});
|
||||
|
||||
app.layers.add({
|
||||
index: 1,
|
||||
name: 'your-name',
|
||||
|
||||
Reference in new issue
Block a user