删除首页搜索框转到tag页面
This commit is contained in:
parent
bf28ad41c5
commit
3e95b51cc7
@ -10,11 +10,6 @@
|
|||||||
#header h1 a{color:inherit;text-decoration:none;vertical-align: bottom;font-size:40px;font-family:Monaco;margin-left:8px;}
|
#header h1 a{color:inherit;text-decoration:none;vertical-align: bottom;font-size:40px;font-family:Monaco;margin-left:8px;}
|
||||||
.title-right{display:flex;margin:auto 0 0 auto;}
|
.title-right{display:flex;margin:auto 0 0 auto;}
|
||||||
.title-right button{margin-right:8px;padding:16px;}
|
.title-right button{margin-right:8px;padding:16px;}
|
||||||
|
|
||||||
.subnav-search{margin-top:8px;margin-right:8px;}
|
|
||||||
.subnav-search-input{width:160px;border-top-right-radius:0px;border-bottom-right-radius:0px;}
|
|
||||||
.subnav-search button{padding:5px 8px;border-top-left-radius:0px;border-bottom-left-radius:0px;}
|
|
||||||
|
|
||||||
.title-right .circle{padding: 14px 16px;}
|
.title-right .circle{padding: 14px 16px;}
|
||||||
|
|
||||||
.SideNav{min-width: 360px;}
|
.SideNav{min-width: 360px;}
|
||||||
@ -28,8 +23,6 @@
|
|||||||
body {padding: 8px;}
|
body {padding: 8px;}
|
||||||
.avatar {width:40px;height:40px;}
|
.avatar {width:40px;height:40px;}
|
||||||
#header h1 a{font-size:24px;}
|
#header h1 a{font-size:24px;}
|
||||||
.subnav-search form{display:none;}
|
|
||||||
.subnav-search svg{display:none;}
|
|
||||||
#buttonRSS{display:none;}
|
#buttonRSS{display:none;}
|
||||||
.LabelTime{display:none;}
|
.LabelTime{display:none;}
|
||||||
}
|
}
|
||||||
@ -46,16 +39,11 @@
|
|||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
</h1>
|
</h1>
|
||||||
<div class="title-right">
|
<div class="title-right">
|
||||||
<div class="subnav-search">
|
<a href="/tag.html"><button id="buttonSearch" class="btn btn-invisible circle" title="{{ i18n['Search'] }}">
|
||||||
<form action="https://www.google.com/search" method="get" target="_blank">
|
<svg class="octicon" width="16" height="16" >
|
||||||
<input type="hidden" name="q" value="site:{{ blogBase['homeUrl'] }}">
|
<path id="pathSearch" fill-rule="evenodd"></path>
|
||||||
<input type="search" name="q" class="form-control subnav-search-input float-left" aria-label="Search site" value="">
|
|
||||||
<button class="btn float-left" type="submit">{{ i18n['Search'] }}</button>
|
|
||||||
</form>
|
|
||||||
<svg class="subnav-search-icon octicon octicon-search" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true">
|
|
||||||
<path id="searchSVG" fill-rule="evenodd" d=""></path>
|
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</button></a>
|
||||||
{% for num in blogBase['singeListJson'] -%}
|
{% for num in blogBase['singeListJson'] -%}
|
||||||
<a href="/{{ blogBase['singeListJson'][num]['label'] }}.html"><button class="btn btn-invisible circle" title="{{ blogBase['singeListJson'][num]['postTitle'] }}">
|
<a href="/{{ blogBase['singeListJson'][num]['label'] }}.html"><button class="btn btn-invisible circle" title="{{ blogBase['singeListJson'][num]['postTitle'] }}">
|
||||||
<svg class="octicon" width="16" height="16" >
|
<svg class="octicon" width="16" height="16" >
|
||||||
@ -116,7 +104,7 @@
|
|||||||
|
|
||||||
{% block script %}
|
{% block script %}
|
||||||
<script>
|
<script>
|
||||||
document.getElementById("searchSVG").setAttribute("d",IconList["search"]);
|
document.getElementById("pathSearch").setAttribute("d",IconList["search"]);
|
||||||
document.getElementById("pathRSS").setAttribute("d",IconList["rss"]);
|
document.getElementById("pathRSS").setAttribute("d",IconList["rss"]);
|
||||||
iconTOP=document.getElementsByClassName("svgTop1");
|
iconTOP=document.getElementsByClassName("svgTop1");
|
||||||
iconPost=document.getElementsByClassName("svgTop0");
|
iconPost=document.getElementsByClassName("svgTop0");
|
||||||
|
|||||||
@ -152,6 +152,7 @@ function setClassDisplay(lable){
|
|||||||
let tagTitle = document.getElementsByClassName("tagTitle")[0];
|
let tagTitle = document.getElementsByClassName("tagTitle")[0];
|
||||||
tagTitle.innerHTML="Tag #"+lable;
|
tagTitle.innerHTML="Tag #"+lable;
|
||||||
document.title=lable+" - Meekdai";
|
document.title=lable+" - Meekdai";
|
||||||
|
document.getElementsByClassName("subnav-search-input")[0].value='';
|
||||||
if(lable=="All"){for(let i = 0; i < lists.length; i++){lists[i].style.display='block';}}
|
if(lable=="All"){for(let i = 0; i < lists.length; i++){lists[i].style.display='block';}}
|
||||||
else if(tagList.indexOf(lable)!=-1){
|
else if(tagList.indexOf(lable)!=-1){
|
||||||
for(let i = 0; i < lists.length; i++){
|
for(let i = 0; i < lists.length; i++){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user