Browse Source

优化网络加载

fudan
欧醚 4 years ago
parent
commit
0310b86926
Signed by: OmmyZhang GPG Key ID: 757D312E7C9D13F7
2 changed files with 11 additions and 7 deletions
  1. BIN
     
  2. +11
    -7
      templates/list.html

BIN
View File


+ 11
- 7
templates/list.html View File

@ -10,10 +10,6 @@
<meta property="og:title" content="华清特奖报名" /> <meta property="og:title" content="华清特奖报名" />
<meta property="og:description" content="华清大学特普通奖学金" /> <meta property="og:description" content="华清大学特普通奖学金" />
<link href="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet"> <link href="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery-timeago/1.6.7/jquery.timeago.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery-timeago/1.6.7/locales/jquery.timeago.zh-CN.js"></script>
<title>华清特奖报名</title> <title>华清特奖报名</title>
<style> <style>
body, body,
@ -152,7 +148,7 @@
</style> </style>
</head> </head>
<body style="background: #fff url('/img/ord/bg.jpg') repeat-x fixed center top / 1000px">
<body style="background: #fff url('/img/ord/bg.jpg') repeat-x fixed center top / 650px">
<div class="container" style="overflow: hidden;min-height: 100vh"> <div class="container" style="overflow: hidden;min-height: 100vh">
<div style='padding:15px'> <div style='padding:15px'>
<img src="/img/ord/logo.png" width="200px" /> <img src="/img/ord/logo.png" width="200px" />
@ -299,9 +295,12 @@
</div> </div>
</body> </body>
<script>
$('.timeago').timeago();
<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery-timeago/1.6.7/jquery.timeago.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery-timeago/1.6.7/locales/jquery.timeago.zh-CN.js"></script>
<script>
function like(toot) { function like(toot) {
if ($(`#like-${toot} svg`).hasClass("liked")) { if ($(`#like-${toot} svg`).hasClass("liked")) {
alert('赞都赞了,别撤回嘛'); alert('赞都赞了,别撤回嘛');
@ -320,6 +319,10 @@
} }
}); });
} }
$(document).ready(function(){
$('.timeago').timeago();
$('.collapse').on('show.bs.collapse', (e) => { $('.collapse').on('show.bs.collapse', (e) => {
let self = e.target; let self = e.target;
let toot = self.id.split('-')[1]; let toot = self.id.split('-')[1];
@ -349,6 +352,7 @@
} }
}); });
}); });
});
</script> </script>
</html> </html>

Loading…
Cancel
Save