Update 2 files

- /assets/js/simple-jekyll-search.min.js
- /search.html
This commit is contained in:
mayx 2025-06-17 03:56:14 +00:00
parent 7fbeaffac3
commit c25290e716
2 changed files with 53 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,7 @@ title: 搜索
<h1>搜索</h1> <h1>搜索</h1>
<form action="https://www.google.com/search"> <form action="https://www.google.com/search">
<input type="hidden" name="as_sitesearch" value="mabbs.github.io" /> <input type="hidden" name="as_sitesearch" value="mabbs.github.io" />
<p><center><input name="q" type="text" id="search-input" placeholder="Search blog posts.." /> <!--[if !IE]> --><img src="/images/loading.svg" alt="Loading..." id="search-loading" style="width:22px;vertical-align: bottom" /><!-- <![endif]--> <input type="submit" value="谷歌搜索" style="margin-left: 5px;" /></center></p> <p><center><input name="q" type="text" id="search-input" placeholder="Search blog posts.." /> <img src="/images/loading.svg" alt="Loading..." id="search-loading" style="width:22px;vertical-align: bottom" /> <input type="submit" value="谷歌搜索" style="margin-left: 5px;" /></center></p>
</form> </form>
<ul id="results-container"></ul> <ul id="results-container"></ul>
<script> <script>
@ -25,7 +25,6 @@ if (mykeyword) {
sbox.value = mykeyword; sbox.value = mykeyword;
} }
</script> </script>
<!--[if !IE]> -->
<script src="/assets/js/simple-jekyll-search.min.js"></script> <script src="/assets/js/simple-jekyll-search.min.js"></script>
<script> <script>
getSearchJSON(function(json){ getSearchJSON(function(json){
@ -39,5 +38,4 @@ getSearchJSON(function(json){
sjs.search(mykeyword); sjs.search(mykeyword);
document.getElementById('search-loading').style.display = "none"; document.getElementById('search-loading').style.display = "none";
}); });
</script> </script>
<!-- <![endif]-->