This repository has been archived by the owner on Aug 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (51 loc) · 1.96 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
layout: default
---
<a class="btn" id="htu_button" onclick="htu()">使用说明</a>
<a class="btn" id="htu_back" style="display:none" onclick="htu_back()">返回</a>
<div id="search-container">
<input type="text" id="search-input" placeholder="输入你的错误信息(*/ω\*)" autocomplete="off"/>
<ul id="results-container"></ul>
<div id="htu" style="display:none">
<p>会用百度吧</p>
</div>
</div>
<script src="assets/js/simple-jekyll-search.js" type="text/javascript"></script>
<script>
/*
搜索交互
*/
SimpleJekyllSearch({
searchInput: document.getElementById('search-input'),
resultsContainer: document.getElementById('results-container'),
json: 'https://mdkkt.github.io/search.json',
searchResultTemplate: '<li><a href="{url}?query={query}" title="{description}">{category} - {title}</a></li>',
noResultsText: '没有找到结果呢(。﹏。*)' +
'<br/>' +
'试试搜索引擎?(o´・ェ・`o)' +
'<br/>' +
'或者向我们提交这个问题,我们会尽快完善的!(o゜▽゜)o☆' +
'<br/>' +
'提交链接:<a href="https://github.com/mdkkt/UpdateNeeds/issues">' +
'https://github.com/mdkkt/UpdateNeeds/issues</a>',
limit: 40,
fuzzy: false,
})
</script>
<script>
/*
网页按钮交互
*/
function htu(){
document.getElementById("htu").style.display="";
document.getElementById("htu_back").style.display="";
document.getElementById("search-input").style.display="none";
document.getElementById("htu_button").style.display="none";
}
function htu_back(){
document.getElementById("htu").style.display="none";
document.getElementById("htu_back").style.display="none";
document.getElementById("search-input").style.display="";
document.getElementById("htu_button").style.display="";
}
</script>