Page Not Found
We could not find what you were looking for.
Please contact the owner of the site that linked you to the original URL and let them know their link is broken.
diff --git a/docs/assets/example/index.js b/docs/assets/example/index.js
index 93c486d35..762f2cb4d 100644
--- a/docs/assets/example/index.js
+++ b/docs/assets/example/index.js
@@ -33,7 +33,7 @@ var art = new Artplayer({
settings: [
{
width: 200,
- html: 'Custom Setting',
+ html: 'Custom Selector',
tooltip: 'Click This',
icon: '',
selector: [
@@ -44,12 +44,28 @@ var art = new Artplayer({
{
html: 'Setting 02',
},
+ {
+ html: 'Setting 03',
+ switch: false,
+ onSwitch: function (item) {
+ return !item.switch;
+ },
+ },
],
onSelect: function (item) {
- console.info('You clicked on the custom setting', item.html);
+ console.info('You clicked on the custom selector', item.html);
return item.html;
},
},
+ {
+ html: 'Custom Switch',
+ icon: '
',
+ switch: false,
+ onSwitch: function (item) {
+ console.info('You clicked on the custom switch', item.switch);
+ return !item.switch;
+ },
+ },
],
contextmenu: [
{
diff --git a/docs/document/404.html b/docs/document/404.html
index 89f361a81..b454875ba 100644
--- a/docs/document/404.html
+++ b/docs/document/404.html
@@ -5,13 +5,13 @@
We could not find what you were looking for.
Please contact the owner of the site that linked you to the original URL and let them know their link is broken.