Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
small changes in search widget appearance
orbiter099def2a04d1
diff --git a/htroot/env/templates/header.template b/htroot/env/templates/header.templateindex 7f8aaf1e5..cac55eaa6 100644--- a/htroot/env/templates/header.template+++ b/htroot/env/templates/header.template@@ -13,7 +13,8 @@yconf = {url : ' ',global : true,- width : 500,+ width : 500,+ height : 600,theme : 'start',title : 'YaCy Widget',load_js : false,@@ -29,7 +30,7 @@<form id="ysearch" method="get" accept-charset="UTF-8" action="yacysearch.html"><p><input name="query" id="yquery" class="fancy" type="text" size="20" maxlength="80" value=""/><input type="hidden" name="verify" value="ifexist" />- <input type="hidden" name="maximumRecords" value="20" />+ <input type="hidden" name="maximumRecords" value="10" /><input type="hidden" name="resource" value="local" /><input type="hidden" name="urlmaskfilter" value=".*" /><input type="hidden" name="prefermaskfilter" value="" />diff --git a/htroot/js/yacyinteractive.js b/htroot/js/yacyinteractive.jsindex 6faab7818..bc274fbd3 100644--- a/htroot/js/yacyinteractive.js+++ b/htroot/js/yacyinteractive.js@@ -12,7 +12,7 @@ function search(query) {else if (window.ActiveXObject) { // IEself.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");}- self.xmlHttpReq.open('GET', "yacysearch.json?verify=false&resource=local&maximumRecords=100&nav=topics&query=" + query, true);+ self.xmlHttpReq.open('GET', "yacysearch.json?verify=false&resource=local&maximumRecords=30&nav=none&query=" + query, true);self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');self.xmlHttpReq.onreadystatechange = function() {if (self.xmlHttpReq.readyState == 4) {@@ -40,7 +40,7 @@ function updatepage(str) {var topics = navget(navigation, "topics");var html = "<span id=\"resCounter\" style=\"display: inline;\">total results = " + totalResults;- if (topics.length > 0) {+ if (topics && topics.length > 0) {var topwords = "";for (var i = 0; i < topics.elements.length; i++) {topwords += "<a href=\"yacyinteractive.html?query=" + firstChannel.searchTerms + "+" + topics.elements[i].name + "\">" + topics.elements[i].name + "</a> ";