Browse Source

Change CDN from CDNJS to BootCDN

master
Menci 8 years ago
parent
commit
0bab5eff98
  1. 5
      views/footer.ejs
  2. 9
      views/header.ejs
  3. 2
      views/login.ejs
  4. 2
      views/sign_up.ejs

5
views/footer.ejs

@ -5,12 +5,11 @@
</div> </div>
</div> </div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.6/semantic.min.js"></script> <script src="//cdn.bootcss.com/semantic-ui/2.2.6/semantic.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.6/components/dropdown.min.js"></script>
<script type="text/javascript"> <script type="text/javascript">
$("#logout").click(function () { $("#logout").click(function () {
window.location.href = "/logout"; window.location.href = "/logout";
}); });
</script> </script>
</body> </body>
</html> </html>

9
views/header.ejs

@ -4,13 +4,12 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta content="IE=edge" http-equiv="X-UA-Compatible"> <meta content="IE=edge" http-equiv="X-UA-Compatible">
<title><%= title %> - <%= syzoj.config.title %></title> <title><%= title %> - <%= syzoj.config.title %></title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.6/semantic.min.css" /> <link href="//cdn.bootcss.com/semantic-ui/2.2.6/semantic.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.6/components/dropdown.min.css" /> <link href="//cdn.bootcss.com/highlight.js/9.7.0/styles/tomorrow.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/highlight.js/9.8.0/styles/tomorrow.min.css" /> <link href="//cdn.bootcss.com/KaTeX/0.6.0/katex.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.6.0/katex.min.css" />
<link href="https://cdn.moefont.com/fonts/css?family=Raleway:300" rel="stylesheet"> <link href="https://cdn.moefont.com/fonts/css?family=Raleway:300" rel="stylesheet">
<link href="/style.css" rel="stylesheet"> <link href="/style.css" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script src="//cdn.bootcss.com/jquery/3.1.1/jquery.min.js"></script>
</head> </head>
<body> <body>
<div class="ui fixed borderless menu"> <div class="ui fixed borderless menu">

2
views/login.ejs

@ -36,7 +36,7 @@
</div> </div>
</div> </div>
</div> </div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/blueimp-md5/2.5.0/js/md5.min.js"></script> <script src="//cdn.bootcss.com/blueimp-md5/2.5.0/js/md5.min.js"></script>
<script type="text/javascript"> <script type="text/javascript">
function key_login() { function key_login() {
if (event.keyCode == 13) { if (event.keyCode == 13) {

2
views/sign_up.ejs

@ -31,7 +31,7 @@
<a id="sign_up" class="ui button" onclick="submit()">注册</a> <a id="sign_up" class="ui button" onclick="submit()">注册</a>
</form> </form>
</div> </div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/blueimp-md5/2.5.0/js/md5.min.js"></script> <script src="//cdn.bootcss.com/blueimp-md5/2.5.0/js/md5.min.js"></script>
<script type="text/javascript"> <script type="text/javascript">
function show_error(error) { function show_error(error) {
$("#error_info").text(error); $("#error_info").text(error);

Loading…
Cancel
Save