Odstranění redundantního .toLowerCase()
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ad108e5c8d
commit
d5e488288f
@ -29,7 +29,7 @@ function filter_name(str) {
|
|||||||
if (str.length==0) {
|
if (str.length==0) {
|
||||||
articles.forEach(article => article.style.display = "flex");
|
articles.forEach(article => article.style.display = "flex");
|
||||||
} else {
|
} else {
|
||||||
articles.forEach(article => article.style.display = article.dataset.title.indexOf(str.toLowerCase()) === -1 ? "none" : "flex");
|
articles.forEach(article => article.style.display = article.dataset.title.indexOf(str) === -1 ? "none" : "flex");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user