Update tag.html

This commit is contained in:
Meekdai 2024-04-02 17:52:37 +08:00
parent 11ce33e617
commit ddad57bc46

View File

@ -91,7 +91,7 @@ function showList(){
tagLable.appendChild(showLabels);
}
for(i in jsonData){
for(label in jsonData[i]['labels']){
for(label of jsonData[i]['labels']){
if(!(tagList.includes(label))){
tagList.push(label);
let showLabels=document.createElement("button");
@ -129,7 +129,7 @@ function showList(){
let listLabels=document.createElement("div");
listLabels.setAttribute("class","listLabels");
for(label in jsonData[i]['labels']){
for(label of jsonData[i]['labels']){
let LabelName=document.createElement("span");
LabelName.setAttribute("class","Label LabelName");
LabelName.setAttribute("style","background-color:"+jsonData['labelColorDict'][label]);