From e6dcc916569d05790c71740781069e891a7269be Mon Sep 17 00:00:00 2001 From: filesite Date: Tue, 22 Oct 2024 16:32:50 +0800 Subject: [PATCH] set slide width --- www/css/beauty.css | 1 + www/js/beauty.js | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/www/css/beauty.css b/www/css/beauty.css index 0bb6590..29f17d2 100644 --- a/www/css/beauty.css +++ b/www/css/beauty.css @@ -180,6 +180,7 @@ a:link{text-decoration:none} /*hide cursor when slideshow is idle*/ .has-slideshow.is-idle .fancybox__viewport, .has-slideshow.is-idle .fancybox__content{cursor:none} +.has-slideshow.is-idle .fancybox__toolbar{display:none} /* 主题切换 */ diff --git a/www/js/beauty.js b/www/js/beauty.js index a754dde..ff61aa2 100644 --- a/www/js/beauty.js +++ b/www/js/beauty.js @@ -155,9 +155,8 @@ if ($('#image_site').get(0)) { Toolbar: fancyboxToolbar, loop: true, smallBtn: false, - iframe: { - preload: false - }, + //height: $(window).height(), + width: $(window).width(), on: { startSlideshow: function(fancybox) { var autoplay = fancybox.plugins.Slideshow.ref;