Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
207 additions
and
316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
title: 修复next搜索框弹不出手机键盘bug和美化搜索框 | ||
date: 2017-10-22 22:59:31 | ||
tags: | ||
- next | ||
categories: | ||
- 杂 | ||
--- | ||
|
||
# 动机 | ||
|
||
- next自带的搜索框在iPhone上有键盘不能自动弹出来的bug, 需要点击两次才可以弹出来 | ||
- next自带的搜索框达不到它一直倡导的简洁风的要求 | ||
|
||
# 展示图 | ||
|
||
如本博客右上角所示 | ||
|
||
# GitHub | ||
|
||
我的[博客源码](https://github.com/no5ix/no5ix.github.io/tree/source), 欢迎Fork+Star. | ||
|
||
如果你也喜欢这样的搜索框, 参考这个[commit]()便可改成跟我一样. | ||
|
||
## 已知问题 | ||
|
||
归档(archives)界面下, 搜索结果内容和归档内容混在一起了, 所以我暂时禁用了归档(反正这玩意也没啥用), 待修复. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ tags: | |
- ruby | ||
categories: | ||
- server | ||
top: 4 | ||
top: 2 | ||
--- | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ tags: | |
- kbengine | ||
categories: | ||
- server | ||
top: 1 | ||
--- | ||
|
||
根据之前的博文 [服务端常用架构](2016/07/11/服务端常用架构一) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
<div class="popup search-popup local-search-popup"> | ||
<div class="local-search-header clearfix"> | ||
<span class="search-icon"> | ||
<i class="fa fa-search"></i> | ||
</span> | ||
<span class="popup-btn-close"> | ||
<i class="fa fa-times-circle"></i> | ||
</span> | ||
<div class="local-search-input-wrapper"> | ||
<input autocomplete="off" | ||
placeholder="{{ __('search.placeholder') }}" spellcheck="false" | ||
type="text" id="local-search-input"> | ||
</div> | ||
</div> | ||
<div id="local-search-result"></div> | ||
</div> | ||
{% if theme.scheme %} | ||
<form class="site-search-form"> | ||
<span class="search-icon fa fa-search"></span> | ||
<input type="text" id="local-search-input" class="st-search-input" /> | ||
</form> | ||
<div id="local-search-result" class="local-search-result-cls"></div> | ||
{% endif %} | ||
|
||
<script type="text/javascript" id="local.search.active"> | ||
var inputArea = document.querySelector("#local-search-input"); | ||
inputArea.onclick = function(){ getSearchFile(); this.onclick = null } | ||
inputArea.onkeydown = function(){ if(event.keyCode == 13) return false } | ||
</script> |
Oops, something went wrong.