mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-17 18:11:20 -08:00
update info.js
This commit is contained in:
1 parent
e4500ef49c
commit
495526b1ff
3 files changed
+18
-16
No files matched your search
@@ -3619,21 +3619,23 @@
|
||||
_this2.show = false;
|
||||
});
|
||||
var timer = null;
|
||||
var types = queryAll('[data-video]', $infoPanel) || [];
|
||||
var $types = queryAll('[data-video]', $infoPanel) || [];
|
||||
this.art.on('destroy', function () {
|
||||
clearTimeout(timer);
|
||||
});
|
||||
|
||||
function loop() {
|
||||
for (var index = 0; index < types.length; index++) {
|
||||
var item = types[index];
|
||||
for (var index = 0; index < $types.length; index++) {
|
||||
var item = $types[index];
|
||||
var value = $video[item.dataset.video];
|
||||
item.innerText = typeof value === 'number' ? value.toFixed(2) : value;
|
||||
var innerText = typeof value === 'number' ? value.toFixed(2) : value;
|
||||
|
||||
if (item.innerText !== innerText) {
|
||||
item.innerText = innerText;
|
||||
}
|
||||
}
|
||||
|
||||
timer = setTimeout(function () {
|
||||
loop();
|
||||
}, 1000);
|
||||
timer = setTimeout(loop, 1000);
|
||||
}
|
||||
|
||||
loop();
|
||||
|
||||
Reference in new issue
Block a user