upgraded VideoPicker, AnyEmbed, Wikipedia and Wiktionary

preferencesAboutTextFull
unknown 13 years ago
parent f6c6c2b451
commit 93c88230b6
  1. 2
      resources/library/interactive/Anyembed.wgt/js/ubw-main.js
  2. 16
      resources/library/interactive/VideoPicker.wgt/index.html
  3. 8
      resources/library/interactive/Wikipedia.wgt/index.html
  4. 7
      resources/library/interactive/Wiktionary.wgt/index.html

@ -68,7 +68,7 @@ function init(){
if(/<object/.test(embed)){ if(/<object/.test(embed)){
loadWindow.append(embed); loadWindow.append(embed);
loadWindow.find("embed").attr("wmode","transparent"); loadWindow.find("embed").attr("wmode","opaque");
var loadWindow_content = loadWindow.html(); var loadWindow_content = loadWindow.html();
loadWindow.empty().html(loadWindow_content); loadWindow.empty().html(loadWindow_content);
} }

@ -100,7 +100,7 @@
function checkcontent(){ function checkcontent(){
if($("#embeded-content").html().length != 0 && $("#embeded-content").children(":first").width() > 0){ if($("#embeded-content").html().length != 0 && $("#embeded-content").children(":first").width() > 0){
$("#embeded-content embed").attr("wmode", "transparent"); $("#embeded-content embed").attr("wmode", "opaque");
var embeded_content_html = $("#embeded-content").html(); var embeded_content_html = $("#embeded-content").html();
$("#embeded-content").empty().html(embeded_content_html); $("#embeded-content").empty().html(embeded_content_html);
@ -119,8 +119,6 @@
}) })
.width($("#embeded-content").children(":first").width()) .width($("#embeded-content").children(":first").width())
.height($("#embeded-content").children(":first").height()); .height($("#embeded-content").children(":first").height());
//alert(html);
//alert($("#embeded-content").children(":first").width() + " | " + $("#embeded-content").children(":first").height());
$("#container").removeClass("load").addClass("show"); $("#container").removeClass("load").addClass("show");
$("#show-area").fadeIn(2000).css({ $("#show-area").fadeIn(2000).css({
left:$("#embeded-content").children(":first").width()-25, left:$("#embeded-content").children(":first").width()-25,
@ -160,9 +158,6 @@
var widgetWidth = $("#embeded-content").width() + margins.right + margins.left + adjustmentX; var widgetWidth = $("#embeded-content").width() + margins.right + margins.left + adjustmentX;
var widgetHeight = $("#embeded-content").position().top + $("#embeded-content").height() + margins.bottom + adjustmentY; var widgetHeight = $("#embeded-content").position().top + $("#embeded-content").height() + margins.bottom + adjustmentY;
//alert(widgetWidth + " | " + widgetHeight);
//window.resizeTo(widgetWidth, $(window).height());
window.resizeTo(widgetWidth, widgetHeight); window.resizeTo(widgetWidth, widgetHeight);
window.sankore.resize(widgetWidth, widgetHeight); window.sankore.resize(widgetWidth, widgetHeight);
}; };
@ -171,15 +166,6 @@
return(parseInt(cssvalue.replace("px", ""))); return(parseInt(cssvalue.replace("px", "")));
}; };
/*if (window.widget) {
window.widget.onremove = function(){
//$("#show-inputfield-button").trigger("click");
$("#embeded-content")
.empty()
.oembed($("#textbox").val());
}
}*/
initialize(); initialize();
}); });
</script> </script>

@ -167,9 +167,11 @@
$("#web-browser").height($(window).height() - $("#toolbar").height() - 2); $("#web-browser").height($(window).height() - $("#toolbar").height() - 2);
$("#web-browser").width($(window).width() - 2); $("#web-browser").width($(window).width() - 2);
if($(window).width() < 280){ if($(window).width() < 370)
window.resizeTo(280, $(window).height()); window.resizeTo(370, $(window).height());
}
if($(window).height() < 150)
window.resizeTo($(window).width(), 150);
}); });

@ -166,14 +166,17 @@
$(window).resize(function(){ $(window).resize(function(){
if($(window).width() < 300){ if($(window).width() < 370){
window.resizeTo(300, $(window).height()); window.resizeTo(370, $(window).height());
} else if($(window).width() > 755){ } else if($(window).width() > 755){
$("#web-browser").height($(window).height() - $("#toolbar").height() - 2); $("#web-browser").height($(window).height() - $("#toolbar").height() - 2);
$("#web-browser").width($(window).width() - 2); $("#web-browser").width($(window).width() - 2);
} else } else
$("#web-browser").height($(window).height() - $("#toolbar").height() - 2); $("#web-browser").height($(window).height() - $("#toolbar").height() - 2);
if($(window).height() < 150)
window.resizeTo($(window).width(), 150);
}); });
function wikiReq(kword){ function wikiReq(kword){

Loading…
Cancel
Save