Googler | a0d555f | 2015-04-22 08:32:33 +0000 | [diff] [blame] | 1 | --- |
| 2 | layout: default |
| 3 | title: Site Search |
| 4 | --- |
| 5 | |
| 6 | <script> |
| 7 | (function() { |
laurentlb | dfc9e31 | 2018-11-16 05:22:13 -0800 | [diff] [blame] | 8 | var cx = '009927877080525621790:2pxlpaexqpc'; |
Googler | a0d555f | 2015-04-22 08:32:33 +0000 | [diff] [blame] | 9 | var gcse = document.createElement('script'); |
| 10 | gcse.type = 'text/javascript'; |
| 11 | gcse.async = true; |
laurentlb | dfc9e31 | 2018-11-16 05:22:13 -0800 | [diff] [blame] | 12 | gcse.src = 'https://cse.google.com/cse.js?cx=' + cx; |
Googler | a0d555f | 2015-04-22 08:32:33 +0000 | [diff] [blame] | 13 | var s = document.getElementsByTagName('script')[0]; |
| 14 | s.parentNode.insertBefore(gcse, s); |
| 15 | })(); |
laurentlb | 3a88239 | 2018-11-20 08:18:33 -0800 | [diff] [blame] | 16 | |
| 17 | // Keep the search term in the search area. |
| 18 | var urlParams = new URLSearchParams(window.location.search); |
| 19 | document.getElementById('q').value = urlParams.get('q'); |
Googler | a0d555f | 2015-04-22 08:32:33 +0000 | [diff] [blame] | 20 | </script> |
| 21 | |
laurentlb | dfc9e31 | 2018-11-16 05:22:13 -0800 | [diff] [blame] | 22 | <gcse:searchresults-only></gcse:searchresults-only> |