MCPcopy Index your code
hub / github.com/cnodejs/nodeclub / search

Function search

public/javascripts/main.js:7–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5 });
6
7 function search() {
8 var q = document.getElementById('q');
9 if (q.value) {
10 /*
11 var hostname = window.location.hostname;
12 var url = 'http://www.google.com/search?q=site:' + hostname + '%20';
13 window.open(url + q.value, '_blank');
14 */
15 return true;
16 } else {
17 return false;
18 }
19 }
20
21 var $wrapper = $('#wrapper');
22 var $backtotop = $('#backtotop');

Callers 1

main.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected