if(jQuery) {
importScript('User:Arlen22/jquery.js');
jQuery("head").append('<meta name="HandheldFriendly" content="true" />');
jQuery("head").append('<meta name="viewport" content="width=device-width, height=device-height, user-scalable=no" />');
//Adds a small button to the bottom left corner of the screen that hides the sidebar.
(function(){
var toggleMWSidebar = function () {
if(jQuery("#mw-panel").css("display") == "" || jQuery("#mw-panel").css("display") == "block"){
console.log("hiding");
jQuery("#mw-panel").css("display", "none");
jQuery("#left-navigation").css("left", "0px");
jQuery("#mw-body").css("margin-left", "0px");
jQuery("#content").css("margin-left", "0px");
jQuery("#mw-head-base").css("margin-left", "0px");
jQuery("#footer").css("margin-left", "0px");
jQuery("#toggleSB").text(">");
} else {
console.log("showing");
jQuery("#mw-panel").css("display", "");
jQuery("#left-navigation").css("left", "");
jQuery("#mw-body").css("margin-left", "");
jQuery("#content").css("margin-left", "");
jQuery("#mw-head-base").css("margin-left", "");
jQuery("#footer").css("margin-left", "");
jQuery("#toggleSB").text("<");
}
};
jQuery("body").append('<div id="toggleSB"><</div>');
jQuery("#toggleSB").css({
'position': 'fixed',
'left': '0px',
'bottom': '0px',
'border': '1px solid #F60',
'background-color': '#FED',
'cursor': 'default'
});
jQuery("#toggleSB").click(toggleMWSidebar);
//toggleMWSidebar();
})();
(function(){
var toggleCLM = function(){
$('#mw-content-text').css({'overflow-x':'scroll'});
$('#mw-content-text').wrapInner('<div id="mw-content-col">');
$('#mw-content-col').columnize({width : 300, height : 500, buildOnce : true });
};
jQuery("#content").append('<div id="toggleCLM"> | | </div>');
jQuery("#content").css({'position': 'relative'});
jQuery("#toggleCLM").css({
'position': 'absolute',
'right': '0px',
'top': '0px',
'border': '1px solid #F60',
'background-color': '#FED',
'cursor': 'default'
});
jQuery("#toggleCLM").click(toggleCLM);
//if(jQuery(".ns-0").length > 0) toggleCLM();
})();
}