2022-05-20 17:37:18 +08:00
|
|
|
|
简体中文 | [English](./README_EN.md)
|
|
|
|
|
|
2021-09-25 23:12:38 +08:00
|
|
|
|
<p>
|
2022-05-20 17:37:18 +08:00
|
|
|
|
<strong><h2>無名の主页</h2></strong>
|
2022-01-20 22:16:13 +08:00
|
|
|
|
简单的小主页,原来的看够了,重新弄了一个
|
2021-09-25 23:12:38 +08:00
|
|
|
|
</p>
|
2021-10-01 21:42:30 +08:00
|
|
|
|
|
2022-05-03 20:06:35 +08:00
|
|
|
|
![無名の主页](https://img.imsyy.top/other/imsyy-home.webp)
|
2022-02-03 16:26:59 +08:00
|
|
|
|
|
2022-05-20 17:37:18 +08:00
|
|
|
|
>主页的 Logo 字体已经过压缩,若用本站 Logo 以外的字母会变回默认字体,这里是 [完整字体](https://file.imsyy.top/font/Pacifico-Regular.ttf)
|
|
|
|
|
|
|
|
|
|
>天气 API 每日限量100次,需 [自行申请](https://www.tianqiapi.com/),或更换其他 API
|
2022-01-16 10:28:16 +08:00
|
|
|
|
|
2022-01-20 22:16:13 +08:00
|
|
|
|
### Demo
|
|
|
|
|
>由于 CDN 缓存原因,查看最新效果可能需要 `Ctrl` + `F5` 强制刷新浏览器缓存
|
|
|
|
|
|
2022-02-03 16:26:59 +08:00
|
|
|
|
- [無名の主页](https://www.imsyy.top)
|
2022-01-20 22:16:13 +08:00
|
|
|
|
|
2021-10-01 21:42:30 +08:00
|
|
|
|
### 功能
|
|
|
|
|
|
2022-02-03 16:26:59 +08:00
|
|
|
|
- [x] 载入动画
|
2021-10-01 21:42:30 +08:00
|
|
|
|
- [x] 站点简介
|
2022-01-16 10:28:16 +08:00
|
|
|
|
- [x] Hitokoto 一言
|
|
|
|
|
- [x] 日期及时间
|
2022-01-20 22:16:13 +08:00
|
|
|
|
- [x] 实时天气
|
2022-01-16 10:28:16 +08:00
|
|
|
|
- [x] 时光进度条
|
2022-02-03 16:26:59 +08:00
|
|
|
|
- [x] 音乐播放器
|
|
|
|
|
- [x] 移动端适配
|
|
|
|
|
* [ ] 还没想好呢
|
2021-10-01 21:42:30 +08:00
|
|
|
|
|
2022-05-25 19:55:17 +08:00
|
|
|
|
### 音乐
|
|
|
|
|
|
|
|
|
|
>本项目采用了基于 `MetingJS` 的 `Aplayer` 音乐播放器,可实现快速自定义歌单
|
|
|
|
|
>*仅支持 **中国大陆地区**,其他区域请将 [以下内容](https://file.imsyy.top/js/music/music-other.js) 替换 `music.js` 以实现音乐播放器的正常使用
|
|
|
|
|
|
|
|
|
|
更改 `music.js` 的参数即可实现自定义歌单列表
|
|
|
|
|
|
|
|
|
|
```js
|
|
|
|
|
var server = "netease"; //netease: 网易云音乐; tencent: QQ音乐; kugou: 酷狗音乐; xiami: 虾米; kuwo: 酷我
|
|
|
|
|
var type = "playlist"; //song: 单曲; playlist: 歌单; album: 唱片
|
|
|
|
|
var id = "7452421335"; //封面 ID / 单曲 ID / 歌单 ID
|
|
|
|
|
```
|
|
|
|
|
|
2022-06-21 12:02:27 +08:00
|
|
|
|
### 字体
|
|
|
|
|
>由于本项目引入了中文字体,需要压缩中文字体以提高网页加载速度( 也可以取消使用中文字体 )
|
|
|
|
|
|
|
|
|
|
#### 中文字体去除繁体
|
|
|
|
|
|
|
|
|
|
- 安装 `Python 3.7` 和 `pip`
|
|
|
|
|
- 运行 `pip install fonttools`
|
|
|
|
|
- 下载 [sc_unicode.txt](https://gist.githubusercontent.com/imaegoo/d64e5088b723c2e02c40985f55ff12db/raw/5ebd2ce49418c73459a9dfe050483409306a6c1d/sc_unicode.txt)
|
|
|
|
|
- 运行 `pyftsubset 字体名称.ttf --unicodes-file=sc_unicode.txt`
|
|
|
|
|
|
|
|
|
|
#### 字体进一步压缩
|
|
|
|
|
|
|
|
|
|
- 编译安装 `Google woff2`
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
sudo apt-get install -y git g++ make
|
|
|
|
|
git clone --recursive https://github.com/google/woff2.git
|
|
|
|
|
cd woff2
|
|
|
|
|
make clean all
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
- 再压缩字体
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
./woff2_compress ./字体名称.ttf
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
- 最终可对原字体进行缓加载,**先行加载压缩后的字体**
|
|
|
|
|
|
|
|
|
|
>详细信息可前往 [虹墨空间站](https://www.imaegoo.com/2020/chinese-font-compress/) 查看原文
|
|
|
|
|
|
2021-10-01 21:42:30 +08:00
|
|
|
|
### 插件
|
|
|
|
|
|
|
|
|
|
* [Bootstrap](https://getbootstrap.com/)
|
|
|
|
|
* [iziToast](https://izitoast.marcelodolza.com/)
|
2022-05-25 19:55:17 +08:00
|
|
|
|
* [Font Awesome](https://fontawesome.com/)
|
2021-10-01 21:42:30 +08:00
|
|
|
|
* [jQuery](https://jquery.com/)
|
2022-01-17 22:38:05 +08:00
|
|
|
|
* [Aplayer](https://aplayer.js.org/)
|
2021-10-01 21:42:30 +08:00
|
|
|
|
|
|
|
|
|
### API
|
|
|
|
|
|
2022-05-25 19:55:17 +08:00
|
|
|
|
* [MetingAPI By 武恩赐](https://api.wuenci.com/meting/api/)
|
2022-01-20 22:16:13 +08:00
|
|
|
|
* [小歪 API](https://api.ixiaowai.cn/)
|
2021-10-01 21:42:30 +08:00
|
|
|
|
* [天气 API](https://www.tianqiapi.com/)
|
2022-01-20 22:16:13 +08:00
|
|
|
|
* [Hitokoto 一言](https://hitokoto.cn/)
|
2021-10-01 21:42:30 +08:00
|
|
|
|
|
2022-01-16 10:28:16 +08:00
|
|
|
|
<a title="SSL" target="_blank" href="https://myssl.com/seal/detail?domain=blog.imsyy.top"><img src="https://img.shields.io/badge/MySSL-安全认证-brightgreen"></a> <a title="CDN" target="_blank" href="https://cdnjs.com/"><img src="https://img.shields.io/badge/CDN-Cloudflare-blue"></a> <a title="Copyright" target="_blank" href="https://imsyy.top/"><img src="https://img.shields.io/badge/Copyright%20%C2%A9%202020--2022-%E7%84%A1%E5%90%8D-red"></a>
|