forked from keras-team/keras-io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.html
33 lines (32 loc) · 928 Bytes
/
search.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
<style>
table {
border: none;
margin: 0;
}
tr {
border: none;
}
th {
border: none;
}
td {
border: none;
}
</style>
<div class='k-main-inner'>
<div class='k-content'>
<script async src="https://cse.google.com/cse.js?cx=005305742766141300566:jc9gtvxee8o"></script>
<div class="gcse-search"></div>
</div>
</div>
<script>
window.addEventListener('load', function(){
const urlParams = new URLSearchParams(window.location.search);
const query = urlParams.get('query');
if (query != null) {
var inp = document.getElementById('gsc-i-id1');
inp.value = query;
document.getElementsByClassName('gsc-search-button-v2')[0].click();
}
});
</script>