fix cdn
This commit is contained in:
parent
1671006805
commit
1c9441e606
10
css/font.css
10
css/font.css
@ -7,18 +7,12 @@
|
||||
font-family: "UnidreamLED";
|
||||
src: url('../font/UnidreamLED.ttf') format('truetype');
|
||||
}
|
||||
/*
|
||||
@font-face {
|
||||
font-family: "PingFangSC";
|
||||
src: url('../font/PingFangSC.woff2') format('woff2');
|
||||
}
|
||||
*/
|
||||
|
||||
@font-face {
|
||||
font-family: "MiSans";
|
||||
src: url('https://cdn.jsdelivr.net/gh/imsyy/file@master/font/MiSans-Regular.woff') format('woff');
|
||||
src: url('https://s-bj-2127-file.oss.dogecdn.com/font/MiSans-Regular.woff') format('woff');
|
||||
}
|
||||
|
||||
|
||||
@font-face {
|
||||
font-family: "iconfont";
|
||||
/* Project id 2831425 */
|
||||
|
@ -17,7 +17,7 @@ p {
|
||||
transition: 0.3s;
|
||||
color: #efefef;
|
||||
user-select: none;
|
||||
font-family: 'MiSans';
|
||||
font-family: 'MiSans', sans-serif;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
@ -39,7 +39,8 @@ a:hover {
|
||||
}
|
||||
|
||||
#section {
|
||||
background-image: url(https://api.ixiaowai.cn/gqapi/gqapi.php), url(../img/background.jpg);
|
||||
/*background-image: url(https://api.ixiaowai.cn/gqapi/gqapi.php), url(../img/background.jpg);*/
|
||||
background-image: url(https://api.dujin.org/bing/1920.php), url(../img/background.jpg);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center center;
|
||||
}
|
||||
|
BIN
font/MiSans-Regular.woff
Normal file
BIN
font/MiSans-Regular.woff
Normal file
Binary file not shown.
Binary file not shown.
18
index.html
18
index.html
@ -14,10 +14,10 @@
|
||||
<meta name="author" content="無名">
|
||||
<title>無名の主页</title>
|
||||
<!-- jQuery -->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
||||
<script src="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery/3.5.1/jquery.min.js"></script>
|
||||
<!-- 引入样式 -->
|
||||
<link rel="stylesheet" type="text/css"
|
||||
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/css/bootstrap.min.css">
|
||||
href="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/bootstrap/5.1.0/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" type="text/css" href="./css/style.css">
|
||||
<link rel="stylesheet" type="text/css" href="./css/mobile.css">
|
||||
<link rel="stylesheet" type="text/css" href="./css/font.css">
|
||||
@ -28,13 +28,13 @@
|
||||
<link rel="icon" href="./favicon.ico">
|
||||
<link rel="apple-touch-icon" href="./img/apple-touch-icon.png">
|
||||
<!-- Izitoast -->
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/izitoast/1.4.0/css/iziToast.min.css">
|
||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/izitoast/1.4.0/js/iziToast.min.js">
|
||||
<link rel="stylesheet" href="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/izitoast/1.4.0/css/iziToast.min.css">
|
||||
<script type="text/javascript" src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/izitoast/1.4.0/js/iziToast.min.js">
|
||||
</script>
|
||||
<!-- Aplayer -->
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/aplayer/1.10.1/APlayer.min.css"
|
||||
<link rel="stylesheet" href="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/aplayer/1.10.1/APlayer.min.css"
|
||||
crossorigin="anonymous" referrerpolicy="no-referrer" />
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/aplayer/1.10.1/APlayer.min.js" crossorigin="anonymous"
|
||||
<script src="https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/aplayer/1.10.1/APlayer.min.js" crossorigin="anonymous"
|
||||
referrerpolicy="no-referrer"></script>
|
||||
<!-- IE Out -->
|
||||
<script>
|
||||
@ -382,9 +382,9 @@
|
||||
<script type="text/javascript" src="./js/main.js"></script>
|
||||
<script type="text/javascript" src="./js/time.js"></script>
|
||||
<script type="text/javascript" src="./js/cursor.js"></script>
|
||||
<script type="text/javascript" src="./js/lantern.js"></script>
|
||||
<script type="text/javascript" src="./js/music.js"></script>
|
||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/js/bootstrap.min.js">
|
||||
<script type="text/javascript" src="./js/lantern.js" defer></script>
|
||||
<!-- <script type="text/javascript" src="./js/music.js" defer></script> -->
|
||||
<script type="text/javascript" src="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/bootstrap/5.1.0/js/bootstrap.min.js">
|
||||
</script>
|
||||
</body>
|
||||
|
||||
|
12
js/main.js
12
js/main.js
@ -8,6 +8,18 @@ setTimeout(function () {
|
||||
$('#loading-text').html("字体及文件加载可能需要一定时间")
|
||||
}, 2000);
|
||||
|
||||
//延迟加载音乐播放器
|
||||
function downloadJSAtOnload() {
|
||||
var element = document.createElement("script");
|
||||
element.src = "./js/music.js";
|
||||
document.body.appendChild(element);
|
||||
}
|
||||
if (window.addEventListener)
|
||||
window.addEventListener("load", downloadJSAtOnload, false);
|
||||
else if (window.attachEvent)
|
||||
window.attachEvent("onload", downloadJSAtOnload);
|
||||
else window.onload = downloadJSAtOnload;
|
||||
|
||||
//弹窗样式
|
||||
iziToast.settings({
|
||||
timeout: 10000,
|
||||
|
@ -263,14 +263,6 @@ const ap = new APlayer({
|
||||
lrc: "https://s-sh-2127-music.oss.dogecdn.com/lrc%2F%E4%BA%94%E6%9C%88%E5%A4%A9-%E4%BD%A0%E4%B8%8D%E6%98%AF%E7%9C%9F%E6%AD%A3%E7%9A%84%E5%BF%AB%E4%B9%90.lrc",
|
||||
theme: "#0a0708"
|
||||
},
|
||||
{
|
||||
name: "派对动物",
|
||||
artist: "五月天",
|
||||
url: "https://drive.imsyy.top/api?path=%2F%E9%9F%B3%E4%B9%90%2F%E6%96%87%E4%BB%B6%E5%BC%95%E7%94%A8%2F%E4%BA%94%E6%9C%88%E5%A4%A9-%E6%B4%BE%E5%AF%B9%E5%8A%A8%E7%89%A9.mp3&raw=true",
|
||||
cover: "https://y.gtimg.cn/music/photo_new/T002R300x300M000002fRO0N4FftzY_1.jpg?max_age=2592000",
|
||||
lrc: "https://s-sh-2127-music.oss.dogecdn.com/lrc%2F%E4%BA%94%E6%9C%88%E5%A4%A9-%E6%B4%BE%E5%AF%B9%E5%8A%A8%E7%89%A9.lrc",
|
||||
theme: "#d0e8f2"
|
||||
},
|
||||
{
|
||||
name: "叹服",
|
||||
artist: "许嵩",
|
||||
|
Loading…
Reference in New Issue
Block a user