add:本地添加jQuery和swiper文件,防止cdn失效

This commit is contained in:
2025-07-10 17:38:17 +08:00
parent 84e41958c9
commit 13eec27ea9
8 changed files with 69 additions and 17 deletions

View File

@@ -15,9 +15,9 @@
<link rel="stylesheet" type="text/css" href="__CSS__/header.css" /> <link rel="stylesheet" type="text/css" href="__CSS__/header.css" />
<link rel="stylesheet" type="text/css" href="__CSS__/footer.css" /> <link rel="stylesheet" type="text/css" href="__CSS__/footer.css" />
{block name="style"}{/block} {block name="style"}{/block}
<link rel="stylesheet" href="https://unpkg.com/swiper@9/swiper-bundle.min.css"> <link rel="stylesheet" href="__JS__/swiper-bundle9.4.1.min.css" />
<script type="text/javascript" src='https://code.jquery.com/jquery-3.6.0.min.js'></script> <script src="__JS__/jquery-3.6.0.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/swiper@9.4.1/swiper-bundle.min.js"></script> <script type="text/javascript" src="__JS__/swiper-bundle9.4.1.min.js"></script>
<!-- Matomo --> <!-- Matomo -->
<script> <script>
var _paq = window._paq = window._paq || []; var _paq = window._paq = window._paq || [];

View File

@@ -24,23 +24,19 @@
// 直接输出对应的 HTML 标签 // 直接输出对应的 HTML 标签
if (isUCBrowser()) { if (isUCBrowser()) {
document.write(` document.write(`
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@8.4.7/swiper-bundle.min.css"> <link rel="stylesheet" href="__JS__/swiper-bundle8.4.7.min.css">
<script src="https://cdn.jsdelivr.net/npm/swiper@8.4.7/swiper-bundle.min.js"><\/script> <script type="text/javascript" src="__JS__/swiper-bundle8.4.7.min.js"><\/script>
`); `);
} else { } else {
document.write(` document.write(`
<link rel="stylesheet" href="https://unpkg.com/swiper@9.4.1/swiper-bundle.min.css"> <link rel="stylesheet" href="__JS__/swiper-bundle9.4.1.min.css">
<script src="https://unpkg.com/swiper@9.4.1/swiper-bundle.min.js"><\/script> <script type="text/javascript" src="__JS__/swiper-bundle9.4.1.min.js"><\/script>
`); `);
} }
</script> </script>
<!-- 你的 jQuery 和其他脚本 --> <!-- 你的 jQuery 和其他脚本 -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script src="__JS__/jquery-3.6.0.min.js"></script>
<!-- <link rel="stylesheet" href="https://unpkg.com/swiper@9/swiper-bundle.min.css">
<script type="text/javascript" src="https://unpkg.com/swiper@9.4.1/swiper-bundle.min.js"></script> -->
<script type="text/javascript" src='https://code.jquery.com/jquery-3.6.0.min.js'></script>
<script type="text/javascript" src="__JS__/before-after.min.js"></script> <script type="text/javascript" src="__JS__/before-after.min.js"></script>
<script type="text/javascript" src="__JS__/large.js"></script> <script type="text/javascript" src="__JS__/large.js"></script>
<script type="text/javascript"> <script type="text/javascript">

View File

@@ -13,7 +13,7 @@
<link rel="stylesheet" type="text/css" href="__CSS__/topic_nas_header.css" /> <link rel="stylesheet" type="text/css" href="__CSS__/topic_nas_header.css" />
<link rel="stylesheet" type="text/css" href="__CSS__/orico_footer.css" /> <link rel="stylesheet" type="text/css" href="__CSS__/orico_footer.css" />
{block name="style"}{/block} {block name="style"}{/block}
<script type="text/javascript" src='https://code.jquery.com/jquery-3.6.0.min.js'></script> <script src="__JS__/jquery-3.6.0.min.js"></script>
<script> <script>
// 增强型 UC 浏览器检测 // 增强型 UC 浏览器检测
function isUCBrowser() { function isUCBrowser() {
@@ -24,13 +24,13 @@
// 直接输出对应的 HTML 标签 // 直接输出对应的 HTML 标签
if (isUCBrowser()) { if (isUCBrowser()) {
document.write(` document.write(`
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@8.4.7/swiper-bundle.min.css"> <link rel="stylesheet" href="__JS__/swiper-bundle8.4.7.min.css">
<script src="https://cdn.jsdelivr.net/npm/swiper@8.4.7/swiper-bundle.min.js"><\/script> <script type="text/javascript" src="__JS__/swiper-bundle8.4.7.min.js"><\/script>
`); `);
} else { } else {
document.write(` document.write(`
<link rel="stylesheet" href="https://unpkg.com/swiper@9.4.1/swiper-bundle.min.css"> <link rel="stylesheet" href="__JS__/swiper-bundle9.4.1.min.css">
<script src="https://unpkg.com/swiper@9.4.1/swiper-bundle.min.js"><\/script> <script type="text/javascript" src="__JS__/swiper-bundle9.4.1.min.js"><\/script>
`); `);
} }
</script> </script>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long