mirror of
https://github.com/caojiezi2003/Snavigation.git
synced 2024-11-23 19:31:59 +00:00
new bug
This commit is contained in:
parent
944d1d4efe
commit
e9bb396795
@ -250,14 +250,11 @@ img.error {
|
|||||||
.sou form .s {
|
.sou form .s {
|
||||||
width: 40px;
|
width: 40px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
|
display: flex;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
|
||||||
|
|
||||||
.sou form .se {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#icon-se,
|
#icon-se,
|
||||||
@ -278,7 +275,6 @@ img.error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sou-button {
|
.sou-button {
|
||||||
padding: 10px;
|
|
||||||
transition: 0.3s;
|
transition: 0.3s;
|
||||||
border-radius: 30px 0px 0px 30px;
|
border-radius: 30px 0px 0px 30px;
|
||||||
}
|
}
|
||||||
|
11
index.html
11
index.html
@ -53,7 +53,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 主体内容 -->
|
<!-- 主体内容 -->
|
||||||
<section id="section" class="section">
|
<section id="section" class="section">
|
||||||
<!-- 搜索框 -->
|
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<div class="con">
|
<div class="con">
|
||||||
<!-- 时间天气 -->
|
<!-- 时间天气 -->
|
||||||
@ -74,14 +73,14 @@
|
|||||||
<div class="se" title="点击切换搜索引擎">
|
<div class="se" title="点击切换搜索引擎">
|
||||||
<i id="icon-se" class="iconfont icon-baidu"></i>
|
<i id="icon-se" class="iconfont icon-baidu"></i>
|
||||||
</div>
|
</div>
|
||||||
<input class="wd" type="text" name="wd" placeholder="想要搜点什么" onfocus="this.placeholder=''"
|
<input class="wd" type="text" name="wd" placeholder="想要搜点什么" autocomplete="off">
|
||||||
onblur="this.placeholder='想要搜点什么'" autocomplete="off">
|
|
||||||
<div class="sou-button">
|
<div class="sou-button">
|
||||||
<button class="s" id="s-button">
|
<div class="s" id="s-button">
|
||||||
<i id="icon-sou" class="iconfont icon-sousuo"></i>
|
<i id="icon-sou" class="iconfont icon-sousuo"></i>
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<input type="submit" id="search-submit" style="display: none;">
|
||||||
</form>
|
</form>
|
||||||
<div id="keywords" style="display: none;"></div>
|
<div id="keywords" style="display: none;"></div>
|
||||||
<div class="search-engine" style="display: none;">
|
<div class="search-engine" style="display: none;">
|
||||||
@ -503,7 +502,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 主体内容结束 -->
|
|
||||||
<!-- 版权信息 -->
|
<!-- 版权信息 -->
|
||||||
<div class="foot">
|
<div class="foot">
|
||||||
<div class="power">Copyright © 2020
|
<div class="power">Copyright © 2020
|
||||||
@ -515,6 +513,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
<!-- 主体内容结束 -->
|
||||||
<!-- noscript -->
|
<!-- noscript -->
|
||||||
<noscript>
|
<noscript>
|
||||||
<div class="noscript fixed-top">请开启 JavaScript</div>
|
<div class="noscript fixed-top">请开启 JavaScript</div>
|
||||||
|
@ -121,6 +121,14 @@ $(function () {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
//点击搜索按钮
|
||||||
|
$(".sou-button").click(function () {
|
||||||
|
iziToast.show({
|
||||||
|
message: '问题未修复,请点击键盘上的确认键以搜索',
|
||||||
|
});
|
||||||
|
// $('#search-submit').click();
|
||||||
|
});
|
||||||
|
|
||||||
//控制台输出
|
//控制台输出
|
||||||
var styleTitle1 = `
|
var styleTitle1 = `
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
|
39
js/set.js
39
js/set.js
@ -100,52 +100,26 @@ var quick_list_preinstall = {
|
|||||||
'1': {
|
'1': {
|
||||||
title: "哔哩哔哩",
|
title: "哔哩哔哩",
|
||||||
url: "https://www.bilibili.com/",
|
url: "https://www.bilibili.com/",
|
||||||
explain: "哔哩哔哩 (゜-゜)つロ 干杯~",
|
|
||||||
},
|
},
|
||||||
'2': {
|
'2': {
|
||||||
title: "GitHub",
|
title: "GitHub",
|
||||||
url: "https://github.com/",
|
url: "https://github.com/",
|
||||||
explain: "GitHub",
|
|
||||||
},
|
},
|
||||||
'3': {
|
'3': {
|
||||||
title: "V2EX",
|
title: "V2EX",
|
||||||
url: "https://www.v2ex.com/",
|
url: "https://www.v2ex.com/",
|
||||||
explain: "V2EX",
|
|
||||||
},
|
},
|
||||||
'4': {
|
'4': {
|
||||||
title: "Steam",
|
title: "Steam",
|
||||||
url: "https://store.steampowered.com/",
|
url: "https://store.steampowered.com/",
|
||||||
explain: "Steam",
|
|
||||||
},
|
},
|
||||||
'5': {
|
'5': {
|
||||||
title: "Github",
|
title: "Github",
|
||||||
url: "https://github.com/",
|
url: "https://github.com/",
|
||||||
explain: "GitHub",
|
|
||||||
},
|
},
|
||||||
'6': {
|
'6': {
|
||||||
title: "Github",
|
title: "Github",
|
||||||
url: "https://github.com/",
|
url: "https://github.com/",
|
||||||
explain: "GitHub",
|
|
||||||
},
|
|
||||||
'7': {
|
|
||||||
title: "Github",
|
|
||||||
url: "https://github.com/",
|
|
||||||
explain: "GitHub",
|
|
||||||
},
|
|
||||||
'8': {
|
|
||||||
title: "Github",
|
|
||||||
url: "https://github.com/",
|
|
||||||
explain: "GitHub",
|
|
||||||
},
|
|
||||||
'9': {
|
|
||||||
title: "Github",
|
|
||||||
url: "https://github.com/",
|
|
||||||
explain: "GitHub",
|
|
||||||
},
|
|
||||||
'10': {
|
|
||||||
title: "Github",
|
|
||||||
url: "https://github.com/",
|
|
||||||
explain: "GitHub",
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -366,7 +340,6 @@ function seList() {
|
|||||||
var html = "";
|
var html = "";
|
||||||
var se_list = getSeList();
|
var se_list = getSeList();
|
||||||
for (var i in se_list) {
|
for (var i in se_list) {
|
||||||
//html += "<div class='se-li' data-url='" + se_list[i]["url"] + "' data-name='" + se_list[i]["name"] + "' data-img='" + se_list[i]["img"] + "'><img src='" + se_list[i]["img"] + "'>" + se_list[i]["title"] + "</div>";
|
|
||||||
html += "<div class='se-li' data-url='" + se_list[i]["url"] + "' data-name='" + se_list[i]["name"] + "' data-icon='" + se_list[i]["icon"] + "'><a class='se-li-text'><i id='icon-sou-list' class=' " + se_list[i]["icon"] + " '></i><span>" + se_list[i]["title"] + "</span></a></div>";
|
html += "<div class='se-li' data-url='" + se_list[i]["url"] + "' data-name='" + se_list[i]["name"] + "' data-icon='" + se_list[i]["icon"] + "'><a class='se-li-text'><i id='icon-sou-list' class=' " + se_list[i]["icon"] + " '></i><span>" + se_list[i]["title"] + "</span></a></div>";
|
||||||
}
|
}
|
||||||
$(".search-engine-list").html(html);
|
$(".search-engine-list").html(html);
|
||||||
@ -424,7 +397,7 @@ function quickData() {
|
|||||||
var html = "";
|
var html = "";
|
||||||
var quick_list = getQuickList();
|
var quick_list = getQuickList();
|
||||||
for (var i in quick_list) {
|
for (var i in quick_list) {
|
||||||
html += "<div class='quick' title='" + quick_list[i]['explain'] + "'>\
|
html += "<div class='quick'>\
|
||||||
<a href='" + quick_list[i]['url'] + "' target='_blank'>\
|
<a href='" + quick_list[i]['url'] + "' target='_blank'>\
|
||||||
" + quick_list[i]['title'] + "\
|
" + quick_list[i]['title'] + "\
|
||||||
</a>\
|
</a>\
|
||||||
@ -635,21 +608,11 @@ $(document).ready(function () {
|
|||||||
$(".search-engine").slideUp(160);
|
$(".search-engine").slideUp(160);
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#s-button").focus(function () {
|
|
||||||
focusWd();
|
|
||||||
keywordReminder();
|
|
||||||
$(".search-engine").slideUp(160);
|
|
||||||
});
|
|
||||||
|
|
||||||
// 搜索框失去焦点事件
|
// 搜索框失去焦点事件
|
||||||
$(".wd").blur(function () {
|
$(".wd").blur(function () {
|
||||||
blurWd();
|
blurWd();
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#s-button").blur(function () {
|
|
||||||
blurWd();
|
|
||||||
});
|
|
||||||
|
|
||||||
// 自动提示( 调用百度 api )
|
// 自动提示( 调用百度 api )
|
||||||
$('.wd').keyup(function (event) {
|
$('.wd').keyup(function (event) {
|
||||||
var key = event.keyCode;
|
var key = event.keyCode;
|
||||||
|
Loading…
Reference in New Issue
Block a user