Commit 3b9109f9 authored by Robert Ricci's avatar Robert Ricci

Add working manual search (cloudlab only for now)

parent be9c035f
......@@ -46,6 +46,7 @@
(list (js-style-addition "highlight.pack.js")
(js-style-addition "download-code.js")
(if (and (clab?) (include-ga)) (js-style-addition "ga-cloudlab.js") null)
(if (clab?) (js-style-addition "gcse-cloudlab.js") null)
(make-css-addition "highlight-default.css"))))
......
window.onload = function() {
var cx = '007876920815929749329:4klkssuifl8';
var placeholder = document.createElement('gcse:search');
var p = document.getElementsByClassName('navright')[0];
console.log(p);
p.parentNode.insertBefore(placeholder, p.nextSibling);
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment