Changed AnyEmbed and VideoPicker

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

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

@ -8,5 +8,4 @@ var sankoreLang = {
"fr":{
"embed": "Intégrer"
}
};
};

@ -74,25 +74,35 @@ function init(){
$("#ubwidget").append(searchWrap);
submit.click(function(){
$("#ubwidget").append(loadWindow)
embed = inputBox.val();
searchWrap.hide();
if(embed){
$("#ubwidget").append(loadWindow);
searchWrap.hide();
if(/<object/.test(embed)){
loadWindow.append(embed);
loadWindow.find("embed").attr("wmode","opaque");
var loadWindow_content = loadWindow.html();
loadWindow.empty().html(loadWindow_content);
}
else {
loadWindow.append(embed);
}
if(/<object/.test(embed)){
loadWindow.append(embed);
loadWindow.find("embed").attr("wmode","opaque");
var loadWindow_content = loadWindow.html();
loadWindow.empty().html(loadWindow_content);
}
else {
loadWindow.append(embed);
}
if(window.sankore){
window.sankore.resize($(document).width(),$(document).height());
window.sankore.setPreference("embed", escape(embed));
}
if(window.sankore){
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){

@ -1,169 +1,176 @@
body{
margin-top:10px;
margin-left:10px;
font-family:Arial, Sans-serif;
font-size:15px;
color:#444;
margin-top:10px;
margin-left:10px;
font-family:Arial, Sans-serif;
font-size:15px;
color:#444;
}
.icon-container{
width:40px;
height:40px;
overflow:hidden;
width:40px;
height:40px;
overflow:hidden;
}
#shadow{
position:absolute;
z-index:0;
width:352px;
height:58px;
padding-left:8px;
margin-top:3px;
margin-left:3px;
background-color:rgb(220,220,220);
position:absolute;
z-index:0;
width:352px;
height:58px;
padding-left:8px;
margin-top:3px;
margin-left:3px;
background-color:rgb(220,220,220);
}
#inputfield{
position:absolute;
z-index:1;
width:360px;
height:58px;
background-color:rgb(230,230,233);
border:1px solid rgb(220, 220, 220);
position:absolute;
z-index:1;
width:360px;
height:58px;
background-color:rgb(230,230,233);
border:1px solid rgb(220, 220, 220);
}
.button{
float:left;
padding:4px 5px;
cursor:pointer;
background-color:rgb(45,65,250);
border:1px solid;
border-color:rgb(45,65,250) rgb(25,45,230) rgb(25,45,230) rgb(45,65,250);
text-transform:capitalize;
font-size:12px;
font-weight:bold;
color:white;
float:left;
padding:4px 5px;
cursor:pointer;
background-color:rgb(45,65,250);
border:1px solid;
border-color:rgb(45,65,250) rgb(25,45,230) rgb(25,45,230) rgb(45,65,250);
text-transform:capitalize;
font-size:12px;
font-weight:bold;
color:white;
}
#search-button{
margin-top:17px;
margin-left:17px;
margin-top:17px;
margin-left:17px;
}
#search-button.over{
border-color:rgb(25,45,230) rgb(45,65,250) rgb(45,65,250) rgb(25,45,230);
border-color:rgb(25,45,230) rgb(45,65,250) rgb(45,65,250) rgb(25,45,230);
}
#show-inputfield-button{
margin-left:12px;
margin-left:12px;
}
#container{
float:left;
position:relative;
overflow:visible;
height:auto;
float:left;
position:relative;
overflow:visible;
height:auto;
}
#container.welcome{
width:405px;
margin-top:87px;
background-color:#FFF;
width:405px;
margin-top:87px;
background-color:#FFF;
}
#container.load{
margin-top:0px;
margin-top:0px;
}
#container.show{
margin-top:0px;
height:auto;
margin-top:0px;
height:auto;
}
#container.change{
margin-top:80px;
height:auto;
margin-top:80px;
height:auto;
}
#container.error{
width:400px;
height:auto;
margin-top:87px;
background-color:#FFF;
position:relative;
width:400px;
height:auto;
margin-top:87px;
background-color:#FFF;
position:relative;
}
#arrow{
text-align:center;
width:100%;
margin-top:-36px;
margin-bottom:-1px;
position:relative;
z-index:4;
text-align:center;
width:100%;
margin-top:-36px;
margin-bottom:-1px;
position:relative;
z-index:4;
}
#embeded-content{
border:1px solid rgb(230,230,230);
position:relative;
z-index:3;
float:left;
height:auto;
border:1px solid rgb(230,230,230);
position:relative;
z-index:3;
float:left;
height:auto;
}
#show-container{
overflow:auto;
height:auto;
overflow:auto;
height:auto;
}
#show-area{
display:none;
position:absolute;
top:150px;
left:400px;
z-index:999;
display:none;
position:absolute;
top:150px;
left:400px;
z-index:999;
}
#show-area .icon-container{
margin:0 auto;
margin:0 auto;
}
#textbox{
width:245px;
float:left;
padding:2px;
margin-top:17px;
margin-left:17px;
outline:none;
border:1px solid #666;
font-family:Arial, Sans-serif;
font-size:15px;
color:#444;
width:245px;
float:left;
padding:2px;
margin-top:17px;
margin-left:17px;
outline:none;
font-family:Arial, Sans-serif;
font-size:15px;
color:#444;
}
#container-shadow{
width:100%;
height:30px;
width:100%;
height:30px;
}
#container-shadow td{
height:100%;
height:100%;
}
#shadow-left{
width:193px;
background-image:url(../imgs/left.png);
background-repeat:no-repeat;
width:193px;
background-image:url(../imgs/left.png);
background-repeat:no-repeat;
}
#shadow-center{
width:auto;
background-image:url(../imgs/center.png);
background-repeat:repeat;
width:auto;
background-image:url(../imgs/center.png);
background-repeat:repeat;
}
#shadow-right{
width:193px;
background-image:url(../imgs/right.png);
background-repeat:no-repeat;
width:193px;
background-image:url(../imgs/right.png);
background-repeat:no-repeat;
}
.bordered1{
border: 1px solid red;
}
.bordered2{
border:1px solid #666;
}

@ -65,15 +65,26 @@
$("#search-button")
.click(function(){
window.resizeTo(385, 80);
$("#container").removeClass("welcome").removeClass("change").removeClass("error").addClass("load");
$("#container-shadow").hide();
$("#arrow").hide();
$("#embeded-content").css({
marginLeft:-9000,
marginTop:-9000
}).empty().oembed($("#textbox").val());
checkcontent();
if($("#textbox").val()){
window.resizeTo(385, 80);
$("#container").removeClass("welcome").removeClass("change").removeClass("error").addClass("load");
$("#container-shadow").hide();
$("#arrow").hide();
$("#embeded-content").css({
marginLeft:-9000,
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