Update tag.html
This commit is contained in:
parent
2f245e7987
commit
f3ec0f9c28
@ -58,7 +58,6 @@
|
||||
|
||||
{% block script %}
|
||||
<script>
|
||||
document.getElementById("pathRSS").setAttribute("d",IconList["rss"]);
|
||||
|
||||
{% for num in blogBase['singeListJson'] -%}
|
||||
document.getElementById("{{ blogBase['singeListJson'][num]['postTitle'] }}").setAttribute("d",value=IconList["{{ blogBase['singeListJson'][num]['label'] }}"]);
|
||||
@ -170,8 +169,9 @@ function setClassDisplay(lable){
|
||||
|
||||
function searchShow(data){
|
||||
let lists = document.getElementsByClassName("lists");
|
||||
let tagTitle = document.getElementsByClassName("tagTitle")[0];
|
||||
let searchInput = document.getElementsByClassName("subnav-search-input")[0].value;
|
||||
console.log("123");
|
||||
tagTitle.innerHTML="Search #"+data;
|
||||
for(let i = 0; i < lists.length; i++){
|
||||
if(lists[i].childNodes[0].childNodes[0].childNodes[1].innerHTML.indexOf(data)==-1){lists[i].style.display='none';}
|
||||
else{lists[i].style.display='block';}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user