This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
capri:search [2018/07/03 10:19] – gocht | capri:search [2023/06/02 08:13] – created gocht | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | < | + | Please use the search |
- | + | ||
- | <div id=" | + | |
- | + | ||
- | + | ||
- | + | ||
- | < | + | |
- | + | ||
- | + | ||
- | + | ||
- | < | + | |
- | + | ||
- | + | ||
- | + | ||
- | <div id=" | + | |
- | + | ||
- | < | + | |
- | var myCallback = function() { | + | |
- | if (document.readyState == ' | + | |
- | // Document is ready when CSE element is initialized. | + | |
- | // Render an element with both search | + | |
- | google.search.cse.element.render( | + | |
- | { | + | |
- | div: " | + | |
- | tag: ' | + | |
- | }); | + | |
- | } else { | + | |
- | // Document is not ready yet, when CSE element is initialized. | + | |
- | google.setOnLoadCallback(function() { | + | |
- | // Render an element with both search box and search results in div with id ' | + | |
- | google.search.cse.element.render( | + | |
- | { | + | |
- | div: " | + | |
- | tag: ' | + | |
- | }); | + | |
- | }, true); | + | |
- | } | + | |
- | }; | + | |
- | + | ||
- | // Insert it before | + | |
- | // parameters, like parsetags, callbacks. | + | |
- | window.__gcse = { | + | |
- | parsetags: ' | + | |
- | callback: myCallback | + | |
- | }; | + | |
- | + | ||
- | (function() { | + | |
- | var cx = ' | + | |
- | var gcse = document.createElement(' | + | |
- | gcse.async = true; | + | |
- | gcse.src = ' | + | |
- | var s = document.getElementsByTagName(' | + | |
- | })(); | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | </ | + | |
- | + | ||
- | </ | + | |
- | + | ||
- | + | ||
- | </ | + |