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>
|
</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>
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user