add bj
@@ -5,7 +5,7 @@
|
|||||||
希望大家喜欢 ❤️
|
希望大家喜欢 ❤️
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
>和风天气 API 每日限量1000次,需 [自行申请](https://dev.qweather.com/),或更换其他 API
|
>和风天气 API 每日限量1000次,需 [自行申请](https://dev.qweather.com/),或更换其他 API
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
>由于 CDN 缓存原因,查看最新效果可能需要 `Ctrl` + `F5` 强制刷新浏览器缓存
|
>由于 CDN 缓存原因,查看最新效果可能需要 `Ctrl` + `F5` 强制刷新浏览器缓存
|
||||||
|
|
||||||
### 👀 预览
|
### 👀 预览
|
||||||
- [LQBBYの主页](https://zy.lqbby.com:1443)
|
- [Honesty的主页](https://www.hehouhui.cn)
|
||||||
|
|
||||||
### 🌈 功能
|
### 🌈 功能
|
||||||
|
|
||||||
|
|||||||
BIN
images/bj/1.jpg
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
BIN
images/bj/2.jpg
Normal file
|
After Width: | Height: | Size: 1.0 MiB |
BIN
images/bj/3.jpg
Normal file
|
After Width: | Height: | Size: 2.9 MiB |
BIN
images/bj/4.jpg
Normal file
|
After Width: | Height: | Size: 3.1 MiB |
BIN
images/bj/5.jpg
Normal file
|
After Width: | Height: | Size: 2.4 MiB |
BIN
images/bj/6.jpg
Normal file
|
After Width: | Height: | Size: 2.2 MiB |
BIN
images/bj/7.jpg
Normal file
|
After Width: | Height: | Size: 1.5 MiB |
BIN
images/kj.webp
|
Before Width: | Height: | Size: 54 KiB |
BIN
images/my-wechat.jpeg
Normal file
|
After Width: | Height: | Size: 106 KiB |
402
index.html
@@ -5,232 +5,234 @@
|
|||||||
<!-- 基础信息 -->
|
<!-- 基础信息 -->
|
||||||
<html lang="zh-cmn-Hans">
|
<html lang="zh-cmn-Hans">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="renderer" content="webkit" />
|
<meta name="renderer" content="webkit"/>
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
|
||||||
<meta name="force-rendering" content="webkit" />
|
<meta name="force-rendering" content="webkit"/>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<meta name="description" content="LQBBYの主页">
|
<meta name="description" content="Honesty的主页,HeHouHui的主页,HeHui的主页,明厚的主页">
|
||||||
<meta name="keywords" content="LQBBY,个人主页">
|
<meta name="keywords" content="Honesty,HeHouHui,HeHui,明厚">
|
||||||
<meta name="author" content="LQBBY">
|
<meta name="author" content="Honesty">
|
||||||
<title>LQBBYの主页</title>
|
<title>Honesty的主页</title>
|
||||||
<link rel="stylesheet" type="text/css" href="./css/style.css">
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/listener-He/Home/css/style.css">
|
||||||
<link rel="stylesheet" type="text/css" href="./css/iconfont.css">
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/listener-He/Home/css/iconfont.css">
|
||||||
<link rel="apple-touch-icon" href="./images/apple-touch-icon.png">
|
<link rel="apple-touch-icon" href="https://cdn.jsdelivr.net/gh/listener-He/Home/images/apple-touch-icon.png">
|
||||||
<link rel="icon" href="./favicon.ico">
|
<link rel="icon" href="https://cdn.jsdelivr.net/gh/listener-He/Home/favicon.ico">
|
||||||
<link rel="stylesheet" href="./js/bj.js">
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/listener-He/Home/js/bj.js">
|
||||||
<!--引入SweetAlert
|
<!--引入SweetAlert
|
||||||
<script src="https://fastly.jsdelivr.net/npm/sweetalert@2.1.2/dist/sweetalert.min.js"></script>-->
|
<script src="https://fastly.jsdelivr.net/npm/sweetalert@2.1.2/dist/sweetalert.min.js"></script>-->
|
||||||
<script src="https://fastly.jsdelivr.net/npm/sweetalert2@10.15.5/dist/sweetalert2.all.min.js"></script>
|
<script src="https://fastly.jsdelivr.net/npm/sweetalert2@10.15.5/dist/sweetalert2.all.min.js"></script>
|
||||||
<!--引入izitoast-->
|
<!--引入izitoast-->
|
||||||
<link rel="stylesheet" href="https://fastly.jsdelivr.net/npm/izitoast@1.4.0/dist/css/iziToast.min.css">
|
<link rel="stylesheet" href="https://fastly.jsdelivr.net/npm/izitoast@1.4.0/dist/css/iziToast.min.css">
|
||||||
<script type="text/javascript"
|
<script type="text/javascript"
|
||||||
src="https://fastly.jsdelivr.net/npm/izitoast@1.4.0/dist/js/iziToast.min.js"></script>
|
src="https://fastly.jsdelivr.net/npm/izitoast@1.4.0/dist/js/iziToast.min.js"></script>
|
||||||
<!--引入fontawesome-->
|
<!--引入fontawesome-->
|
||||||
<link rel="stylesheet" href="https://fastly.jsdelivr.net/gh/volantis-x/cdn-fontawesome-pro@master/css/all.min.css"
|
<link rel="stylesheet" href="https://fastly.jsdelivr.net/gh/volantis-x/cdn-fontawesome-pro@master/css/all.min.css"
|
||||||
media="all">
|
media="all">
|
||||||
<!--科技炫酷按钮-->
|
<!--科技炫酷按钮-->
|
||||||
<link rel="stylesheet" type="text/css" href="./css/sey.css">
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/listener-He/Home/css/sey.css">
|
||||||
<!--LQ网站监控-->
|
|
||||||
<script async defer data-website-id="1e581f81-4a95-4be4-8449-c74742cf2475"
|
|
||||||
src="https://wz.lqbby.com/umami.js"></script>
|
|
||||||
<!--IE淘汰计划-->
|
<!--IE淘汰计划-->
|
||||||
<script>if (/*@cc_on!@*/false || (!!window.MSInputMethodContext && !!document.documentMode)) window.location.href = "https://imsyy.top/upgrade-your-browser/index.html?referrer=" + encodeURIComponent(window.location.href);</script>
|
<script>
|
||||||
|
if (/*@cc_on!@*/false || (!!window.MSInputMethodContext && !!document.documentMode)) window.location.href = "https://imsyy.top/upgrade-your-browser/index.html?referrer=" + encodeURIComponent(window.location.href);
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body oncontextmenu=self.event.returnValue=false onselectstart="return false">
|
<body oncontextmenu=self.event.returnValue=false onselectstart="return false">
|
||||||
<!--<span class="mobile btn-mobile-menu">
|
<!--<span class="mobile btn-mobile-menu">
|
||||||
<i class="social iconfont icon-list btn-mobile-menu__icon"></i>
|
<i class="social iconfont icon-list btn-mobile-menu__icon"></i>
|
||||||
<i class="social iconfont icon-ngleup btn-mobile-close__icon hidden"></i>
|
<i class="social iconfont icon-ngleup btn-mobile-close__icon hidden"></i>
|
||||||
</span>-->
|
</span>-->
|
||||||
<header id="panel" class="panel-cover"
|
<header id="panel" class="panel-cover"
|
||||||
style="background: url(./images/kj.webp) center center / cover no-repeat rgb(102, 102, 102);">
|
style="background: url(https://cdn.jsdelivr.net/gh/listener-He/Home/images/bj/1.jpg) center center / cover no-repeat rgb(102, 102, 102);">
|
||||||
<!--星空背景-->
|
<!--星空背景-->
|
||||||
<div id="stars"></div>
|
<div id="stars"></div>
|
||||||
<div id="stars2"></div>
|
<div id="stars2"></div>
|
||||||
<div id="stars3"></div>
|
<div id="stars3"></div>
|
||||||
<!--天气-->
|
<!--天气-->
|
||||||
<div id="he-plugin-simple"></div>
|
<div id="he-plugin-simple"></div>
|
||||||
<script>
|
<script>
|
||||||
WIDGET = {
|
WIDGET = {
|
||||||
"CONFIG": {
|
"CONFIG": {
|
||||||
"modules": "01234",
|
"modules": "01234",
|
||||||
"background": "5",
|
"background": "5",
|
||||||
"tmpColor": "FFFFFF",
|
"tmpColor": "FFFFFF",
|
||||||
"tmpSize": "16",
|
"tmpSize": "16",
|
||||||
"cityColor": "FFFFFF",
|
"cityColor": "FFFFFF",
|
||||||
"citySize": "16",
|
"citySize": "16",
|
||||||
"aqiColor": "FFFFFF",
|
"aqiColor": "FFFFFF",
|
||||||
"aqiSize": "16",
|
"aqiSize": "16",
|
||||||
"weatherIconSize": "24",
|
"weatherIconSize": "24",
|
||||||
"alertIconSize": "18",
|
"alertIconSize": "18",
|
||||||
"padding": "10px 10px 10px 10px",
|
"padding": "10px 10px 10px 10px",
|
||||||
"shadow": "1",
|
"shadow": "1",
|
||||||
"language": "auto",
|
"language": "auto",
|
||||||
"borderRadius": "10",
|
"borderRadius": "10",
|
||||||
"fixed": "false",
|
"fixed": "false",
|
||||||
"vertical": "top",
|
"vertical": "top",
|
||||||
"horizontal": "left",
|
"horizontal": "left",
|
||||||
"key": "自己注册获取key"
|
"key": "自己注册获取key"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
}
|
||||||
<script src="https://widget.qweather.net/simple/static/js/he-simple-common.js?v=2.0"></script>
|
</script>
|
||||||
|
<script src="https://widget.qweather.net/simple/static/js/he-simple-common.js?v=2.0"></script>
|
||||||
|
|
||||||
<div class="panel-main">
|
<div class="panel-main">
|
||||||
<div class="panel-main__inner panel-inverted">
|
<div class="panel-main__inner panel-inverted">
|
||||||
<div class="panel-main__content">
|
<div class="panel-main__content">
|
||||||
<div class="ih-item circle effect right_to_left">
|
<div class="ih-item circle effect right_to_left">
|
||||||
<a class="blog-button">
|
<a class="blog-button">
|
||||||
<div class="img"> <img src="https://q1.qlogo.cn/g?b=qq&nk=1151581339&s=100" alt="img"
|
<div class="img"><img src="https://q1.qlogo.cn/g?b=qq&nk=1151581339&s=100" alt="img"
|
||||||
class="js-avatar iUp profilepic header-logo">
|
class="js-avatar iUp profilepic header-logo">
|
||||||
|
</div>
|
||||||
|
<div class="info iUp">
|
||||||
|
<div class="info-back">
|
||||||
|
<img alt="img" src="https://cdn.jsdelivr.net/gh/listener-He/Home/images/kl.gif"
|
||||||
|
class="js-avatar profilepic">
|
||||||
</div>
|
</div>
|
||||||
<div class="info iUp">
|
</div>
|
||||||
<div class="info-back">
|
</a>
|
||||||
<img alt="img" src="./images/kl.gif" class="js-avatar profilepic">
|
</div>
|
||||||
</div>
|
<h1 class="panel-cover__title panel-title iUp">
|
||||||
</div>
|
<br/>Honesty
|
||||||
</a>
|
</h1>
|
||||||
</div>
|
<p class="panel-cover__subtitle panel-subtitle iUp">be your true self</p>
|
||||||
<h1 class="panel-cover__title panel-title iUp">
|
<canvas class="navigation-wrapper iUp" id="canvas" style="width:50%;padding-top:0px;" width="920"
|
||||||
<br />LQBBY
|
|
||||||
</h1>
|
|
||||||
<p class="panel-cover__subtitle panel-subtitle iUp">be your true self</p>
|
|
||||||
<canvas class="navigation-wrapper iUp" id="canvas" style="width:50%;padding-top:0px;" width="920"
|
|
||||||
height="350"></canvas>
|
height="350"></canvas>
|
||||||
<script src="./js/clock.js"></script>
|
<script src="https://cdn.jsdelivr.net/gh/listener-He/Home/js/clock.js"></script>
|
||||||
<hr class="iUp" />
|
<hr class="iUp"/>
|
||||||
<!--一言无法显示时的文字-->
|
<!--一言无法显示时的文字-->
|
||||||
<p id="description" class="panel-cover__description iUp">每一个人都应该明确自己的方向和位置
|
<p id="description" class="panel-cover__description iUp">人生天地之间,若白驹之过隙,忽然而已。
|
||||||
<br />
|
<br/>
|
||||||
<strong>-「LQBBY」</strong>
|
<strong>-「Honesty」</strong>
|
||||||
</p>
|
</p>
|
||||||
<div class="navigation-wrapper iUp">
|
<div class="navigation-wrapper iUp">
|
||||||
<div>
|
<div>
|
||||||
<nav class="cover-navigation cover-navigation--primary">
|
<nav class="cover-navigation cover-navigation--primary">
|
||||||
<ul class="navigation">
|
<ul class="navigation">
|
||||||
<li class="navigation__item">
|
<li class="navigation__item">
|
||||||
<a href="https://www.lqbby.com/"
|
<a href="https://blog.hehouhui.cn/"
|
||||||
style="--clr:#1e9bff"><span>博客</span><i></i></a>
|
style="--clr:#1e9bff"><span>博客</span><i></i></a>
|
||||||
</li>
|
</li>
|
||||||
<li class="navigation__item">
|
<li class="navigation__item">
|
||||||
<a href="https://al.lqbby.com:1443/"
|
<a href="https://alist.hehouhui.cn/"
|
||||||
style="--clr:#f85d5d"><span>网盘</span><i></i></a>
|
style="--clr:#f85d5d"><span>网盘</span><i></i></a>
|
||||||
</li>
|
</li>
|
||||||
<li class="navigation__item">
|
<li class="navigation__item">
|
||||||
<a href="https://llq.lqbby.com/"
|
<a href="https://nav.hehouhui.cn/"
|
||||||
style="--clr:#ff1867"><span>导航</span><i></i></a>
|
style="--clr:#ff1867"><span>导航</span><i></i></a>
|
||||||
</li>
|
</li>
|
||||||
<li class="navigation__item">
|
<li class="navigation__item">
|
||||||
<a href="https://qd.lqbby.com/" style="--clr:#ebe417"><span>签到</span><i></i></a>
|
<a href="https://bz.lqbby.com:1443/"
|
||||||
</li>
|
style="--clr:#eb2feb"><span>壁纸</span><i></i></a>
|
||||||
<li class="navigation__item">
|
</li>
|
||||||
<a href="https://bz.lqbby.com:1443/"
|
</ul>
|
||||||
style="--clr:#eb2feb"><span>壁纸</span><i></i></a>
|
</nav>
|
||||||
</li>
|
|
||||||
<li class="navigation__item">
|
|
||||||
<a href="https://api.lqbby.com:1443"
|
|
||||||
style="--clr:#28a745"><span>青龙api</span><i></i></a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="iUp">
|
<div class="iUp">
|
||||||
<nav class="cover-navigation navigation--social">
|
<nav class="cover-navigation navigation--social">
|
||||||
<ul class="navigation">
|
<ul class="navigation">
|
||||||
<li class="navigation__item">
|
<li class="navigation__item">
|
||||||
<a href="https://github.com/lqbby2/" title="Github" target="_blank">
|
<a href="https://github.com/listener-He" title="Github" target="_blank">
|
||||||
<j class="iconfont icon-github"></j>
|
<j class="iconfont icon-github"></j>
|
||||||
<span class="label">Github</span>
|
<span class="label">Github</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="navigation__item">
|
<li class="navigation__item">
|
||||||
<a href="https://t.me/lqbby" title="Telegram" target="_blank">
|
<a href="https://www.linkedin.com/in/honesty861024" title="Linkedin" target="_blank">
|
||||||
<j class="fab fa-telegram-plane"></j>
|
<j class="fab fa-telegram-plane"></j>
|
||||||
<span class="label">Telegram</span>
|
<span class="label">Linkedin</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="navigation__item">
|
<li class="navigation__item">
|
||||||
<a href="https://www.lqbby.com/" title="Twitter" target="_blank">
|
<a href="https://twitter.com/Honesty861024" title="Twitter" target="_blank">
|
||||||
<j class="fab fa-twitter"></j>
|
<j class="fab fa-twitter"></j>
|
||||||
<span class="label">Twitter</span>
|
<span class="label">Twitter</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="navigation__item">
|
<li class="navigation__item">
|
||||||
<a href="https://wpa.qq.com/msgrd?v=3&uin=1151581339&site=qq&menu=yes"
|
<a href="https://wpa.qq.com/msgrd?v=3&uin=1397138703&site=qq&menu=yes"
|
||||||
title="QQ" target="_blank">
|
title="QQ" target="_blank">
|
||||||
<j class="fab fa-qq"></j>
|
<j class="fab fa-qq"></j>
|
||||||
<span class="label">QQ</span>
|
<span class="label">QQ</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="navigation__item">
|
<li class="navigation__item">
|
||||||
<a onClick="weixin()" title="微信" target="_blank">
|
<a onClick="weixin()" title="微信" target="_blank">
|
||||||
<j class="fab fa-weixin"></j>
|
<j class="fab fa-weixin"></j>
|
||||||
<script>
|
<script>
|
||||||
function weixin() {
|
function weixin() {
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
title: "请扫码",
|
title: "请扫码",
|
||||||
text: "请使用微信扫一扫",
|
text: "请使用微信扫一扫",
|
||||||
confirmButtonText: "好的",
|
confirmButtonText: "好的",
|
||||||
imageUrl: "./images/weixin.png",
|
imageUrl: "./images/my-wechat.jpeg",
|
||||||
imageWidth: 150,
|
imageWidth: 150,
|
||||||
imageHeight: 150
|
imageHeight: 150
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="navigation__item">
|
<li class="navigation__item">
|
||||||
<a href="mailto:1151581339@qq.com" title="Email">
|
<a href="mailto:hehouhui@hehouhui.cn" title="Email">
|
||||||
<j class="fas fa-envelope"></j>
|
<j class="fas fa-envelope"></j>
|
||||||
<span class="label">Email</span>
|
<span class="label">Email</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-cover--overlay cover-slate"></div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="remark iUp">
|
<div class="panel-cover--overlay cover-slate"></div>
|
||||||
<p class="power">Copyright © 2022
|
</div>
|
||||||
<script>document.write(' - ' + (new Date()).getFullYear())</script> LQBBY
|
<div class="remark iUp">
|
||||||
</p>
|
<p class="power">Copyright © 2018
|
||||||
</div>
|
<script>document.write(' - ' + (new Date()).getFullYear())</script>
|
||||||
</header>
|
Honesty
|
||||||
<!--黑暗主题-->
|
</p>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
<!--黑暗主题-->
|
||||||
|
|
||||||
|
|
||||||
|
<!--izitoast弹窗设置
|
||||||
|
<script>
|
||||||
|
iziToast.settings({
|
||||||
|
timeout: 4000,
|
||||||
|
icon: 'Fontawesome',
|
||||||
|
closeOnEscape: 'true',
|
||||||
|
position: 'topRight',
|
||||||
|
transitionOut: 'fadeOutRight',
|
||||||
|
displayMode: '2',
|
||||||
|
layout: '2',
|
||||||
|
transitionIn: 'bounceInLeft',
|
||||||
|
});
|
||||||
|
<script>
|
||||||
|
|
||||||
|
function update() {
|
||||||
<!--izitoast弹窗设置
|
iziToast.info({
|
||||||
<script>
|
icon: 'fad fa-times-octagon',
|
||||||
iziToast.settings({
|
backgroundColor: '#efefef',
|
||||||
timeout: 4000,
|
title: '站点暂时关闭',
|
||||||
icon: 'Fontawesome',
|
message: '只是出现了一点小问题 ~'
|
||||||
closeOnEscape: 'true',
|
|
||||||
position: 'topRight',
|
|
||||||
transitionOut: 'fadeOutRight',
|
|
||||||
displayMode: '2',
|
|
||||||
layout: '2',
|
|
||||||
transitionIn: 'bounceInLeft',
|
|
||||||
});
|
});
|
||||||
<script>
|
}
|
||||||
|
-->
|
||||||
function update() {
|
<script>
|
||||||
iziToast.info({
|
// 百度站点统计
|
||||||
icon: 'fad fa-times-octagon',
|
var _hmt = _hmt || [];
|
||||||
backgroundColor: '#efefef',
|
(function () {
|
||||||
title: '站点暂时关闭',
|
var hm = document.createElement("script");
|
||||||
message: '只是出现了一点小问题 ~'
|
hm.src = "https://hm.baidu.com/hm.js?ae2a009a75b13c21d5121ee51375ea4e";
|
||||||
});
|
var s = document.getElementsByTagName("script")[0];
|
||||||
}
|
s.parentNode.insertBefore(hm, s);
|
||||||
-->
|
})();
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
<script type="text/javascript" src="./js/jquery.min.js"></script>
|
||||||
<script type="text/javascript" src="./js/fetch.min.js"></script>
|
<script type="text/javascript" src="./js/fetch.min.js"></script>
|
||||||
<script type="text/javascript" src="./js/main.js"></script>
|
<script type="text/javascript" src="./js/main.js"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
39
js/main.js
@@ -30,56 +30,41 @@ var iUp = (function () {
|
|||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
// 获取一言数据
|
// 获取一言数据
|
||||||
fetch('https://v1.hitokoto.cn').then(function (res) {
|
fetch('https://v1.hitokoto.cn?c=c&c=d&c=h&c=i&c=k&c=h').then(function (res) {
|
||||||
return res.json();
|
return res.json();
|
||||||
}).then(function (e) {
|
}).then(function (e) {
|
||||||
$('#description').html(e.hitokoto + "<br/> -「<strong>" + e.from + "</strong>」")
|
$('#description').html(e.hitokoto + "<br/> -「<strong>" + e.from + "</strong>」")
|
||||||
}).catch(function (err) {
|
}).catch(function (err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
})
|
})
|
||||||
// var url = 'https://query.yahooapis.com/v1/public/yql' +
|
|
||||||
// '?q=' + encodeURIComponent('select * from json where url=@url') +
|
|
||||||
// '&url=' + encodeURIComponent('https://www.bing.com/HPImageArchive.aspx?format=js&idx=0&n=8') +
|
|
||||||
// '&format=json&callback=?';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取Bing壁纸
|
* 自定义壁纸
|
||||||
* 原先 YQL 已经无法提供服务了
|
|
||||||
* 改用 JsonBird:https://bird.ioliu.cn/
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
var url = '';
|
|
||||||
var imgUrls = JSON.parse(sessionStorage.getItem("imgUrls"));
|
var imgUrls = JSON.parse(sessionStorage.getItem("imgUrls"));
|
||||||
var index = sessionStorage.getItem("index");
|
var index = sessionStorage.getItem("index");
|
||||||
var $panel = $('#panel');
|
var $panel = $('#panel');
|
||||||
if (imgUrls == null) {
|
if (imgUrls == null) {
|
||||||
imgUrls = new Array();
|
imgUrls = new Array();
|
||||||
index = 0;
|
index = 0;
|
||||||
$.get(url, function (result) {
|
for (let i = 1; i < 8; i++) {
|
||||||
images = result.images;
|
imgUrls.push("https://cdn.jsdelivr.net/gh/listener-He/Home/images/bj/"+i+".jpg");
|
||||||
for (let i = 0; i < images.length; i++) {
|
}
|
||||||
const item = images[i];
|
sessionStorage.setItem("imgUrls", JSON.stringify(imgUrls));
|
||||||
imgUrls.push(item.url);
|
sessionStorage.setItem("index", index);
|
||||||
}
|
|
||||||
var imgUrl = imgUrls[index];
|
|
||||||
var url = "https://www.bing.com" + imgUrl;
|
|
||||||
$panel.css("background", "url('" + url + "') center center no-repeat #666");
|
|
||||||
$panel.css("background-size", "cover");
|
|
||||||
sessionStorage.setItem("imgUrls", JSON.stringify(imgUrls));
|
|
||||||
sessionStorage.setItem("index", index);
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
if (index == 7)
|
if (index == 7)
|
||||||
index = 0;
|
index = 0;
|
||||||
else
|
else
|
||||||
index++;
|
index++;
|
||||||
var imgUrl = imgUrls[index];
|
|
||||||
var url = "https://www.bing.com" + imgUrl;
|
|
||||||
$panel.css("background", "url('" + url + "') center center no-repeat #666");
|
|
||||||
$panel.css("background-size", "cover");
|
|
||||||
sessionStorage.setItem("index", index);
|
sessionStorage.setItem("index", index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var imgUrl = imgUrls[index];
|
||||||
|
var url = "https://www.bing.com" + imgUrl;
|
||||||
|
$panel.css("background", "url('" + url + "') center center no-repeat #666");
|
||||||
|
$panel.css("background-size", "cover");
|
||||||
|
|
||||||
$(".iUp").each(function (i, e) {
|
$(".iUp").each(function (i, e) {
|
||||||
iUp.up(e);
|
iUp.up(e);
|
||||||
});
|
});
|
||||||
|
|||||||