|
|
@ -74,8 +74,9 @@ function init(){ |
|
|
|
$("#ubwidget").append(searchWrap);
|
|
|
|
$("#ubwidget").append(searchWrap);
|
|
|
|
|
|
|
|
|
|
|
|
submit.click(function(){ |
|
|
|
submit.click(function(){ |
|
|
|
$("#ubwidget").append(loadWindow) |
|
|
|
|
|
|
|
embed = inputBox.val(); |
|
|
|
embed = inputBox.val(); |
|
|
|
|
|
|
|
if(embed){ |
|
|
|
|
|
|
|
$("#ubwidget").append(loadWindow);
|
|
|
|
searchWrap.hide(); |
|
|
|
searchWrap.hide(); |
|
|
|
|
|
|
|
|
|
|
|
if(/<object/.test(embed)){ |
|
|
|
if(/<object/.test(embed)){ |
|
|
@ -92,7 +93,16 @@ function init(){ |
|
|
|
window.sankore.resize($(document).width(),$(document).height()); |
|
|
|
window.sankore.resize($(document).width(),$(document).height()); |
|
|
|
window.sankore.setPreference("embed", escape(embed)); |
|
|
|
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){ |
|
|
|
if(window.sankore){ |
|
|
|