|
|
|
@ -74,8 +74,9 @@ function init(){ |
|
|
|
|
$("#ubwidget").append(searchWrap);
|
|
|
|
|
|
|
|
|
|
submit.click(function(){ |
|
|
|
|
$("#ubwidget").append(loadWindow) |
|
|
|
|
embed = inputBox.val(); |
|
|
|
|
if(embed){ |
|
|
|
|
$("#ubwidget").append(loadWindow);
|
|
|
|
|
searchWrap.hide(); |
|
|
|
|
|
|
|
|
|
if(/<object/.test(embed)){ |
|
|
|
@ -92,7 +93,16 @@ function init(){ |
|
|
|
|
window.sankore.resize($(document).width(),$(document).height()); |
|
|
|
|
window.sankore.setPreference("embed", escape(embed)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} else{ |
|
|
|
|
var sleepTime = 100; |
|
|
|
|
var counter = 0; |
|
|
|
|
var id = setInterval(function(){ |
|
|
|
|
inputBox.toggleClass("bordered"); |
|
|
|
|
counter ++; |
|
|
|
|
if(counter == 10) |
|
|
|
|
clearInterval(id); |
|
|
|
|
}, sleepTime); |
|
|
|
|
}
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
if(window.sankore){ |
|
|
|
|