1
0
mirror of https://github.com/mbirth/wiki.git synced 2024-11-09 13:16:45 +00:00

Load GCSE code on document.ready. Revert to normal gcse:search tag.

This commit is contained in:
Markus Birth 2016-12-19 12:44:25 +01:00
parent 0ee152a297
commit 67ae3f3dd3
2 changed files with 9 additions and 8 deletions

View File

@ -44,7 +44,7 @@
</section>
</div>
<div id="headerright">
<gcse:searchbox-only></gcse:searchbox-only>
<gcse:search></gcse:search>
</div>
</div>
</header>

View File

@ -1,9 +1,10 @@
---
---
cx = '005859900804634181508%3A3bt_l7jyk2e'
gcse = document.createElement 'script'
gcse.type = 'text/javascript'
gcse.async = true
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx
s = document.getElementsByTagName('script')[0]
s.parentNode.insertBefore gcse, s
$(document).ready ->
cx = '005859900804634181508%3A3bt_l7jyk2e'
gcse = document.createElement 'script'
gcse.type = 'text/javascript'
gcse.async = true
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx
s = document.getElementsByTagName('script')[0]
s.parentNode.insertBefore gcse, s