Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tip: Use the CDN for China in the index.html file #37

Open
CongAn opened this issue May 5, 2024 · 2 comments
Open

Tip: Use the CDN for China in the index.html file #37

CongAn opened this issue May 5, 2024 · 2 comments

Comments

@CongAn
Copy link

CongAn commented May 5, 2024

如果你在中国,启动时候遇到白屏,请更换 index.html 文件中的 CDN url。

<html>
<head>
  <title>Wake-on-lan Web</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <link rel="stylesheet" href="https://registry.npmmirror.com/bootstrap/4.0/files/dist/css/bootstrap.min.css">
  <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/font-awesome/6.5.2/css/all.css">
  <link type="text/css" rel="stylesheet" href="https://registry.npmmirror.com/jsgrid/1.5/files/dist/jsgrid.min.css" />
  <link type="text/css" rel="stylesheet" href="https://registry.npmmirror.com/jsgrid/1.5/files/dist/jsgrid-theme.min.css" />
  <link rel="stylesheet" href="static/wolweb.css">
</head>
<body>
  <script src="https://registry.npmmirror.com/jquery/3.2/files/dist/jquery.min.js"></script>
  <script src="https://registry.npmmirror.com/tether/1.4/files/dist/js/tether.min.js"></script>
  <script src="https://registry.npmmirror.com/bootstrap/4.0/files/dist/js/bootstrap.min.js"></script>
  <script type="text/javascript" src="https://registry.npmmirror.com/jsgrid/1.5/files/dist/jsgrid.min.js"></script>
  <script src="static/wolweb.js"></script>
</body>
</html>

完整的html文件:
index.html.zip

@malimaliao
Copy link

为什么不尝试本地化css&js,这是更好的办法

@ellisdickinson46
Copy link
Collaborator

ellisdickinson46 commented Aug 5, 2024

@CongAn Is this issue still present now? The CSS was localised starting at commit 567a783

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants