Let the embed code and the userbar slide down with an animation

pull/35/head
Peter 'Pita' Martischka 2011-07-06 13:42:00 +01:00
parent 654181b292
commit b46c0e3b3c
1 changed files with 5 additions and 7 deletions

View File

@ -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=&quot;'+padurl+'&quot; width=500 height=400>"</iframe></div>');
$('#users').hide();
$('#embed').show();
$('#users').slideUp("fast");
$('#embed').slideDown("fast");
}
else
{