mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
more css for users stuff
This commit is contained in:
parent
5558e23107
commit
3b029b638d
3 changed files with 69 additions and 34 deletions
|
@ -79,28 +79,35 @@ var padeditbar = (function(){
|
|||
toolbarClick: function(cmd) {
|
||||
if (self.isEnabled()) {
|
||||
if (cmd == 'showusers') {
|
||||
// show users shows the current users on teh pad
|
||||
// get current height
|
||||
var editbarheight = $('#editbar').css('height');
|
||||
if (editbarheight == "36px"){
|
||||
// increase the size of the editbar
|
||||
$('#editbar').animate({height:'72px'});
|
||||
$('#editorcontainerbox').animate({top:'72px'});
|
||||
$('#embed').hide();
|
||||
$('#users').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
// increase the size of the editbar
|
||||
$('#editbar').animate({height:'36px'});
|
||||
$('#editorcontainerbox').animate({top:'36px'});
|
||||
$('#users').hide();
|
||||
}
|
||||
}
|
||||
if (cmd == 'embed') {
|
||||
// embed shows the embed link
|
||||
// get current height
|
||||
var editbarheight = $('#editbar').css('height');
|
||||
if (editbarheight == "36px"){
|
||||
// increase the size of the editbar
|
||||
$('#editbar').animate({height:'72px'});
|
||||
$('#editorcontainerbox').animate({top:'72px'});
|
||||
// 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+'></iframe>"></div>');
|
||||
$('#embed').show();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue