Let the embed code and the userbar slide down with an animation
This commit is contained in:
parent
654181b292
commit
b46c0e3b3c
|
@ -86,15 +86,15 @@ var padeditbar = (function(){
|
|||
// increase the size of the editbar
|
||||
//$('#editbar').animate({height:'72px'});
|
||||
//$('#editorcontainerbox').animate({top:'72px'});
|
||||
$('#embed').hide();
|
||||
$('#users').show();
|
||||
$('#embed').slideUp("fast");
|
||||
$('#users').slideDown("fast");
|
||||
}
|
||||
else
|
||||
{
|
||||
// increase the size of the editbar
|
||||
//$('#editbar').animate({height:'36px'});
|
||||
//$('#editorcontainerbox').animate({top:'36px'});
|
||||
$('#users').hide();
|
||||
$('#users').slideUp("fast");
|
||||
}
|
||||
}
|
||||
if (cmd == 'embed') {
|
||||
|
@ -105,14 +105,12 @@ var padeditbar = (function(){
|
|||
// increase the size of the editbar
|
||||
//$('#editbar').animate({height:'72px'});
|
||||
$('#editorcontainerbox').animate({top:'72px'});
|
||||
// hide the users
|
||||
$('#users').hide();
|
||||
// get the pad url
|
||||
padurl = document.location;
|
||||
// change the div contents to include the pad url in an input box
|
||||
$('#embed').html('<div id="embedcode">Embed code:<input id="embedinput" type="text" value="<iframe src="'+padurl+'" width=500 height=400>"</iframe></div>');
|
||||
$('#users').hide();
|
||||
$('#embed').show();
|
||||
$('#users').slideUp("fast");
|
||||
$('#embed').slideDown("fast");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue