Update tag.html
This commit is contained in:
parent
6e7ca11645
commit
e67297b6fd
@ -105,10 +105,13 @@ request.onload=function(){
|
||||
showList(jsonData);
|
||||
}
|
||||
|
||||
tag=window.location.hash.slice(1)
|
||||
|
||||
function showList(jsonData){
|
||||
let SideNav=document.getElementsByClassName("SideNav")[0];
|
||||
for(let i=1;i<jsonData.length;i++){
|
||||
|
||||
if(jsonData["postListJson"][i]['label']==tag || tag==''){
|
||||
let item=document.createElement("a");
|
||||
item.setAttribute("class","SideNav-item d-flex flex-items-center flex-justify-between");
|
||||
item.setAttribute("href",jsonData["postListJson"][i]['postUrl']);
|
||||
@ -146,10 +149,9 @@ function showList(jsonData){
|
||||
|
||||
item.appendChild(center);
|
||||
item.appendChild(listLabels);
|
||||
SideNav.appendChild(item)
|
||||
|
||||
SideNav.appendChild(item);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user