MediaWiki:Gadget-DoubleLia.js

/* Hide Header Toolbar - by ShermanTheMythran */ $('.wikia-header-mask').before(' ▲ #HeaderCollapse{position:absolute;z-index:-1;right:10px;width:30px;margin:34px 0 0;background:#CFD2DA;color:#305599;text-align:center;border-radius:0 0 5px 5px;-webkit-border-radius:0 0 5px 5px;cursor:pointer;border-width:0 2px 2px;border-style:solid;border-color:#91aacf;transition:margin .5s;-moz-transition:margin .5s;-webkit-transition:margin .5s;-o-transition:margin .5s}#HeaderCollapse span{display:block;transition:transform .5s;-moz-transition:-moz-transform .5s;-webkit-transition:-webkit-transform .5s;-o-transition:-o-transform .5s}.WikiaTopAds{top:34px;padding:20px 0 !important;z-index:-1;transition:top .5s;-moz-transition:top .5s;-webkit-transition:top .5s;-o-transition:top .5s}.WikiaPage{transition:top .5s;-moz-transition:top .5s;-webkit-transition:top .5s;-o-transition:top .5s}#HeaderCollapse.expanded span{transform:rotateY(0deg);-moz-transform:rotateY(0deg);-webkit-transform:rotateY(0deg);-ms-transform:scaleX(1);-o-transform:scaleX(1)}#HeaderCollapse.collapsed span{transform:rotateX(180deg);-moz-transform:rotateX(180deg);-webkit-transform:rotateX(180deg);-ms-transform:scaleY(-1);-o-transform:scaleY(-1)} '); var collapseHeader = function { $('#HeaderCollapse').removeClass('expanded').addClass('collapsed').unbind.bind('click',expandHeader); $('.WikiaHeader').css('position','absolute'); $.cookie('headerCollapse','collapsed',{expires: 365}); }; var expandHeader = function { $('#HeaderCollapse').removeClass('collapsed').addClass('expanded').unbind.bind('click',collapseHeader); $('.WikiaHeader').css('position','fixed'); $.cookie('headerCollapse',null); }; $('#HeaderCollapse').click(collapseHeader); var hcCookie = $.cookie('headerCollapse'); if(hcCookie == "collapsed") { $(collapseHeader); } /* Hide Footer Toolbar - by ShermanTheMythran */ $('.wikia-bar').before(' ▼ #FooterCollapse{position:absolute;z-index:-1;right:10px;width:30px;bottom:25px;background:#FDFDFD;color:#305599;text-align:center;border-radius:5px 5px 0 0;-webkit-border-radius:5px 5px 0 0;cursor:pointer;border-width:2px 2px 0;border-style:solid;border-color:#91aacf;transition:bottom .5s;-moz-transition:bottom .5s;-webkit-transition:bottom .5s;-o-transition:bottom .5s}#FooterCollapse span{display:block;transition:transform .5s;-moz-transition:-moz-transform .5s;-webkit-transition:-webkit-transform .5s;-o-transition:-o-transform .5s}#FooterCollapse.expanded span{transform:rotateY(0deg);-moz-transform:rotateY(0deg);-webkit-transform:rotateY(0deg);-ms-transform:scaleX(1);-o-transform:scaleX(1)}#FooterCollapse.collapsed span{transform:rotateX(180deg);-moz-transform:rotateX(180deg);-webkit-transform:rotateX(180deg);-ms-transform:scaleY(-1);-o-transform:scaleY(-1)} '); var collapseFooter = function { $('#FooterCollapse').removeClass('expanded').addClass('collapsed').unbind.bind('click',expandFooter); $('.WikiaBarWrapper').css('position','absolute'); $.cookie('footerCollapse','collapsed',{expires: 365}); }; var expandFooter = function { $('#FooterCollapse').removeClass('collapsed').addClass('expanded').unbind.bind('click',collapseFooter); $('.WikiaBarWrapper').css('position','fixed'); $.cookie('footerCollapse',null); }; $('#FooterCollapse').click(collapseFooter); var fcCookie = $.cookie('footerCollapse'); if(fcCookie == "collapsed") { $(collapseFooter); }