новые иконки в OpenBoard
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenBoard/resources/library/interactive/Anyembed.wgt/js/ubw-main.js

80 lines
1.7 KiB

14 years ago
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...
13 years ago
if(window.sankore){
window.sankore.resize($("#ubwidget").width()-15,85);
14 years ago
}
searchWrap.append(inputBox)
.append(submit);
$("#ubwidget").append(searchWrap);
submit.click(function(){
$("#ubwidget").append(loadWindow)
embed = inputBox.val();
13 years ago
////////////!!!1///////// <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
14 years ago
searchWrap.hide();
loadWindow.append(embed);
13 years ago
//alert($("#ubwidget").html());
$("#ubwidget embed").attr("wmode", "transparent");
var ubwidget_html = $("#ubwidget").html();
alert(ubwidget_html);
setTimeOut(alert);
$("#ubwidget").empty().html(ubwidget_html);
if(window.sankore){
window.sankore.resize($(document).width(),$(document).height());
window.sankore.setPreference("embed", escape(embed));
}
14 years ago
});
13 years ago
if(window.sankore){
14 years ago
13 years ago
if(window.sankore.preferenceKeys().length != 0){
14 years ago
13 years ago
var loadEmbed = unescape(window.sankore.preference("embed"));
14 years ago
inputBox.val(loadEmbed);
submit.trigger("click");
}
}
}