|
|
@ -5,6 +5,18 @@ $(document).ready(function() {
|
|
|
|
cache: false
|
|
|
|
cache: false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// apply default properties
|
|
|
|
|
|
|
|
yconf = $.extend({
|
|
|
|
|
|
|
|
url : 'is a mandatory property - no default',
|
|
|
|
|
|
|
|
theme : 'start',
|
|
|
|
|
|
|
|
title : 'YaCy P2P Web Search',
|
|
|
|
|
|
|
|
width : 420,
|
|
|
|
|
|
|
|
height : 500,
|
|
|
|
|
|
|
|
position: ['top',50],
|
|
|
|
|
|
|
|
modal: false,
|
|
|
|
|
|
|
|
resizable: true
|
|
|
|
|
|
|
|
}, yconf);
|
|
|
|
|
|
|
|
|
|
|
|
$('<div id="ypopup" class="classic"></div>').appendTo("#yacy");
|
|
|
|
$('<div id="ypopup" class="classic"></div>').appendTo("#yacy");
|
|
|
|
|
|
|
|
|
|
|
|
var style1 = yconf.url + '/yacy/ui/css/yacyui-portalsearch.css';
|
|
|
|
var style1 = yconf.url + '/yacy/ui/css/yacyui-portalsearch.css';
|
|
|
@ -39,9 +51,9 @@ $(document).ready(function() {
|
|
|
|
height: yconf.height,
|
|
|
|
height: yconf.height,
|
|
|
|
width: yconf.width,
|
|
|
|
width: yconf.width,
|
|
|
|
minWidth: yconf.width,
|
|
|
|
minWidth: yconf.width,
|
|
|
|
position: ['top',50],
|
|
|
|
position: yconf.position,
|
|
|
|
modal: false,
|
|
|
|
modal: yconf.modal,
|
|
|
|
resizable: true,
|
|
|
|
resizable: yconf.resizable,
|
|
|
|
title: yconf.title,
|
|
|
|
title: yconf.title,
|
|
|
|
buttons: {
|
|
|
|
buttons: {
|
|
|
|
Next: function() {
|
|
|
|
Next: function() {
|
|
|
@ -65,7 +77,6 @@ $(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
$('#ysearch').submit(function() {
|
|
|
|
$('#ysearch').submit(function() {
|
|
|
|
|
|
|
|
|
|
|
|
var query = $('#yquery').getValue();
|
|
|
|
|
|
|
|
var url = yconf.url + '/yacysearch.json?callback=?'
|
|
|
|
var url = yconf.url + '/yacysearch.json?callback=?'
|
|
|
|
|
|
|
|
|
|
|
|
$('#ypopup').empty();
|
|
|
|
$('#ypopup').empty();
|
|
|
|