Changed AnyEmbed and VideoPicker

preferencesAboutTextFull
unknown 13 years ago
parent e037fc1d73
commit 1d8d0a42a4
  1. 3
      resources/library/interactive/Anyembed.wgt/css/ubwidget.css
  2. 1
      resources/library/interactive/Anyembed.wgt/js/languages.js
  3. 14
      resources/library/interactive/Anyembed.wgt/js/ubw-main.js
  4. 9
      resources/library/interactive/VideoPicker.wgt/css/main.css
  5. 13
      resources/library/interactive/VideoPicker.wgt/index.html

@ -19,3 +19,6 @@ body{
}
.bordered{
border: 1px solid red;
}

@ -9,4 +9,3 @@ var sankoreLang = {
"embed": "Intégrer"
}
};

@ -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){

@ -135,7 +135,6 @@ body{
margin-top:17px;
margin-left:17px;
outline:none;
border:1px solid #666;
font-family:Arial, Sans-serif;
font-size:15px;
color:#444;
@ -167,3 +166,11 @@ body{
background-image:url(../imgs/right.png);
background-repeat:no-repeat;
}
.bordered1{
border: 1px solid red;
}
.bordered2{
border:1px solid #666;
}

@ -65,6 +65,7 @@
$("#search-button")
.click(function(){
if($("#textbox").val()){
window.resizeTo(385, 80);
$("#container").removeClass("welcome").removeClass("change").removeClass("error").addClass("load");
$("#container-shadow").hide();
@ -74,6 +75,16 @@
marginTop:-9000
}).empty().oembed($("#textbox").val());
checkcontent();
} else {
var sleepTime = 100;
var counter = 0;
var id = setInterval(function(){
$("#textbox").toggleClass("bordered1").toggleClass("bordered2");
counter ++;
if(counter == 10)
clearInterval(id);
}, sleepTime);
}
})
.mouseenter(function(){
$(this)
@ -187,7 +198,7 @@
<div id="shadow"></div>
<div id="inputfield">
<input id="textbox" type="text">
<input id="textbox" type="text" class="bordered2">
<div id="search-button" class="button">Show</div>
</div>

Loading…
Cancel
Save