-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsearch.html
34 lines (31 loc) · 1.07 KB
/
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
34
---
layout: page
title: Búsqueda
permalink: /search/
---
<form action="/search" method="get">
<input type="text" name="q" id="q" placeholder="Búsqueda" autofocus style="width:calc(100% - 106px);padding:2px 4px;" />
<script type="text/javascript">
var results = /q=(.*)/.exec(document.location.search);
if (results && results[1]) {
var q = document.getElementById('q');
q.value = results[1];
{% if page.url == '/search/' %}
q.select();
{% endif %}
}
</script>
<input type="submit" value="Buscar" style="width:100px;" />
</form>
<script>
(function() {
var cx = '001447907640164080602:dqart81d7ug';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:searchresults-only linktarget="_parent"></gcse:searchresults-only>