This commit is contained in:
杜恒
2021-03-05 15:49:33 +08:00
parent 6445143f90
commit e740c4070c
16 changed files with 116 additions and 292 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1776,23 +1776,6 @@
}
}
}
span.block {
display: block;
}
&-hide {
background: repeating-linear-gradient(145deg, var(--classD), var(--classD) 15px, var(--background) 0, var(--background) 25px);
padding: 15px 0;
text-align: center;
position: relative;
user-select: none;
line-height: normal;
i {
position: relative;
font-style: normal;
cursor: pointer;
color: var(--theme);
}
}
&-player {
width: 100%;
height: 500px;
@@ -2147,22 +2130,6 @@
}
}
}
&-mp3 {
.plyr {
max-width: 450px;
margin: 0 auto;
}
.plyr--audio {
box-shadow: var(--box-shadow);
background: var(--classD);
border-radius: 26px;
padding: 0 5px;
--plyr-audio-control-color: var(--routine);
.plyr__controls {
background: var(--classD);
}
}
}
}
&__agree {
display: flex;

File diff suppressed because one or more lines are too long

View File

@@ -536,11 +536,6 @@ html {
}
}
}
&-mp3 {
.plyr {
max-width: 100%;
}
}
}
&__copyright {
.content {

View File

@@ -58,11 +58,6 @@ document.addEventListener('DOMContentLoaded', () => {
});
}
/* 激活复制功能 */
{
new ClipboardJS('.joe_detail__article-copy').on('success', () => Qmsg.success('复制成功!'));
}
/* 激活图片预览功能 */
{
$('.joe_detail__article img:not(img.owo_image)').each(function () {
@@ -198,22 +193,10 @@ document.addEventListener('DOMContentLoaded', () => {
$('.joe_detail__article-video .episodes .item').first().click();
}
}
/* mp3播放器 */
{
$('.joe_mp3__player').each((index, item) => new Plyr(item, { settings: [], iconUrl: 'https://cdn.jsdelivr.net/npm/plyr@3.6.4/dist/plyr.svg' }));
}
});
/* 写在load事件里为了解决图片未加载完成滚动距离获取会不准确的问题 */
window.addEventListener('load', function () {
/* 激活点击回复可见的回复按钮,页面滚动到评论区 */
{
$('.joe_detail__article-hide i').on('click', function () {
const top = $('.joe_comment').offset().top - $('.joe_header').height() - 15;
window.scrollTo({ top, behavior: 'smooth' });
});
}
/* 判断地址栏是否有锚点链接,有则跳转到对应位置 */
{
const scroll = new URLSearchParams(location.search).get('scroll');

File diff suppressed because one or more lines are too long

6
assets/js/joe.short.min.js vendored Normal file

File diff suppressed because one or more lines are too long