Update tag.html
This commit is contained in:
parent
11ce33e617
commit
ddad57bc46
@ -91,7 +91,7 @@ function showList(){
|
|||||||
tagLable.appendChild(showLabels);
|
tagLable.appendChild(showLabels);
|
||||||
}
|
}
|
||||||
for(i in jsonData){
|
for(i in jsonData){
|
||||||
for(label in jsonData[i]['labels']){
|
for(label of jsonData[i]['labels']){
|
||||||
if(!(tagList.includes(label))){
|
if(!(tagList.includes(label))){
|
||||||
tagList.push(label);
|
tagList.push(label);
|
||||||
let showLabels=document.createElement("button");
|
let showLabels=document.createElement("button");
|
||||||
@ -129,7 +129,7 @@ function showList(){
|
|||||||
let listLabels=document.createElement("div");
|
let listLabels=document.createElement("div");
|
||||||
listLabels.setAttribute("class","listLabels");
|
listLabels.setAttribute("class","listLabels");
|
||||||
|
|
||||||
for(label in jsonData[i]['labels']){
|
for(label of jsonData[i]['labels']){
|
||||||
let LabelName=document.createElement("span");
|
let LabelName=document.createElement("span");
|
||||||
LabelName.setAttribute("class","Label LabelName");
|
LabelName.setAttribute("class","Label LabelName");
|
||||||
LabelName.setAttribute("style","background-color:"+jsonData['labelColorDict'][label]);
|
LabelName.setAttribute("style","background-color:"+jsonData['labelColorDict'][label]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user