feat: 升级版本至1.4.0并添加外部资源备用机制

- 版本号从1.3.5升级至1.4.0
- 创建外部资源备用加载系统,解决国内访问问题
- 添加Google Fonts本地备用字体文件
- 集成Geetest验证码本地备用版本
- 实现QRCode.js本地备用功能
- 创建智能资源加载器,自动切换到本地资源
- 修改所有外部资源引用,支持自动备用机制
- 添加资源配置文件,便于管理和维护
This commit is contained in:
2026-01-11 20:03:15 +08:00
parent 31d8fde308
commit a01f161bca
14 changed files with 414 additions and 10 deletions

View File

@@ -33,7 +33,19 @@
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet">
<script>
// 备用字体加载
(function() {
var link = document.createElement('link');
link.href = 'https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700';
link.rel = 'stylesheet';
link.onerror = function() {
console.warn('Google Fonts 加载失败,使用系统字体');
document.body.style.fontFamily = '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif';
};
document.head.appendChild(link);
})();
</script>
<link href="<?php bloginfo('template_url'); ?>/assets/vendor/nucleo/css/nucleo.css" rel="stylesheet">
<link href="<?php bloginfo('template_url'); ?>/assets/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link type="text/css" href="<?php bloginfo('template_url'); ?>/assets/css/argon.min.css" rel="stylesheet">