MCPcopy
hub / github.com/jsfiddle/togetherjs / closeDock

Function closeDock

togetherjs/ui.js:363–392  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers 1

ui.jsFile · 0.85

Calls 1

$Function · 0.50

Tested by

no test coverage detected