fix: lazy-load ReferenceError + localize Font Awesome
- app.js: remove window.Dashboard=... block that crashed the whole file before page scripts load (ReferenceError: Dashboard is not defined). Page objects are top-level const in global lexical scope; PAGE_OBJS map + indirect eval in loadScript onload now expose them to window for inline onclick / data-action lookups - index.html: Font Awesome 6.5.1 localized (css/fontawesome.min.css + 8 webfont files) - no more cdnjs CDN (Edge Tracking Prevention blocked it, CN access unstable)
This commit is contained in:
@@ -5,7 +5,8 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title id="site-title">MC举报系统</title>
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
|
||||
<!-- Font Awesome 本地化(避免 CDN 被浏览器跟踪防护拦截/国内访问慢) -->
|
||||
<link rel="stylesheet" href="css/fontawesome.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="top-bar">
|
||||
|
||||
Reference in New Issue
Block a user