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> </section>
</div> </div>
<div id="headerright"> <div id="headerright">
<gcse:searchbox-only></gcse:searchbox-only> <gcse:search></gcse:search>
</div> </div>
</div> </div>
</header> </header>

View File

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