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:
parent
0ee152a297
commit
67ae3f3dd3
@ -44,7 +44,7 @@
|
||||
</section>
|
||||
</div>
|
||||
<div id="headerright">
|
||||
<gcse:searchbox-only></gcse:searchbox-only>
|
||||
<gcse:search></gcse:search>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user