[feat]:为主页添加搜索功能

This commit is contained in:
2024-04-21 17:43:26 +08:00
parent 22a3866672
commit df7210d009
3 changed files with 23 additions and 11 deletions

View File

@@ -66,6 +66,11 @@
</head>
<body>
<div class="input-group">
<input type="text" class="form-control" id="search_text" placeholder="键入以搜索">
<button class="btn btn-secondary" type="button" onclick="window.location.href='/overview/1?search='+document.getElementById('search_text').value">Search</button>
</div>
<hr/>
<div id="gallery">
{% for item in list %}
<div class="image-container">