Explorar el Código

hotfix 影片播放按鈕隱藏

VicCG.Lin hace 9 meses
padre
commit
49cdfb59a5
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      src/fe/mrna/js/main.js

+ 2
- 2
src/fe/mrna/js/main.js Ver fichero

@@ -445,9 +445,9 @@ main = function () {
445 445
 		const iframe = event.target.getIframe();
446 446
 		const patent = iframe.parentNode.parentNode;
447 447
 		if (event.data == YT.PlayerState.PLAYING) {
448
-			$(patent).find(".video__overlay").hide();
448
+			$(patent).find(".video__overlay").css('display', 'none');
449 449
 		} else {
450
-			$(patent).find(".video__overlay").show();
450
+			$(patent).find(".video__overlay").css('display', 'block');
451 451
 		}
452 452
 		// // console.log(event.data)
453 453
 		// if (event.data == -1) {