|
|
@ -201,8 +201,7 @@ |
|
|
|
.attr("height", globalHeight - 120); |
|
|
|
.attr("height", globalHeight - 120); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
function checkcontent(){ |
|
|
|
function checkcontent(){ |
|
|
|
|
|
|
|
|
|
|
|
if(window.sankore){ |
|
|
|
if(window.sankore){ |
|
|
|
window.sankore.setPreference("url", $("#textbox").val()); |
|
|
|
window.sankore.setPreference("url", $("#textbox").val()); |
|
|
|
window.sankore.setPreference("browserHistory", references.toString()); |
|
|
|
window.sankore.setPreference("browserHistory", references.toString()); |
|
|
@ -215,7 +214,6 @@ |
|
|
|
|
|
|
|
|
|
|
|
function checkLoading(){ |
|
|
|
function checkLoading(){ |
|
|
|
if(loadingState){ |
|
|
|
if(loadingState){ |
|
|
|
|
|
|
|
|
|
|
|
clearTimeout(resizer); |
|
|
|
clearTimeout(resizer); |
|
|
|
resizerIndex = 0; |
|
|
|
resizerIndex = 0; |
|
|
|
$("#web-content") |
|
|
|
$("#web-content") |
|
|
@ -227,9 +225,10 @@ |
|
|
|
}; |
|
|
|
}; |
|
|
|
if(resizerIndex > 80){ |
|
|
|
if(resizerIndex > 80){ |
|
|
|
resizerIndex = 0; |
|
|
|
resizerIndex = 0; |
|
|
|
|
|
|
|
console.log("error on loading page"); |
|
|
|
$("#back-button").trigger("click"); |
|
|
|
$("#back-button").trigger("click"); |
|
|
|
//alert(sankoreLang[lang].alert); |
|
|
|
$("#textbox").val($("#textbox").val().replace("http://", "")); |
|
|
|
$("#textbox").val("http://www.google.com/search?q=" + $("#textbox").val().replace("http://", "")); |
|
|
|
$("#textbox").val("http://www.metacrawler.com/search/web?&q=" + $("#textbox").val().replace("http://", "")+"&ql="); |
|
|
|
$("#search-button").trigger("click"); |
|
|
|
$("#search-button").trigger("click"); |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
resizer = setTimeout(function(){checkLoading()}, 100); |
|
|
|
resizer = setTimeout(function(){checkLoading()}, 100); |
|
|
|