新增嵌入式代码块;优化通知书推送时机
This commit is contained in:
@@ -5958,16 +5958,16 @@ a#listree-click.current, #listree-ol > li.current > a, #listree-ol > li ul li.cu
|
||||
}
|
||||
|
||||
/* 播放中状态:切换为 'contain' 以显示完整视频内容 (与 JS 配合) */
|
||||
.pix_video.is-playing {
|
||||
/* .pix_video.is-playing {
|
||||
object-fit: contain !important;
|
||||
}
|
||||
} */
|
||||
|
||||
/* 全屏状态:重置样式,以适应屏幕 */
|
||||
.pix_video:fullscreen {
|
||||
/* .pix_video:fullscreen {
|
||||
aspect-ratio: auto !important;
|
||||
object-fit: contain !important;
|
||||
border-radius: 0 !important;
|
||||
}
|
||||
} */
|
||||
|
||||
/* 片刻/朋友圈超高折叠 */
|
||||
.moment-collapse-container {
|
||||
|
||||
@@ -1,29 +1,29 @@
|
||||
// 接管手机端底部音乐按钮
|
||||
function modify_m_bottom_music_button_link() {
|
||||
const music = document.querySelector('a[href*="#m_bottom_music_button"]');
|
||||
if (!music) return;
|
||||
music.addEventListener('click', function(event) {
|
||||
event.preventDefault();
|
||||
mu_box_show();
|
||||
});
|
||||
}
|
||||
|
||||
// 视频默认正方形,播放恢复比例
|
||||
function modify_moment_video_size() {
|
||||
const videos = document.querySelectorAll('.pix_video');
|
||||
videos.forEach(video => {
|
||||
if (!video.hasAttribute('data-video-events-bound')) {
|
||||
video.addEventListener('play', () => {
|
||||
video.classList.add('is-playing');
|
||||
});
|
||||
video.addEventListener('ended', () => {
|
||||
video.classList.remove('is-playing');
|
||||
});
|
||||
video.setAttribute('data-video-events-bound', 'true');
|
||||
}
|
||||
const music = document.querySelector('a[href*="#m_bottom_music_button"]');
|
||||
if (!music) return;
|
||||
music.addEventListener('click', function (event) {
|
||||
event.preventDefault();
|
||||
mu_box_show();
|
||||
});
|
||||
}
|
||||
|
||||
// 视频默认正方形,播放恢复比例(接入灯箱后已无用)
|
||||
// function modify_moment_video_size() {
|
||||
// const videos = document.querySelectorAll('.pix_video');
|
||||
// videos.forEach(video => {
|
||||
// if (!video.hasAttribute('data-video-events-bound')) {
|
||||
// video.addEventListener('play', () => {
|
||||
// video.classList.add('is-playing');
|
||||
// });
|
||||
// video.addEventListener('ended', () => {
|
||||
// video.classList.remove('is-playing');
|
||||
// });
|
||||
// video.setAttribute('data-video-events-bound', 'true');
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -46,18 +46,18 @@ function modify_moment_video_size() {
|
||||
|
||||
// 集合:PJAX(初始化执行+PJAX执行)
|
||||
function init_anian_pjax() {
|
||||
modify_moment_video_size();
|
||||
// modify_moment_video_size();
|
||||
}
|
||||
|
||||
// 集合:初始化(仅初始化执行一次)
|
||||
function init_anian_inport() {
|
||||
init_anian_pjax();
|
||||
modify_m_bottom_music_button_link();
|
||||
init_anian_pjax();
|
||||
modify_m_bottom_music_button_link();
|
||||
}
|
||||
|
||||
// PJAX监听
|
||||
document.addEventListener('pjax:complete', function () {
|
||||
init_anian_pjax();
|
||||
init_anian_pjax();
|
||||
})
|
||||
|
||||
// 入口
|
||||
|
||||
+324
-257
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,5 @@
|
||||
<th:block th:fragment="footer">
|
||||
<th:block th:with="customJsVersion='1.2.5-1'">
|
||||
<th:block th:with="customJsVersion='1.2.5-2'">
|
||||
|
||||
<div class="center-img-container" id="centerImgContainer">
|
||||
<img class="center-img" id="targetImg">
|
||||
@@ -38,4 +38,4 @@
|
||||
|
||||
<th:block th:if="${not #strings.isEmpty(theme.config.custom.footer_html)}"
|
||||
th:utext="${theme.config.custom.footer_html}"> </th:block>
|
||||
</th:block>
|
||||
</th:block>
|
||||
@@ -1,4 +1,4 @@
|
||||
<th:block th:fragment="head" th:with="customJsVersion=${'1.2.5-1'}">
|
||||
<th:block th:fragment="head" th:with="customJsVersion=${'1.2.5-2'}">
|
||||
<th:block th:replace="~{'modules/variables/msg'}" />
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
|
||||
@@ -97,4 +97,4 @@
|
||||
if (darkmode()) document.documentElement.classList.add('dark');
|
||||
})(window)
|
||||
</script>
|
||||
</th:block>
|
||||
</th:block>
|
||||
Reference in New Issue
Block a user