|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
$.ajaxSetup({
|
|
|
|
|
timeout: 15000,
|
|
|
|
|
cache: true
|
|
|
|
|
timeout: 5000,
|
|
|
|
|
cache: false
|
|
|
|
|
})
|
|
|
|
|
// apply default properties
|
|
|
|
|
startRecord = 0;
|
|
|
|
@ -9,7 +9,7 @@ $(document).ready(function() {
|
|
|
|
|
submit = false;
|
|
|
|
|
yconf = $.extend({
|
|
|
|
|
url : 'is a mandatory property - no default',
|
|
|
|
|
global : false,
|
|
|
|
|
'global' : false,
|
|
|
|
|
theme : 'start',
|
|
|
|
|
title : 'YaCy P2P Web Search',
|
|
|
|
|
logo : yconf.url + '/yacy/ui/img/yacy-logo.png',
|
|
|
|
@ -57,6 +57,8 @@ $(document).ready(function() {
|
|
|
|
|
.appendTo(head);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
load_status = 0;
|
|
|
|
|
loading = window.setInterval("status()", 200);
|
|
|
|
|
if(yconf.load_js) {
|
|
|
|
|
var script0 = yconf.url + '/yacy/ui/js/jquery.dimensions.min.js';
|
|
|
|
|
var script1 = yconf.url + '/yacy/ui/js/jquery.query.js';
|
|
|
|
@ -65,20 +67,28 @@ $(document).ready(function() {
|
|
|
|
|
var script4 = yconf.url + '/yacy/ui/js/jquery-faviconize-1.0.js';
|
|
|
|
|
var script5 = yconf.url + '/yacy/ui/js/jquery-ui-1.7.2.min.js';
|
|
|
|
|
|
|
|
|
|
$.getScript(script0, function(){});
|
|
|
|
|
$.getScript(script1, function(){});
|
|
|
|
|
$.getScript(script2, function(){});
|
|
|
|
|
$.getScript(script3, function(){});
|
|
|
|
|
$.getScript(script4, function(){});
|
|
|
|
|
$.getScript(script5, function(){
|
|
|
|
|
yrun();
|
|
|
|
|
});
|
|
|
|
|
$.getScript(script0, function(){ load_status++; });
|
|
|
|
|
$.getScript(script1, function(){ load_status++; });
|
|
|
|
|
$.getScript(script2, function(){ load_status++; });
|
|
|
|
|
$.getScript(script3, function(){ load_status++; });
|
|
|
|
|
$.getScript(script4, function(){ load_status++; });
|
|
|
|
|
$.getScript(script5, function(){ load_status++; });
|
|
|
|
|
} else {
|
|
|
|
|
yrun();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function status() {
|
|
|
|
|
if(load_status < 6) {
|
|
|
|
|
return;
|
|
|
|
|
} else {
|
|
|
|
|
window.clearInterval(loading);
|
|
|
|
|
yrun();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function yrun() {
|
|
|
|
|
|
|
|
|
|
$.extend($.ui.accordion.defaults, {
|
|
|
|
|
autoHeight: false,
|
|
|
|
|
clearStyle: true,
|
|
|
|
|