diff --git a/README.md b/README.md index ed36738..b56cf4e 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ 希望大家喜欢 ❤️

-![LQBBYの主页](https://www.lqbby.com/upload/2022/06/QQ%E6%88%AA%E5%9B%BE20220613163335.webp) +![Honesty的主页](https://www.lqbby.com/upload/2022/06/QQ%E6%88%AA%E5%9B%BE20220613163335.webp) >和风天气 API 每日限量1000次,需 [自行申请](https://dev.qweather.com/),或更换其他 API @@ -13,7 +13,7 @@ >由于 CDN 缓存原因,查看最新效果可能需要 `Ctrl` + `F5` 强制刷新浏览器缓存 ### 👀 预览 -- [LQBBYの主页](https://zy.lqbby.com:1443) +- [Honesty的主页](https://www.hehouhui.cn) ### 🌈 功能 diff --git a/images/bj/1.jpg b/images/bj/1.jpg new file mode 100644 index 0000000..7a82f67 Binary files /dev/null and b/images/bj/1.jpg differ diff --git a/images/bj/2.jpg b/images/bj/2.jpg new file mode 100644 index 0000000..80cacbd Binary files /dev/null and b/images/bj/2.jpg differ diff --git a/images/bj/3.jpg b/images/bj/3.jpg new file mode 100644 index 0000000..b954599 Binary files /dev/null and b/images/bj/3.jpg differ diff --git a/images/bj/4.jpg b/images/bj/4.jpg new file mode 100644 index 0000000..86fef4a Binary files /dev/null and b/images/bj/4.jpg differ diff --git a/images/bj/5.jpg b/images/bj/5.jpg new file mode 100644 index 0000000..5012a27 Binary files /dev/null and b/images/bj/5.jpg differ diff --git a/images/bj/6.jpg b/images/bj/6.jpg new file mode 100644 index 0000000..7a4790e Binary files /dev/null and b/images/bj/6.jpg differ diff --git a/images/bj/7.jpg b/images/bj/7.jpg new file mode 100644 index 0000000..0e836e6 Binary files /dev/null and b/images/bj/7.jpg differ diff --git a/images/kj.webp b/images/kj.webp deleted file mode 100644 index 8ba8ac2..0000000 Binary files a/images/kj.webp and /dev/null differ diff --git a/images/my-wechat.jpeg b/images/my-wechat.jpeg new file mode 100644 index 0000000..2afc761 Binary files /dev/null and b/images/my-wechat.jpeg differ diff --git a/index.html b/index.html index 86875d4..2454175 100644 --- a/index.html +++ b/index.html @@ -5,232 +5,234 @@ - - - + + + - - - - LQBBYの主页 - - - - - + + + + Honesty的主页 + + + + + + src="https://fastly.jsdelivr.net/npm/izitoast@1.4.0/dist/js/iziToast.min.js"> + media="all"> - - - + + - + - -
- -
-
-
- -
- - + } + + -
-
-
-
- -
+
+
+ -
-

Copyright © 2022 - LQBBY -

-
-
- +
+ +
+

Copyright © 2018 + + Honesty +

+
+ + + - - - - + } + --> + + + + diff --git a/js/main.js b/js/main.js index 5b03a8f..de8f327 100644 --- a/js/main.js +++ b/js/main.js @@ -30,56 +30,41 @@ var iUp = (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(); }).then(function (e) { $('#description').html(e.hitokoto + "
-「" + e.from + "」") }).catch(function (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 index = sessionStorage.getItem("index"); var $panel = $('#panel'); if (imgUrls == null) { imgUrls = new Array(); index = 0; - $.get(url, function (result) { - images = result.images; - for (let i = 0; i < images.length; i++) { - const item = images[i]; - imgUrls.push(item.url); - } - 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); - }); + for (let i = 1; i < 8; i++) { + imgUrls.push("https://cdn.jsdelivr.net/gh/listener-He/Home/images/bj/"+i+".jpg"); + } + sessionStorage.setItem("imgUrls", JSON.stringify(imgUrls)); + sessionStorage.setItem("index", index); } else { if (index == 7) index = 0; else 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); } + 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.up(e); });