mirror of
https://github.com/caojiezi2003/Snavigation.git
synced 2024-11-23 10:59:46 +00:00
Fix Bug
This commit is contained in:
parent
e9bb396795
commit
67c5f2a66d
@ -3,14 +3,14 @@
|
||||
一个简约的起始页
|
||||
</p>
|
||||
|
||||
![Snavigation](https://img.imsyy.top/other/Snavigation.png)
|
||||
![Snavigation.png](https://s2.loli.net/2022/07/15/FE6U2BJCynHDep8.jpg)
|
||||
|
||||
>尚未完成
|
||||
|
||||
### Demo
|
||||
>由于 CDN 缓存原因,查看最新效果可能需要 `Ctrl` + `F5` 强制刷新浏览器缓存
|
||||
|
||||
- [Snavigation](https://nav.imsyy.top)
|
||||
- [Snavigation](https://snavigation.vercel.app/)
|
||||
|
||||
### 功能
|
||||
|
||||
|
@ -1,14 +1,14 @@
|
||||
@font-face {
|
||||
font-family: "MiSans";
|
||||
src: url('../font/MiSans-Regular.woff') format('woff');
|
||||
src: url('../font/MiSans-Regular.subset.woff2') format('woff');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "iconfont";
|
||||
/* Project id 3222465 */
|
||||
src: url('//at.alicdn.com/t/font_3222465_kuwc8yy7j9g.woff2?t=1647790391080') format('woff2'),
|
||||
url('//at.alicdn.com/t/font_3222465_kuwc8yy7j9g.woff?t=1647790391080') format('woff'),
|
||||
url('//at.alicdn.com/t/font_3222465_kuwc8yy7j9g.ttf?t=1647790391080') format('truetype');
|
||||
src: url('../font/iconfont.woff2') format('woff2'),
|
||||
url('../font/iconfont.woff') format('woff'),
|
||||
url('../font/iconfont.ttf') format('truetype');
|
||||
}
|
||||
|
||||
.iconfont {
|
||||
|
BIN
font/MiSans-Regular.subset.ttf
Normal file
BIN
font/MiSans-Regular.subset.ttf
Normal file
Binary file not shown.
BIN
font/MiSans-Regular.subset.woff2
Normal file
BIN
font/MiSans-Regular.subset.woff2
Normal file
Binary file not shown.
Binary file not shown.
BIN
font/MiSans-Regular.woff2
Normal file
BIN
font/MiSans-Regular.woff2
Normal file
Binary file not shown.
BIN
font/iconfont.ttf
Normal file
BIN
font/iconfont.ttf
Normal file
Binary file not shown.
BIN
font/iconfont.woff
Normal file
BIN
font/iconfont.woff
Normal file
Binary file not shown.
BIN
font/iconfont.woff2
Normal file
BIN
font/iconfont.woff2
Normal file
Binary file not shown.
97
index.html
97
index.html
@ -130,29 +130,79 @@
|
||||
<!-- 常用 -->
|
||||
<div class="mainCont selected">
|
||||
<div class="quick-all">
|
||||
<div class="quick" data-s="bilibili" title="哔哩哔哩 (゜-゜)つロ 干杯~">
|
||||
<a href="https://www.bilibili.com/" target="_blank">
|
||||
哔哩哔哩
|
||||
</a>
|
||||
</div>
|
||||
<div class="quick" data-s="github" title="GitHub">
|
||||
<div class="quick">
|
||||
<a href="https://github.com/" target="_blank">
|
||||
GitHub
|
||||
</a>
|
||||
</div>
|
||||
<div class="quick" data-s="v2ex" title="V2EX">
|
||||
<a href="https://www.v2ex.com/" target="_blank">
|
||||
V2EX
|
||||
</div>
|
||||
</div>
|
||||
<!-- 开发 -->
|
||||
<div class="mainCont">
|
||||
<div class="quick-alls">
|
||||
<div class="quicks">
|
||||
<a href="https://tool.chinaz.com/" target="_blank">
|
||||
站长之家
|
||||
</a>
|
||||
</div>
|
||||
<div class="quick" data-s="steam" title="Steam">
|
||||
<a href="https://store.steampowered.com/" target="_blank">
|
||||
Steam
|
||||
<div class="quicks">
|
||||
<a href="https://www.toolnb.com/" target="_blank">
|
||||
爱资料工具
|
||||
</a>
|
||||
</div>
|
||||
<div class="quick" data-s="scp" title="控制,收容,保护">
|
||||
<a href="http://scp-wiki-cn.wikidot.com/" target="_blank">
|
||||
scp基金会2
|
||||
<div class="quicks">
|
||||
<a href="https://www.aconvert.com/cn/" target="_blank">
|
||||
Aconvert
|
||||
</a>
|
||||
</div>
|
||||
<div class="quicks">
|
||||
<a href="https://next.itellyou.cn/" target="_blank">
|
||||
MSDN
|
||||
</a>
|
||||
</div>
|
||||
<div class="quicks">
|
||||
<a href="https://www.bejson.com/" target="_blank">
|
||||
BEJSON
|
||||
</a>
|
||||
</div>
|
||||
<div class="quicks">
|
||||
<a href="https://zh.z-lib.org/" target="_blank">
|
||||
Z-Library
|
||||
</a>
|
||||
</div>
|
||||
<div class="quicks">
|
||||
<a href="https://ebook.huzerui.com/" target="_blank">
|
||||
熊猫搜书
|
||||
</a>
|
||||
</div>
|
||||
<div class="quicks">
|
||||
<a href="https://vocalremover.org/ch/" target="_blank">
|
||||
VocalreMover
|
||||
</a>
|
||||
</div>
|
||||
<div class="quicks">
|
||||
<a href="https://tiomg.org/" target="_blank">
|
||||
太美工具
|
||||
</a>
|
||||
</div>
|
||||
<div class="quicks">
|
||||
<a href="https://s.threatbook.cn/" target="_blank">
|
||||
微步云沙箱
|
||||
</a>
|
||||
</div>
|
||||
<div class="quicks">
|
||||
<a href="https://www.tablesgenerator.com/" target="_blank">
|
||||
表格生成
|
||||
</a>
|
||||
</div>
|
||||
<div class="quicks">
|
||||
<a href="https://write.imsyy.top/" target="_blank">
|
||||
MD 编辑器
|
||||
</a>
|
||||
</div>
|
||||
<div class="quicks">
|
||||
<a href="https://vocalremover.org/ch/" target="_blank">
|
||||
VocalreMover
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@ -182,21 +232,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 开发 -->
|
||||
<div class="mainCont">
|
||||
<div class="quick-alls">
|
||||
<div class="quicks" data-s="bilibili" title="哔哩哔哩 (゜-゜)つロ 干杯~">
|
||||
<a href="https://www.bilibili.com/" target="_blank">
|
||||
哔哩哔哩
|
||||
</a>
|
||||
</div>
|
||||
<div class="quicks" data-s="github" title="GitHub">
|
||||
<a href="https://github.com/" target="_blank">
|
||||
GitHub
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 娱乐 -->
|
||||
<div class="mainCont">
|
||||
<div class="quick-alls">
|
||||
@ -434,7 +469,7 @@
|
||||
<input type="radio" id="radio2" class="set-wallpaper"
|
||||
name="wallpaper-type" value="2" style="display: none;">
|
||||
<label class="form-radio-label" for="radio2">
|
||||
必应每日
|
||||
每日必应
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-radio">
|
||||
|
13
js/main.js
13
js/main.js
@ -28,6 +28,15 @@ window.addEventListener('load', function () {
|
||||
});
|
||||
}, 800);
|
||||
|
||||
//中文字体缓加载-此处写入字体源文件
|
||||
//先行加载简体中文子集,后续补全字集
|
||||
//由于压缩过后的中文字体仍旧过大,可转移至对象存储或 CDN 加载
|
||||
const font = new FontFace(
|
||||
"MiSans",
|
||||
"url(" + "./font/MiSans-Regular.woff2" + ")"
|
||||
);
|
||||
document.fonts.add(font);
|
||||
|
||||
}, false)
|
||||
|
||||
//进入问候
|
||||
@ -152,8 +161,8 @@ var title2 = `
|
||||
|_____|_| |_|_____/ |_| |_|
|
||||
`
|
||||
var content = `
|
||||
版 本 号:1.0
|
||||
更新日期:2022-03-22
|
||||
版 本 号:1.1
|
||||
更新日期:2022-07-12
|
||||
|
||||
Github: https://github.com/imsyy/Snavigation
|
||||
`
|
||||
|
56
js/set.js
56
js/set.js
@ -98,28 +98,52 @@ var se_list_preinstall = {
|
||||
// 默认快捷方式
|
||||
var quick_list_preinstall = {
|
||||
'1': {
|
||||
title: "哔哩哔哩",
|
||||
url: "https://www.bilibili.com/",
|
||||
title: "Vercel",
|
||||
url: "https://vercel.com/",
|
||||
},
|
||||
'2': {
|
||||
title: "GitHub",
|
||||
url: "https://github.com/",
|
||||
},
|
||||
'3': {
|
||||
title: "V2EX",
|
||||
url: "https://www.v2ex.com/",
|
||||
title: "Cloudflare",
|
||||
url: "https://dash.cloudflare.com/",
|
||||
},
|
||||
'4': {
|
||||
title: "Steam",
|
||||
url: "https://store.steampowered.com/",
|
||||
title: "W3school",
|
||||
url: "https://www.w3school.com.cn/",
|
||||
},
|
||||
'5': {
|
||||
title: "Github",
|
||||
url: "https://github.com/",
|
||||
title: "腾讯云",
|
||||
url: "https://console.cloud.tencent.com/",
|
||||
},
|
||||
'6': {
|
||||
title: "Github",
|
||||
url: "https://github.com/",
|
||||
title: "阿里云",
|
||||
url: "https://console.aliyun.com/",
|
||||
},
|
||||
'7': {
|
||||
title: "百度网盘",
|
||||
url: "https://pan.baidu.com/",
|
||||
},
|
||||
'8': {
|
||||
title: "阿里云盘",
|
||||
url: "https://www.aliyundrive.com/drive/",
|
||||
},
|
||||
'9': {
|
||||
title: "Office",
|
||||
url: "https://www.office.com/",
|
||||
},
|
||||
'10': {
|
||||
title: "又拍云",
|
||||
url: "https://console.upyun.com/",
|
||||
},
|
||||
'11': {
|
||||
title: "CSDN",
|
||||
url: "https://www.csdn.net/",
|
||||
},
|
||||
'12': {
|
||||
title: "哔哩哔哩",
|
||||
url: "https://www.bilibili.com/",
|
||||
}
|
||||
};
|
||||
|
||||
@ -284,9 +308,11 @@ function blurWd() {
|
||||
$(".tool-all").css({
|
||||
"transform": "translateY(-120%)"
|
||||
});
|
||||
//隐藏搜索建议
|
||||
$("#keywords").hide();
|
||||
}
|
||||
|
||||
// 关键字提示
|
||||
// 搜索建议提示
|
||||
function keywordReminder() {
|
||||
var keyword = $(".wd").val();
|
||||
if (keyword != "") {
|
||||
@ -622,7 +648,7 @@ $(document).ready(function () {
|
||||
keywordReminder();
|
||||
});
|
||||
|
||||
// 点击自动提示的关键字
|
||||
// 点击自动提示的搜索建议
|
||||
$("#keywords").on("click", "div", function () {
|
||||
var wd = $(this).text();
|
||||
$(".wd").val(wd);
|
||||
@ -997,9 +1023,9 @@ $(document).ready(function () {
|
||||
timeout: 2000,
|
||||
message: '重置成功'
|
||||
});
|
||||
setTimeout(function () {
|
||||
window.location.reload()
|
||||
}, 1000);
|
||||
// setTimeout(function () {
|
||||
// window.location.reload()
|
||||
// }, 1000);
|
||||
}, true],
|
||||
['<button>取消</button>', function (instance, toast) {
|
||||
instance.hide({
|
||||
|
Loading…
Reference in New Issue
Block a user