upgraded AnyEmbed, VideoPicker and WebBrowser apps

preferencesAboutTextFull
unknown 13 years ago
parent f01bc84042
commit f5cff37eff
  1. 163
      resources/library/interactive/Anyembed.wgt/js/ubw-main.js
  2. 5
      resources/library/interactive/VideoPicker.wgt/index.html
  3. 10
      resources/library/interactive/WebBrowser.wgt/index.html

@ -14,84 +14,89 @@
*/
function init(){
var embed;
var inputBox = $("<textarea type='text'></textarea>")
.css({
width: "350px",
height: "58px",
marginRight: "5px"
});
var submit = $("<div>Embed</div>")
.css({
float: "right",
width: "auto",
height:"auto",
padding:"4px",
marginTop:"13px",
cursor:"pointer",
backgroundColor:"rgb(45,65,250)",
border:"1px solid",
borderColor:"rgb(45,65,250) rgb(25,45,230) rgb(25,45,230) rgb(45,65,250)",
textTransform:"capitalize",
fontFamily:"Arial",
fontSize:"18px",
fontWeight:"regular",
color:"white"
});
var loadWindow = $("<div></div>");
var searchWrap = $("<div></div>")
.css({
position:"absolute",
padding: "10px",
backgroundColor: "rgb(230,230,233)",
width: "425px",
height: "65px"
});
//FIT WIDGET FRAME ON LAUNCH...
if(window.sankore){
window.sankore.resize($("#ubwidget").width()-15,85);
}
searchWrap.append(inputBox)
.append(submit);
$("#ubwidget").append(searchWrap);
submit.click(function(){
$("#ubwidget").append(loadWindow)
embed = inputBox.val();
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(window.sankore){
window.sankore.resize($(document).width(),$(document).height());
window.sankore.setPreference("embed", escape(embed));
}
});
if(window.sankore){
if(window.sankore.preferenceKeys().length != 0){
var loadEmbed = unescape(window.sankore.preference("embed"));
inputBox.val(loadEmbed);
submit.trigger("click");
}
}
var embed;
var inputBox = $("<textarea type='text'></textarea>")
.css({
width: "350px",
height: "58px",
marginRight: "5px"
});
var submit = $("<div>Embed</div>")
.css({
float: "right",
width: "auto",
height:"auto",
padding:"4px",
marginTop:"13px",
cursor:"pointer",
backgroundColor:"rgb(45,65,250)",
border:"1px solid",
borderColor:"rgb(45,65,250) rgb(25,45,230) rgb(25,45,230) rgb(45,65,250)",
textTransform:"capitalize",
fontFamily:"Arial",
fontSize:"18px",
fontWeight:"regular",
color:"white"
});
var loadWindow = $("<div></div>");
var searchWrap = $("<div></div>")
.css({
position:"absolute",
padding: "10px",
backgroundColor: "rgb(230,230,233)",
width: "425px",
height: "65px"
});
//FIT WIDGET FRAME ON LAUNCH...
if(window.sankore){
window.sankore.resize($("#ubwidget").width()-15,85);
}
searchWrap.append(inputBox)
.append(submit);
$("#ubwidget").append(searchWrap);
submit.click(function(){
$("#ubwidget").append(loadWindow)
embed = inputBox.val();
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(window.sankore){
window.sankore.resize($(document).width(),$(document).height());
window.sankore.setPreference("embed", escape(embed));
}
});
if(window.sankore){
if(window.sankore.preferenceKeys().length != 0){
var loadEmbed = unescape(window.sankore.preference("embed"));
inputBox.val(loadEmbed);
submit.trigger("click");
}
}
if (window.widget) {
window.widget.onremove = function(){
loadWindow.empty();
}
}
}

@ -168,10 +168,7 @@
if (window.widget) {
window.widget.onremove = function(){
//$("#show-inputfield-button").trigger("click");
$("#embeded-content")
.empty();
//.oembed($("#textbox").val());
$("#embeded-content").empty();
}
}

@ -206,8 +206,8 @@
resizerIndex = 0;
$("#web-content")
.attr("width", globalWidth - 25)
.attr("height", globalHeight - 90);
$("#web-content").show();
.attr("height", globalHeight - 90)
.show();
$(window).trigger("resize");
return false;
};
@ -243,6 +243,12 @@
return newArr;
}
if (window.widget) {
window.widget.onremove = function(){
$("#web-content").empty();
}
}
});
</script>
</head>

Loading…
Cancel
Save