From b387ea885c09453ceac57d0998b68653b12e7e34 Mon Sep 17 00:00:00 2001 From: anian Date: Tue, 10 Mar 2026 17:24:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=B5=8C=E5=85=A5=E5=BC=8F?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=9D=97=EF=BC=9B=E4=BC=98=E5=8C=96=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E4=B9=A6=E6=8E=A8=E9=80=81=E6=97=B6=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 7 +- embed-code/archive/sdgtmyjsy-ss.html | 219 ++++++++++ embed-code/page/address.html | 624 +++++++++++++++++++++++++++ embed-code/page/calendar.html | 332 ++++++++++++++ embed-code/page/chaqu-dev.html | 268 ++++++++++++ embed-code/page/content.html | 363 ++++++++++++++++ embed-code/page/navigator.html | 281 ++++++++++++ embed-code/page/news-2025.html | 213 +++++++++ embed-code/page/news-2026.html | 187 ++++++++ embed-code/page/notice.html | 277 ++++++++++++ embed-code/page/qiyu-dev.html | 285 ++++++++++++ embed-code/page/store.html | 315 ++++++++++++++ embed-code/sidebar/dao-hang.html | 18 + embed-code/sidebar/ding-yue.html | 16 + embed-code/sidebar/gong-gao.html | 15 + embed-code/sidebar/nong-li.html | 5 + embed-code/sidebar/shi-zhong.html | 3 + embed-code/sidebar/xian-lu.html | 8 + templates/assets/css/main.css | 8 +- templates/assets/js/anian.js | 50 +-- templates/assets/js/app.js | 581 ++++++++++++++----------- templates/modules/footer.html | 4 +- templates/modules/head.html | 4 +- theme.yaml | 4 +- 24 files changed, 3793 insertions(+), 294 deletions(-) create mode 100644 embed-code/archive/sdgtmyjsy-ss.html create mode 100644 embed-code/page/address.html create mode 100644 embed-code/page/calendar.html create mode 100644 embed-code/page/chaqu-dev.html create mode 100644 embed-code/page/content.html create mode 100644 embed-code/page/navigator.html create mode 100644 embed-code/page/news-2025.html create mode 100644 embed-code/page/news-2026.html create mode 100644 embed-code/page/notice.html create mode 100644 embed-code/page/qiyu-dev.html create mode 100644 embed-code/page/store.html create mode 100644 embed-code/sidebar/dao-hang.html create mode 100644 embed-code/sidebar/ding-yue.html create mode 100644 embed-code/sidebar/gong-gao.html create mode 100644 embed-code/sidebar/nong-li.html create mode 100644 embed-code/sidebar/shi-zhong.html create mode 100644 embed-code/sidebar/xian-lu.html diff --git a/README.md b/README.md index ad7fc67..f504b5e 100755 --- a/README.md +++ b/README.md @@ -2,11 +2,14 @@ > 基于原作者v1.2.5代码修改 +#### v1.2.5-2 +1. 添加侧边栏、页面、文章等HTML内容块 +2. 通知书推送时机改为RSS触发 + #### v1.2.5-1 1. 修改全局样式以适配日记簿 2. 片刻、图库支持视频并接入灯箱 3. 更新remixicon 4. 片刻增加标签展示 5. 适配多线路 -6. ··· - +6. ··· \ No newline at end of file diff --git a/embed-code/archive/sdgtmyjsy-ss.html b/embed-code/archive/sdgtmyjsy-ss.html new file mode 100644 index 0000000..a98a60a --- /dev/null +++ b/embed-code/archive/sdgtmyjsy-ss.html @@ -0,0 +1,219 @@ + +
+
+

水调歌头·明月几时有

+

宋·苏轼

+
+

丙辰中秋,欢饮达旦,大醉,作此篇,兼怀子由。

+

明月几时有?把酒问青天。不知天上宫阙,今夕是何年。我欲乘风归去,又恐琼楼玉宇,高处不胜寒。起舞弄清影,何似在人间。

+

转朱阁,低绮户,照无眠。不应有恨,何事长向别时圆?人有悲欢离合,月有阴晴圆缺,此事古难全。但愿人长久,千里共婵娟。

+
+
+ +
+

+ + 开篇叩问:跨越时空的宇宙之思​ +

+
+

“明月几时有?把酒问青天。” 开篇两句,便奠定了全词开阔的意境。苏轼以 “把酒问天” 的豪迈姿态,将个人置于广袤的宇宙背景之下,抛出了一个亘古不变的哲学命题 —— + 明月从何时开始存在?这种对宇宙起源的追问,并非单纯的好奇,而是蕴含着词人对人生有限与宇宙无限的深层思考。在中秋之夜,皎洁的明月高悬天际,它见证了无数人间的悲欢离合,而人类的生命却如沧海一粟般短暂。苏轼借这一问,打破了传统中秋词 + “伤春悲秋” 的局限,将个人的情感升华为对宇宙人生的宏观审视,尽显其 “大江东去” 般的豪放胸襟。​

+
+ +

+ + 中片想象:虚实交织的仙境与人间​ +

+
+

“不知天上宫阙,今夕是何年。我欲乘风归去,又恐琼楼玉宇,高处不胜寒。” 这几句词,苏轼展开了丰富的想象,将笔触从人间转向仙境。他想象着天上的宫殿此刻正处于怎样的时光,甚至产生了 “乘风归去” + 的念头,想要脱离尘世的烦恼,去往那清冷高洁的仙境。然而,“又恐琼楼玉宇,高处不胜寒” 一句,却又将他拉回现实。这里的 “高处不胜寒”,既是对仙境寒冷环境的想象,更是对官场高位、人生巅峰的隐喻。苏轼一生仕途坎坷,曾经历过 + “乌台诗案” 的生死考验,他深知 “高处” 的危险与孤独。这种对仙境的向往与犹豫,实则是他对现实人生的矛盾与思考 —— 既渴望摆脱世俗的束缚,又无法割舍人间的情感与责任。​​

+

“起舞弄清影,何似在人间。” + 在对仙境的想象与犹豫之后,苏轼最终回归现实。他在月光下起舞,与自己的影子嬉戏,突然领悟到:与其追求虚无缥缈的仙境,不如珍惜眼前的人间生活。这句词看似平淡,却蕴含着深刻的人生智慧。它体现了苏轼乐观旷达的人生态度 —— + 既然无法改变命运的坎坷,不如坦然接受现实,在平凡的生活中寻找乐趣与意义。这种从 “出世” 到 “入世” 的转变,让全词的情感更加贴近人心,也让苏轼的形象更加丰满立体。​​​

+
+ +

+ + 下片抒情:由己及人的豁达之悟​ +

+
+

“转朱阁,低绮户,照无眠。不应有恨,何事长向别时圆?” + 词的下片,苏轼将视角从宇宙仙境拉回人间烟火,聚焦于中秋之夜的离别之情。月光转过朱红的楼阁,低低地照进雕花的门窗,照亮了无法入眠的词人。他看着皎洁的明月,不禁心生疑问:明月本应是团圆的象征,为何总在人们离别之时显得格外圆满?这句 + “何事长向别时圆”,看似是对明月的埋怨,实则是词人对离别之苦的深情抒发。苏轼与弟弟苏辙手足情深,却因仕途奔波常年分离,中秋佳节本是团圆之日,他却只能独自对月思念,这种离别之痛在明月的映衬下更显浓烈。​​​

+

然而,苏轼并未沉溺于离别之苦,而是迅速调整心态,发出了 “人有悲欢离合,月有阴晴圆缺,此事古难全” + 的千古慨叹。他将人生的离别与月亮的圆缺联系起来,认识到无论是人生的悲欢离合,还是自然的阴晴圆缺,都是自古以来无法强求的事情。这种对人生无常的坦然接受,展现了苏轼超越常人的豁达与通透。他不再抱怨命运的不公,而是以一种平和的心态看待人生的起伏,这种人生态度不仅是对自己的慰藉,更是对世人的启示 + —— 人生本就充满遗憾,唯有学会接受遗憾,才能获得内心的平静。​​​​

+

“但愿人长久,千里共婵娟。” + 词的结尾,苏轼将个人的思念升华为对天下人的美好祝愿。他希望天下所有的亲人都能平安长久,即使相隔千里,也能共同欣赏这轮皎洁的明月。这句词没有丝毫的哀怨与悲戚,反而充满了温暖与希望。它跳出了个人情感的局限,展现了苏轼 + “先天下之忧而忧,后天下之乐而乐” 的博大胸怀。“千里共婵娟” 不仅成为了中秋佳节最经典的祝福语,更成为了中华民族共同的文化记忆,每当人们在中秋之夜仰望明月时,都会想起这句充满温情与诗意的祝愿。​​​​​

+
+ +

+ + 语言艺术:豪放与婉约的完美融合​ +

+
+

《水调歌头・明月几时有》在语言艺术上也达到了炉火纯青的境界。全词以 “明月” 为核心意象,贯穿始终,从 “问月” 到 “思月”,再到 “赞月”,层层递进,脉络清晰。语言风格上,既有 “把酒问青天”“我欲乘风归去” + 的豪放洒脱,又有 “转朱阁,低绮户,照无眠” 的细腻婉约,豪放与婉约在词中完美融合,形成了独特的艺术魅力。​​​​

+

同时,词中运用了大量的设问、反问与感叹,如 “明月几时有?”“何事长向别时圆?”“此事古难全!” + 等,这些句式不仅增强了词的节奏感与韵律感,更让词人的情感表达更加酣畅淋漓。此外,词中的比喻、拟人手法也运用得十分巧妙,如将明月比作 “婵娟”,赋予明月以人的情感与姿态,让明月更加生动形象,也让词的意境更加优美动人。​​​​​ +

+
+ +

+ + 传世价值:跨越千年的精神共鸣​ +

+
+

+ 《水调歌头・明月几时有》之所以能够流传千古,不仅在于其高超的艺术造诣,更在于它蕴含的深刻人生哲理与真挚情感。它所展现的苏轼乐观旷达的人生态度,成为了后世无数人面对困境时的精神寄托。在漫长的历史长河中,无论是仕途失意的文人墨客,还是饱受生活磨难的普通百姓,都能从这首词中获得慰藉与力量。​​​​​ +

+

如今,每当中秋佳节来临,人们依然会吟诵 + “但愿人长久,千里共婵娟”,这句词已经超越了时空的限制,成为了中华民族共同的文化符号。它提醒着我们,无论身处何方,无论经历怎样的坎坷,都要珍惜亲情、热爱生活,以豁达的心态面对人生的悲欢离合。​​​​​​

+
+ +

+ + 结语:明月寄情,哲思传世 +

+
+

+ 《水调歌头・明月几时有》是一首兼具文学性、哲理性与情感性的千古佳作。它以明月为媒,将个人的情感与宇宙的奥秘、人生的智慧融为一体,展现了苏轼博大的胸襟与高超的艺术才华。这首词不仅是中国文学史上的瑰宝,更是中华民族精神文化的重要组成部分,它将永远照亮人们的心灵,陪伴我们度过每一个中秋之夜。​​​​​ +

+
+
+
\ No newline at end of file diff --git a/embed-code/page/address.html b/embed-code/page/address.html new file mode 100644 index 0000000..8b0ae0a --- /dev/null +++ b/embed-code/page/address.html @@ -0,0 +1,624 @@ +
+ + +
+

+ 近期联系 + + 前往朋友圈 + +

+
+
+
+ +
+
+

黄诗扶

+

+ 又甜又脆的大冬枣!好听!好看!好吃!黄黄的伟大无需多言! +

+
+
+
+
+   +
+
+

双笙

+

+ 什么?你问我为什么喜欢包包?可能因为是“青春”吧? +

+
+
+
+
+ +
+
+

浅影阿

+

+ 谁能拒绝唱歌这么好看的老大呢?反正我是不行!下一位! +

+
+
+
+
+ +
+
+

平生不晚

+

+ 首先是戏腔好听,然后是妆造好看,最后就来到了这里 +

+
+
+
+
+ +
+

神秘嘉宾

+
+
+
+ +
+
+

蔡徐坤

+

+ 不要问为什么坤坤会在这里!因为!黑粉也是粉! +

+
+ +
+ + 点击或悬浮,解锁神秘嘉宾 +
+
+
+ +
+
+ +
+
+

敬请期待

+

+ 会是谁呢?我也不知道 +

+
+ +
+ + 点击或悬浮,解锁神秘嘉宾 +
+
+
+
+
+ +
+

全部名单

+
+
+
+ +
+
+

明月庄主

+

+ 眼睁睁的看着庄主结婚生娃,也算是从小看到大了 +

+
+
+
+
+ +
+
+

杨馥羽

+

+ 剧是没看的,人是要夸可爱的,抖音是第一条推的 +

+
+
+
+
+ +
+
+

木骨

+

+ 事情的起因要从那节最优化理论课说起... +

+
+
+
+
+ +
+
+

音频怪物

+

+ 你知道的,我很少粉同性的,但...老妖他不一样! +

+
+
+
+
+ + +
\ No newline at end of file diff --git a/embed-code/page/calendar.html b/embed-code/page/calendar.html new file mode 100644 index 0000000..7734de1 --- /dev/null +++ b/embed-code/page/calendar.html @@ -0,0 +1,332 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/embed-code/page/chaqu-dev.html b/embed-code/page/chaqu-dev.html new file mode 100644 index 0000000..8c99ada --- /dev/null +++ b/embed-code/page/chaqu-dev.html @@ -0,0 +1,268 @@ + + + +
+
+ +
+
图片
+ +
+
+
+
+
图片
+ +
+
+
+
+
图片
+ +
+
+
+
+
图片
+ +
+
+
+
+
图片
+ +
+
+
+ + +
+
视频
+ +
+
+
+
+
+
视频
+ +
+
+
+
+
+
视频
+ +
+
+
+
+
视频
+ +
+
+
+
+
视频
+ +
+
+
+
+
\ No newline at end of file diff --git a/embed-code/page/content.html b/embed-code/page/content.html new file mode 100644 index 0000000..14b1582 --- /dev/null +++ b/embed-code/page/content.html @@ -0,0 +1,363 @@ + + + + + \ No newline at end of file diff --git a/embed-code/page/navigator.html b/embed-code/page/navigator.html new file mode 100644 index 0000000..f338741 --- /dev/null +++ b/embed-code/page/navigator.html @@ -0,0 +1,281 @@ +
+ + + + + +
\ No newline at end of file diff --git a/embed-code/page/news-2025.html b/embed-code/page/news-2025.html new file mode 100644 index 0000000..49c0cf1 --- /dev/null +++ b/embed-code/page/news-2025.html @@ -0,0 +1,213 @@ +
+
+
+ 黄黄日历
+
+ 近日快讯
+
+ +
+
+
+
+
+
+
+ + +
+
+ + +
+ +
+
+ + + + +
+ + +
+
+ + \ No newline at end of file diff --git a/embed-code/page/news-2026.html b/embed-code/page/news-2026.html new file mode 100644 index 0000000..7f72a50 --- /dev/null +++ b/embed-code/page/news-2026.html @@ -0,0 +1,187 @@ +
+
+
+ 黄黄日历
+
+ 近日快讯
+
+ +
+
+
+
+
+
+
+ +
+ + +
+
+ + + + +
+ + +
+
+ + \ No newline at end of file diff --git a/embed-code/page/notice.html b/embed-code/page/notice.html new file mode 100644 index 0000000..a30e8ba --- /dev/null +++ b/embed-code/page/notice.html @@ -0,0 +1,277 @@ +
+
+
+

图库插件更新

+
+
加载中...
+
+
+ +
+

朋友圈插件更新

+
+
加载中...
+
+
+ +
+

主题更新

+
+
加载中...
+
+
+
+
+ + + + \ No newline at end of file diff --git a/embed-code/page/qiyu-dev.html b/embed-code/page/qiyu-dev.html new file mode 100644 index 0000000..c70239b --- /dev/null +++ b/embed-code/page/qiyu-dev.html @@ -0,0 +1,285 @@ + + +
+
+
+
+ +
+
+ + \ No newline at end of file diff --git a/embed-code/page/store.html b/embed-code/page/store.html new file mode 100644 index 0000000..19f58a0 --- /dev/null +++ b/embed-code/page/store.html @@ -0,0 +1,315 @@ + + +
+
+
+ +

Anian的储物柜

+ +
+
+ 🔍 + +
+ +
+
测试压缩包
+
示例报告
+
横幅图片
+
安装程序
+ +
没有匹配的结果
+
+
+ +
+ + +
+ +

⚠️ 错误过多将可能被封禁

+
+ +
+
+ + \ No newline at end of file diff --git a/embed-code/sidebar/dao-hang.html b/embed-code/sidebar/dao-hang.html new file mode 100644 index 0000000..b76447a --- /dev/null +++ b/embed-code/sidebar/dao-hang.html @@ -0,0 +1,18 @@ + \ No newline at end of file diff --git a/embed-code/sidebar/ding-yue.html b/embed-code/sidebar/ding-yue.html new file mode 100644 index 0000000..03259eb --- /dev/null +++ b/embed-code/sidebar/ding-yue.html @@ -0,0 +1,16 @@ +
+ + + + + + + +
\ No newline at end of file diff --git a/embed-code/sidebar/gong-gao.html b/embed-code/sidebar/gong-gao.html new file mode 100644 index 0000000..9bf9ad3 --- /dev/null +++ b/embed-code/sidebar/gong-gao.html @@ -0,0 +1,15 @@ + \ No newline at end of file diff --git a/embed-code/sidebar/nong-li.html b/embed-code/sidebar/nong-li.html new file mode 100644 index 0000000..90f065c --- /dev/null +++ b/embed-code/sidebar/nong-li.html @@ -0,0 +1,5 @@ +
+
+ 一日不见如隔三秋 +
+
\ No newline at end of file diff --git a/embed-code/sidebar/shi-zhong.html b/embed-code/sidebar/shi-zhong.html new file mode 100644 index 0000000..89135fa --- /dev/null +++ b/embed-code/sidebar/shi-zhong.html @@ -0,0 +1,3 @@ +
+ +
\ No newline at end of file diff --git a/embed-code/sidebar/xian-lu.html b/embed-code/sidebar/xian-lu.html new file mode 100644 index 0000000..769a958 --- /dev/null +++ b/embed-code/sidebar/xian-lu.html @@ -0,0 +1,8 @@ +
+
+ + + +
当前线路检测中
+
+
\ No newline at end of file diff --git a/templates/assets/css/main.css b/templates/assets/css/main.css index 4f041c7..fa511cf 100644 --- a/templates/assets/css/main.css +++ b/templates/assets/css/main.css @@ -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 { diff --git a/templates/assets/js/anian.js b/templates/assets/js/anian.js index c723b64..4302fde 100644 --- a/templates/assets/js/anian.js +++ b/templates/assets/js/anian.js @@ -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(); }) // 入口 diff --git a/templates/assets/js/app.js b/templates/assets/js/app.js index d91fe97..5d9eb21 100644 --- a/templates/assets/js/app.js +++ b/templates/assets/js/app.js @@ -85,10 +85,10 @@ $(document).on('click', '.simi a', function () { var visible = $(this).attr('visible'); if (visible == 'PUBLIC') { $(this).html('').attr('visible', 'PRIVATE'); - $(this).children().css({"background": "#ddd", "color": "#c6c6c6"}); + $(this).children().css({ "background": "#ddd", "color": "#c6c6c6" }); } else { $(this).html('').attr('visible', 'PUBLIC'); - $(this).children().css({"background": "#e3efe7", "color": "#66c187"}); + $(this).children().css({ "background": "#e3efe7", "color": "#66c187" }); } }); @@ -165,14 +165,14 @@ $(document).on('change', '#topic_img_up', function (e) { var src = data.metadata.annotations["storage.halo.run/uri"] || data.metadata.annotations["storage.halo.run/external-link"] || data.metadata.annotations["lskypro.plugin.halo.chenhe.me/image-link"]; - + // 2. 获取文件类型 (MIME Type) // Halo 的 API 通常在 data.spec.mediaType 中返回类型,或者根据后缀判断 - var mediaType = data.spec.mediaType || ""; + var mediaType = data.spec.mediaType || ""; var isVideo = mediaType.startsWith('video/') || /\.(mp4|webm|mov)$/i.test(src); - + // 3. 动态生成预览 HTML - var mediaInner = isVideo + var mediaInner = isVideo ? `` : ``; @@ -180,7 +180,7 @@ $(document).on('change', '#topic_img_up', function (e) { ${mediaInner} `; - + $(".img_show").prepend(media); num = $('.add_img_box .t_media_item').length; @@ -189,7 +189,7 @@ $(document).on('change', '#topic_img_up', function (e) { if (num < 10) $(".up_img_btn i").show(); $('input#topic_img_up').removeAttr('disabled'); }, - error: function() { + error: function () { cocoMessage.error("上传失败"); $(".img_load_text").remove(); $(".up_img_btn i").show(); @@ -237,7 +237,7 @@ $(document).on('click', '.up_from_media a', function () { type: "get", url: `/apis/${Theme.moments.attachments_api}/v1alpha1/attachments?group=&page=1&size=10&ungrouped=false&accepts=image/*&accepts=video/*`, contentType: "application/json", - beforeSend: function () {}, + beforeSend: function () { }, success: function (data) { var list = data.items; $.each(list, function (i, value) { @@ -245,7 +245,7 @@ $(document).on('click', '.up_from_media a', function () { var src = value.status.permalink; var mediaType = value.spec.mediaType || ''; var wf_media = ''; - + if (mediaType.startsWith('video/')) { wf_media = `
  • @@ -280,7 +280,7 @@ $(document).on('click', '.attch_nav a', function () { type: "get", url: `/apis/${Theme.moments.attachments_api}/v1alpha1/attachments?group=&page=${paged}&size=10&ungrouped=false&accepts=image/*&accepts=video/*`, contentType: "application/json", - beforeSend: function () {}, + beforeSend: function () { }, success: function (data) { $(".wp_get_media_list").empty(); var list = data.items; @@ -289,7 +289,7 @@ $(document).on('click', '.attch_nav a', function () { var src = value.status.permalink; var mediaType = value.spec.mediaType; var wf_media = ''; - + if (mediaType.startsWith('video/')) { wf_media = `
  • @@ -347,7 +347,7 @@ $(document).on('click', '.wp_get_media_list li', function () { //删除图片/视频(保留事件冒泡修复) $(document).on('click', '.topic-img-de', function (e) { e.stopPropagation(); - + var msg = "确认删除此媒体文件?"; if (confirm(msg)) { $(this).parent().remove(); @@ -361,7 +361,7 @@ $(document).on('click', '.topic-img-de', function (e) { }); // 样式修复:3列布局 + 正方形显示(核心) -$(function() { +$(function () { var style = `