Update tag.html

This commit is contained in:
Meekdai 2023-11-21 22:43:44 +08:00
parent c786987543
commit 826850ccd8

View File

@ -87,11 +87,11 @@ function showList(jsonData,tag){
if(!(tagList.includes(jsonData["postListJson"][i]['label']))){
tagList.push(jsonData["postListJson"][i]['label']);
let showLabels=document.createElement("a");
let showLabels=document.createElement("button");
showLabels.setAttribute("class","Label");
showLabels.setAttribute("style","background-color:"+jsonData["postListJson"][i]['labelColor']);
showLabels.innerHTML=jsonData["postListJson"][i]['label'];
showLabels.setAttribute("onclick",'javascript:updateShowTag("'+jsonData["postListJson"][i]['label']+'");');
showLabels.setAttribute("onclick","javascript:updateShowTag('"+jsonData["postListJson"][i]['label']+"');");
tagLable.appendChild(showLabels);
}