From 8722e4f8003261e7344cd5ebcf60b6e4e36990bd Mon Sep 17 00:00:00 2001 From: Meekdai Date: Wed, 22 Nov 2023 16:08:08 +0800 Subject: [PATCH] Update tag.html --- templates/tag.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/tag.html b/templates/tag.html index 614e324..c5adfae 100644 --- a/templates/tag.html +++ b/templates/tag.html @@ -54,7 +54,7 @@ {% block content %}
- + {% endblock %} {% block script %} @@ -188,7 +188,11 @@ function searchShow(){ if(lists[i].childNodes[0].childNodes[0].childNodes[1].innerHTML.toUpperCase().indexOf(searchInput.toUpperCase())==-1){lists[i].style.display='none';} else{lists[i].style.display='block';a=a+1;} } - if(a==0){document.getElementsByClassName("notFind")[0].style.display='block';} + if(a==0){ + let notFind=document.getElementsByClassName("notFind")[0]; + notFind.style.display='block'; + notFind.innerHTML='Not Find "'+searchInput+'"'; + } else{document.getElementsByClassName("notFind")[0].style.display='none';} }