mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
Let the embed code and the userbar slide down with an animation
This commit is contained in:
parent
654181b292
commit
b46c0e3b3c
1 changed files with 5 additions and 7 deletions
|
@ -86,15 +86,15 @@ var padeditbar = (function(){
|
||||||
// increase the size of the editbar
|
// increase the size of the editbar
|
||||||
//$('#editbar').animate({height:'72px'});
|
//$('#editbar').animate({height:'72px'});
|
||||||
//$('#editorcontainerbox').animate({top:'72px'});
|
//$('#editorcontainerbox').animate({top:'72px'});
|
||||||
$('#embed').hide();
|
$('#embed').slideUp("fast");
|
||||||
$('#users').show();
|
$('#users').slideDown("fast");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// increase the size of the editbar
|
// increase the size of the editbar
|
||||||
//$('#editbar').animate({height:'36px'});
|
//$('#editbar').animate({height:'36px'});
|
||||||
//$('#editorcontainerbox').animate({top:'36px'});
|
//$('#editorcontainerbox').animate({top:'36px'});
|
||||||
$('#users').hide();
|
$('#users').slideUp("fast");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (cmd == 'embed') {
|
if (cmd == 'embed') {
|
||||||
|
@ -105,14 +105,12 @@ var padeditbar = (function(){
|
||||||
// increase the size of the editbar
|
// increase the size of the editbar
|
||||||
//$('#editbar').animate({height:'72px'});
|
//$('#editbar').animate({height:'72px'});
|
||||||
$('#editorcontainerbox').animate({top:'72px'});
|
$('#editorcontainerbox').animate({top:'72px'});
|
||||||
// hide the users
|
|
||||||
$('#users').hide();
|
|
||||||
// get the pad url
|
// get the pad url
|
||||||
padurl = document.location;
|
padurl = document.location;
|
||||||
// change the div contents to include the pad url in an input box
|
// 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>');
|
$('#embed').html('<div id="embedcode">Embed code:<input id="embedinput" type="text" value="<iframe src="'+padurl+'" width=500 height=400>"</iframe></div>');
|
||||||
$('#users').hide();
|
$('#users').slideUp("fast");
|
||||||
$('#embed').show();
|
$('#embed').slideDown("fast");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue