mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-17 18:11:20 -08:00
移除1.75播放速度
This commit is contained in:
1 parent
8d91a5f515
commit
4ec49ec5f1
3 files changed
+9
-5
No files matched your search
@@ -4063,7 +4063,7 @@
|
||||
var i18n = art.i18n,
|
||||
player = art.player;
|
||||
return objectSpread({}, menuOption, {
|
||||
html: "\n ".concat(i18n.get('Play speed'), ":\n <span data-rate=\"0.5\">0.5</span>\n <span data-rate=\"0.75\">0.75</span>\n <span data-rate=\"1.0\" class=\"normal current\">").concat(i18n.get('Normal'), "</span>\n <span data-rate=\"1.25\">1.25</span>\n <span data-rate=\"1.5\">1.5</span>\n <span data-rate=\"1.75\">1.75</span>\n <span data-rate=\"2.0\">2.0</span>\n "),
|
||||
html: "\n ".concat(i18n.get('Play speed'), ":\n <span data-rate=\"0.5\">0.5</span>\n <span data-rate=\"0.75\">0.75</span>\n <span data-rate=\"1.0\" class=\"normal current\">").concat(i18n.get('Normal'), "</span>\n <span data-rate=\"1.25\">1.25</span>\n <span data-rate=\"1.5\">1.5</span>\n <span data-rate=\"2.0\">2.0</span>\n "),
|
||||
click: function click(event) {
|
||||
var target = event.target;
|
||||
var rate = target.dataset.rate;
|
||||
@@ -4078,7 +4078,10 @@
|
||||
var $current = Array.from($menu.querySelectorAll('span')).find(function (item) {
|
||||
return Number(item.dataset.rate) === rate;
|
||||
});
|
||||
inverseClass($current, 'current');
|
||||
|
||||
if ($current) {
|
||||
inverseClass($current, 'current');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user