From fdbe65292e19817fece2a0754b4f49df962e47b7 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sat, 1 Jan 2022 12:05:00 +0000 Subject: [PATCH] Update classic.html #482 . --- theme/classic.html | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/theme/classic.html b/theme/classic.html index 1bab642..44a99c0 100644 --- a/theme/classic.html +++ b/theme/classic.html @@ -187,9 +187,10 @@ -
+ - + + @@ -550,7 +551,7 @@ } - document.getElementById('video-a0').style.height = window.innerHeight + 'px'; + //document.getElementById('video-a0').style.height = window.innerHeight + 'px'; var fileurl = ""; var filename1 = fileurl.substr(0, fileurl.lastIndexOf('.')); var art = new Artplayer({ @@ -558,7 +559,8 @@ container: '.artplayerdiv', url: fileurl, title: fileurl, - autoplay: true, + autoHeight: true, + //autoplay: true, pip: true, autoSize: true, autoMini: true, @@ -673,6 +675,12 @@ state: '', },*/ }); + art.on('ready', (...agrs) => { + console.log(document.getElementById('video-a0').style.height); + //if (document.getElementById('video-a0').style.height == window.innerHeight+'px') document.getElementById('video-a0').style.height = (art.rect.height+3) + 'px'; + //console.log(document.getElementById('video-a0').style.height); + //art.play(); + }) pdfjsLib.GlobalWorkerOptions.workerSrc = '//cdn.bootcss.com/pdf.js/2.3.200/pdf.worker.min.js';