Update tag.html

This commit is contained in:
Meekdai 2023-11-22 10:29:28 +08:00
parent f1584f9e9e
commit b6539d148c

View File

@ -18,14 +18,14 @@ h1 a:not([href]){color:inherit;text-decoration:none;vertical-align: bottom;font-
@media (max-width: 767px) { @media (max-width: 767px) {
body { padding: 8px;} body { padding: 8px;}
h1 a{font-size:24px;} .tagTitle{font-size:24px;}
.LabelTime{display:none;} .LabelTime{display:none;}
} }
</style> </style>
{% endblock %} {% endblock %}
{% block header %} {% block header %}
<h1><a href="/tag.html">Tag</a></h1> <h1><a class="tagTitle">Tag</a></h1>
<div class="title-right"> <div class="title-right">
<a href="/"><button id="buttonHome" class="btn btn-invisible circle" title="{{ i18n['home'] }}"> <a href="/"><button id="buttonHome" class="btn btn-invisible circle" title="{{ i18n['home'] }}">
@ -155,6 +155,8 @@ function updateShowTag(label){
function setClassDisplay(lable) { function setClassDisplay(lable) {
let lists = document.getElementsByClassName("lists"); let lists = document.getElementsByClassName("lists");
let tagTitle = document.getElementsByClassName("tagTitle")[0];
tagTitle.innerHTML="Tag - "+lable;
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{ else{