User:Emualluig/common.js

/*if(!window.jQuery) { document.getElementsTagName("head").write(''); } $('head').append(" .ssb {-ms-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.56);-o-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.56);-webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.56);-moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.56);box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.56);background-color: white;cursor: pointer; border-top: 0px solid #a7d7f9; border-bottom: 5px solid #a7d7f9; top: 5px; position: fixed; z-index: 103; left: 1em; height: auto; width: auto; -webkit-transition: border 250ms ease; -moz-transition: border 250ms ease; -o-transition: border 250ms ease; -ms-transition: border 250ms ease; transition: border 250ms ease;}.ssb:hover {border-bottom: 0px solid #a7d7f9; border-top: 5px solid rgb(0, 102, 255);} "); $('body').append("Show Side Bar"); $('#n-shoplink').closest('ul').append('Hide side bar'); function sideBar { switch (nameCookie) { case "0": $('#mw-panel').animate({left: "0em"},1000); $('#content').animate({marginLeft: "10em"},1000); $('#left-navigation').animate({marginLeft: "10em"},1000); break; case "1": $('#mw-panel').animate({left: "-10em"},1000); $('#content').animate({marginLeft: "0em"},1000); $('#left-navigation').animate({marginLeft: "0em"},1000); break; } }*/ var getCookie; function createCookie(t) { $.removeCookie( 'emuWikiSideBarPlugin' ); $.cookie( "emuWikiSideBarPlugin", t, {		path: '/'	} ); getCookie = $.cookie( 'emuWikiSideBarPlugin' ); console.log(getCookie); } function updateCookie { getCookie = $.cookie( 'emuWikiSideBarPlugin' ); console.log(getCookie); } //createCookie(1); $(document).ready(function{	updateCookie; });