|
|
@ -82,19 +82,19 @@ eof; |
|
|
|
$imgExts = !empty(FSC::$app['config']['supportedImageExts']) ? FSC::$app['config']['supportedImageExts'] : array('jpg', 'jpeg', 'png', 'webp', 'gif'); |
|
|
|
$imgExts = !empty(FSC::$app['config']['supportedImageExts']) ? FSC::$app['config']['supportedImageExts'] : array('jpg', 'jpeg', 'png', 'webp', 'gif'); |
|
|
|
$category = !empty($viewData['scanResults'][$selectedId]) ? $viewData['scanResults'][$selectedId] : []; |
|
|
|
$category = !empty($viewData['scanResults'][$selectedId]) ? $viewData['scanResults'][$selectedId] : []; |
|
|
|
|
|
|
|
|
|
|
|
// //当前目录的描述介绍 |
|
|
|
//当前目录的描述介绍 |
|
|
|
// if (!empty($category['description'])) { |
|
|
|
if (!empty($category['description'])) { |
|
|
|
// echo <<<eof |
|
|
|
echo <<<eof |
|
|
|
// <p class="modal-body text_dark">{$category['description']}</p> |
|
|
|
<p class="modal-body text_dark">{$category['description']}</p> |
|
|
|
// eof; |
|
|
|
eof; |
|
|
|
// } |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// //当前目录的readme详细介绍 |
|
|
|
//当前目录的readme详细介绍 |
|
|
|
// if (!empty($viewData['htmlCateReadme'])) { |
|
|
|
if (!empty($viewData['htmlCateReadme'])) { |
|
|
|
// echo <<<eof |
|
|
|
echo <<<eof |
|
|
|
// <div class="modal-body text_dark markdown-body">{$viewData['htmlCateReadme']}</div> |
|
|
|
<div class="modal-body text_dark markdown-body">{$viewData['htmlCateReadme']}</div> |
|
|
|
// eof; |
|
|
|
eof; |
|
|
|
// } |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!empty($category['directories'])) { //两级目录支持 |
|
|
|
if (!empty($category['directories'])) { //两级目录支持 |
|
|
|
$index = 0; |
|
|
|
$index = 0; |
|
|
@ -132,7 +132,7 @@ eof; |
|
|
|
eof; |
|
|
|
eof; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
echo <<<eof |
|
|
|
echo <<<eof |
|
|
|
<img src="/img/beauty/lazy.svg" data-original="{$first_img['path']}" class="bor_radius im_img lazy" alt="{$first_img['filename']}"> |
|
|
|
<img src="{$first_img['path']}" class="bor_radius im_img" alt="{$first_img['filename']}"> |
|
|
|
eof; |
|
|
|
eof; |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -175,7 +175,7 @@ eof; |
|
|
|
echo <<<eof |
|
|
|
echo <<<eof |
|
|
|
<div class="im_item bor_radius col-xs-6 col-sm-4 col-md-3 col-lg-2"> |
|
|
|
<div class="im_item bor_radius col-xs-6 col-sm-4 col-md-3 col-lg-2"> |
|
|
|
<a href="javascript:;" class="bor_radius" data-fancybox="gallery" data-src="{$file['path']}" data-caption="图片{$title}"> |
|
|
|
<a href="javascript:;" class="bor_radius" data-fancybox="gallery" data-src="{$file['path']}" data-caption="图片{$title}"> |
|
|
|
<img src="/img/beauty/lazy.svg" data-original="{$file['path']}" class="bor_radius im_img lazy" alt="{$file['filename']}"> |
|
|
|
<img src="{$file['path']}" class="bor_radius im_img" alt="{$file['filename']}"> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
eof; |
|
|
|
eof; |
|
|
@ -187,59 +187,4 @@ eof; |
|
|
|
?> |
|
|
|
?> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<?php /*if (!empty($viewData['mp3File'])) { ?> |
|
|
|
|
|
|
|
<audio autoplay controls loop preload="auto" id="music" class="hide"> |
|
|
|
|
|
|
|
<source src="<?=$viewData['mp3File']['path']?>" type="audio/mpeg"> |
|
|
|
|
|
|
|
Your browser does not support the audio element. |
|
|
|
|
|
|
|
</audio> |
|
|
|
|
|
|
|
<div class="mbtns" onclick="playMusic()"> |
|
|
|
|
|
|
|
<div class="mbtn playing hide" id="btn_playing"> |
|
|
|
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-cassette-fill" viewBox="0 0 16 16"> |
|
|
|
|
|
|
|
<path d="M1.5 2A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h.191l1.862-3.724A.5.5 0 0 1 4 10h8a.5.5 0 0 1 .447.276L14.31 14h.191a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 14.5 2h-13ZM4 7a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm8 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2ZM6 6a1 1 0 0 1 1-1h2a1 1 0 0 1 0 2H7a1 1 0 0 1-1-1Z"/> |
|
|
|
|
|
|
|
<path d="m13.191 14-1.5-3H4.309l-1.5 3h10.382Z"/> |
|
|
|
|
|
|
|
</svg> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="mbtn paused" id="btn_paused"> |
|
|
|
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-cassette" viewBox="0 0 16 16"> |
|
|
|
|
|
|
|
<path d="M4 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm9-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM7 6a1 1 0 0 0 0 2h2a1 1 0 1 0 0-2H7Z"/> |
|
|
|
|
|
|
|
<path d="M1.5 2A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 14.5 2h-13ZM1 3.5a.5.5 0 0 1 .5-.5h13a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-.691l-1.362-2.724A.5.5 0 0 0 12 10H4a.5.5 0 0 0-.447.276L2.19 13H1.5a.5.5 0 0 1-.5-.5v-9ZM11.691 11l1 2H3.309l1-2h7.382Z"/> |
|
|
|
|
|
|
|
</svg> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<script> |
|
|
|
|
|
|
|
function playMusic() { |
|
|
|
|
|
|
|
var mp3 = document.getElementById('music'); |
|
|
|
|
|
|
|
var playingBtn = document.getElementById('btn_playing'), |
|
|
|
|
|
|
|
pausedBtn = document.getElementById('btn_paused'); |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
if (mp3.paused) { |
|
|
|
|
|
|
|
mp3.play(); |
|
|
|
|
|
|
|
mp3.volume = 0.5; |
|
|
|
|
|
|
|
playingBtn.className = playingBtn.className.replace(' hide', ''); |
|
|
|
|
|
|
|
pausedBtn.className = pausedBtn.className.replace(' hide', '') + ' hide'; |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
mp3.pause(); |
|
|
|
|
|
|
|
pausedBtn.className = pausedBtn.className.replace(' hide', ''); |
|
|
|
|
|
|
|
playingBtn.className = playingBtn.className.replace(' hide', '') + ' hide'; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}catch(e){} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function detectMusicAutoPlaying() { |
|
|
|
|
|
|
|
var mp3 = document.getElementById('music'); |
|
|
|
|
|
|
|
var playingBtn = document.getElementById('btn_playing'), |
|
|
|
|
|
|
|
pausedBtn = document.getElementById('btn_paused'); |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
if (!mp3.paused) { |
|
|
|
|
|
|
|
mp3.volume = 0.5; |
|
|
|
|
|
|
|
playingBtn.className = pausedBtn.className.replace(' hide', ''); |
|
|
|
|
|
|
|
pausedBtn.className = playingBtn.className.replace(' hide', '') + ' hide'; |
|
|
|
|
|
|
|
if (typeof(timer) != 'undefined') {clearInterval(timer);} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}catch(e){} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
var timer = setInterval(detectMusicAutoPlaying, 50); |
|
|
|
|
|
|
|
</script> |
|
|
|
|
|
|
|
<?php }*/ ?> |
|
|
|
|