| 361 | } |
| 362 | |
| 363 | function closeDock() { |
| 364 | //enable vertical scrolling |
| 365 | $("body").css({ |
| 366 | "position": "", |
| 367 | top: "", |
| 368 | left: "" |
| 369 | }); |
| 370 | |
| 371 | //replace the anchor icon |
| 372 | var src = "/togetherjs/images/togetherjs-logo-open.png"; |
| 373 | $("#togetherjs-dock-anchor #togetherjs-dock-anchor-horizontal img").attr("src", src); |
| 374 | |
| 375 | $('.togetherjs-window').animate({ |
| 376 | opacity: 0 |
| 377 | }); |
| 378 | $('#togetherjs-dock-participants').animate({ |
| 379 | opacity: 0 |
| 380 | }); |
| 381 | $('#togetherjs-dock #togetherjs-buttons').animate({ |
| 382 | opacity: 0 |
| 383 | }); |
| 384 | $('.togetherjs-dock-right').animate({ |
| 385 | width: "40px" |
| 386 | }, { |
| 387 | duration:60, easing:"linear" |
| 388 | }); |
| 389 | |
| 390 | // remove bg overlay |
| 391 | //$(".overlay").remove(); |
| 392 | } |
| 393 | |
| 394 | // Setting the anchor button + dock mobile actions |
| 395 | if($.browser.mobile) { |