Gaming Asylum Wiki: Difference between revisions
No edit summary |
No edit summary |
||
Line 25: | Line 25: | ||
<mainpage-endcolumn /> | <mainpage-endcolumn /> | ||
< | function CreateContentResizeButton() { | ||
var headerWidth = $('header#WikiaPageHeader.WikiaPageHeader details').width(); | |||
var contentWidth = $('article#WikiaMainContent.WikiaMainContent').width(); | |||
var catlinksWidth = $('div#catlinks.catlinks').width(); | |||
if(contentWidth < 1000) { | |||
$('section article header ul.wikia-menu-button').after('<ul class="wikia-menu-button" id="resizeButton" style="margin-left:10px"><a onclick="ExpandContent(' + headerWidth + ', ' + contentWidth + ', ' + catlinksWidth + ');" data-id="resizeButton" style="color:#fff;" title="Expands the content area. Note that this will hide the side rail."> Expand <--> </a></ul>'); | |||
$('section article header a.wikia-button').after('<ul class="wikia-menu-button" id="resizeButton" style="margin-left:10px"><a onclick="ExpandContent(' + headerWidth + ', ' + contentWidth + ', ' + catlinksWidth + ');" data-id="resizeButton" style="color:#fff;" title="Expands the content area. Note that this will hide the side rail."> Expand <--> </a></ul>'); | |||
$('section article header a.view-source').after('<ul class="wikia-menu-button" id="resizeButton" style="margin-left:10px"><a onclick="ExpandContent(' + headerWidth + ', ' + contentWidth + ', ' + catlinksWidth + ');" data-id="resizeButton" style="color:#fff;" title="Expands the content area. Note that this will hide the side rail."> Expand <--> </a></ul>'); | |||
if(wgCanonicalNamespace == 'User_blog') { | |||
$('section article div#WikiaUserPagesHeader a.wikia-button').after('<ul class="wikia-menu-button" id="resizeButton" style="margin-left:10px"><a onclick="ExpandContent(' + headerWidth + ', ' + contentWidth + ', ' + catlinksWidth + ');" data-id="resizeButton" style="color:#fff;" title="Expands the content area. Note that this will hide the side rail."> Expand <--> </a></ul>'); | |||
} | |||
} | |||
} | |||
addOnloadHook(CreateContentResizeButton); | |||
function ExpandContent(headerWidth, contentWidth, catlinksWidth) { | |||
$('header#WikiaPageHeader.WikiaPageHeader details').css({"width": '980px'}); | |||
$('article#WikiaMainContent.WikiaMainContent').css({"width": '1000px'}); | |||
$('div#catlinks.catlinks').css({"width": '1000px'}); | |||
$('div#WikiaRail.WikiaRail').css({"display": 'none'}); | |||
$('ul#resizeButton').replaceWith('<ul class="wikia-menu-button" id="resizeButton" style="margin-left:10px"><a onclick="CompressContent(' + headerWidth + ', ' + contentWidth + ', ' + catlinksWidth + ');" data-id="resizeButton" style="color:#fff;" title="Compress the content area back to its original width, and restore the side rail."> Compress >--< </a></ul>'); | |||
} | |||
function CompressContent(headerWidth, contentWidth, catlinksWidth) { | |||
$('header#WikiaPageHeader.WikiaPageHeader details').css({"width": headerWidth}); | |||
$('article#WikiaMainContent.WikiaMainContent').css({"width": contentWidth}); | |||
$('div#catlinks.catlinks').css({"width": catlinksWidth}); | |||
$('div#WikiaRail.WikiaRail').css({"display": 'block'}); | |||
$('ul#resizeButton').replaceWith('<ul class="wikia-menu-button" id="resizeButton" style="margin-left:10px"><a onclick="ExpandContent(' + headerWidth + ', ' + contentWidth + ', ' + catlinksWidth + ');" data-id="resizeButton" style="color:#fff;" title="Expands the content area. Note that this will hide the side rail."> Expand <--> </a></ul>'); | |||
} |
Revision as of 03:07, 3 February 2024
<mainpage-leftcolumn-start />
Welcome to the official Asylum Gaming Wiki
This is the official wiki for Asylum Gaming. Here you can find all the necessary information to assist you in gameplay on our servers.
Important articles
-
Asylum Staff
-
Getting Started on Asylum
-
Asylum Donator Hub
-
APD Guidebook
-
AFD Guidebook
-
Beginner Guides
-
Intermediate Guides
-
Expert Guides
-
Miscellaneous Guides
<mainpage-endcolumn />
function CreateContentResizeButton() { var headerWidth = $('header#WikiaPageHeader.WikiaPageHeader details').width(); var contentWidth = $('article#WikiaMainContent.WikiaMainContent').width(); var catlinksWidth = $('div#catlinks.catlinks').width(); if(contentWidth < 1000) {
$('section article header ul.wikia-menu-button').after('
'); $('section article header a.wikia-button').after('
'); $('section article header a.view-source').after('
');
if(wgCanonicalNamespace == 'User_blog') {
$('section article div#WikiaUserPagesHeader a.wikia-button').after('
');
} } }
addOnloadHook(CreateContentResizeButton);
function ExpandContent(headerWidth, contentWidth, catlinksWidth) { $('header#WikiaPageHeader.WikiaPageHeader details').css({"width": '980px'}); $('article#WikiaMainContent.WikiaMainContent').css({"width": '1000px'}); $('div#catlinks.catlinks').css({"width": '1000px'}); $('div#WikiaRail.WikiaRail').css({"display": 'none'});
$('ul#resizeButton').replaceWith('
');
}
function CompressContent(headerWidth, contentWidth, catlinksWidth) { $('header#WikiaPageHeader.WikiaPageHeader details').css({"width": headerWidth}); $('article#WikiaMainContent.WikiaMainContent').css({"width": contentWidth}); $('div#catlinks.catlinks').css({"width": catlinksWidth}); $('div#WikiaRail.WikiaRail').css({"display": 'block'});
$('ul#resizeButton').replaceWith('
');
}