Usunięta treść Dodana treść
|
|
var link = document.createElement('a');
var google = "http://www.google.com/custom?sa=Google+Search&domains=pl.wikibooks.org/wiki/&sitesearch=pl.wikibooks.org/wiki/&q=%22PAGE%22"; ▼
var google;
if ( fullbookname.length == 1 || fullbookname.indexOf('++') != -1 || encodeURIComponent(fullbookname) != fullbookname ) {
▲ google = "http://www.google.com/custom?sa=Google+Search&domains=pl.wikibooks.org/wiki/&sitesearch=pl.wikibooks.org/wiki/&q=%22PAGE%22";
}else{
google = "http://www.google.com/custom?sa=Google+Search&domains=pl.wikibooks.org/wiki/PAGE&sitesearch=pl.wikibooks.org/wiki/PAGE";
}
link.href = google.replace(/PAGE/g, encodeURIComponent(fullbookname));
|