User:Ultimate Dark Carnage/Sandbox6.js

function openMenu{ function collapse(visibility){ if (visibility === "show"){ var tools = document.getElementsByClassName('customToolsNavigation'); for (var i; i < tools.length; i++){ tools[i].style.display="block"; }       }        else if (visibility === "hide"){ var tools = document.getElementsByClassName('customToolsNavigation'); for (var i; i < tools.length; i++){ tools[i].style.display="none"; }       }    }    var customToolsMenuHTML = '' + '' + ' ' +         ' ' +          '' + '' + ' Custom Tools Menu ' + '' + '+' + '-' + ' ' +           ' ' +            '' + '' + ' ' +                   'Purge' + '' + ' ' +                   'History' + '</li>' + ' ' +                    '<a href="/wiki/Special:Block">Block User</a>' + '</li>' + ' ' +                   '<a href="?action=delete">Delete Page</a>' + '</li>' + ' ' +                   '<a href="/wiki/Special:UserRights">Manage Rights</a>' + '</li>' + ' ' +                   '<a href="/wiki/Special:WikiActivity">Wiki Activity</a>' + '</li>' + '' + '<a href="?useskin=monobook">Monobook</a>' + '</li>' + '' + '<a href="?useskin=wikiamobile">Mobile</a>' + '</li>' + '</ul>' + ' ' +         ' ' +          '<section style="float: right;">' + '<a class="wikia-button" href="javascript:maximize(\'true\');">Maximize Menu</a>' + ' ' +         '<br style="clear: both;" />' + ' ';   var customToolsMenuStyle = '<style type="text/css" id="customToolsMenuStyle">' + '.customToolsMenu {' + 'box-shadow: 1.5px -2px 2px silver;' + 'border-radius: 10px;' + 'background: silver;' + 'background: -moz-linear-gradient(top, silver 0%, gray 100%);' + 'background: -webkit-gradient(linear, 50% 100%, 50% 0, color-stop(0%, silver), color-stop(100%, gray));' + 'background: -webkit-linear-gradient(top, silver 0%, gray 100%);' + 'background: -ms-linear-gradient(top, silver 0%, gray 100%);' + 'background: -o-linear-gradient(top, silver 0%, gray 100%);' + 'background: linear-gradient(to bottom, silver 0%, gray 100%);' + 'filter: progid:DXImageTransform.Microsoft.Gradient( startColorStr="#9A9A9A" endColorStr="#707070");' + 'border: 1px solid black;' + 'text-align: center;' + 'font-family: "Segoe", Segoe UI, Trebuchet MS, Helvetica, Arial, sans-serif;' + 'width: 250px;' + 'height: 300px;' + 'padding: 4px;' + 'position: fixed;' + 'left: 90%;' + 'top: 50%;' + '}' +

'.customToolsMenu .customToolsHeader h1 {' + 'border: none;' + 'font-size: 20pt;' + 'font-weight: bold;' + 'font-variant: small-caps;' + '}' +

'.customToolsMenu .collapseButtons {' + 'border-radius: 10px;' + 'background: maroon;' + 'background: -moz-linear-gradient(top, maroon 0%, darkred 100%);' + 'background: -webkit-gradient(linear, 50% 100%, 50% 0, color-stop(0%, maroon), color-stop(100%, darkred));' + 'background: -webkit-linear-gradient(top, maroon 0%, darkred 100%);' + 'background: -ms-linear-gradient(top, maroon 0%, darkred 100%);' + 'background: -o-linear-gradient(top, maroon 0%, darkred 100%);' + 'background: linear-gradient(to bottom, maroon 0%, darkred 100%);' + 'filter: progid:DXImageTransform.Microsoft.Gradient( startColorStr="#800000" endColorStr="#650000");' + '}' +

'.customToolsMenu .collapseButtons a {' + 'color: black;' + '}' +

'.customToolsMenu .customToolsNavigation ul {' + 'list-style: none;' + 'color: red' + '}' +

'.customToolsMenu .customToolsNavigation ul li a {' + 'padding: 4px;' + 'font-family: Segoe UI, sans-serif;' + 'color: navy;' + '}' +

'.customToolsMenu .customToolsNavigation ul li:hover {' + 'background: navy;' + 'background: -moz-linear-gradient(top, navy 0%, darkblue 100%);' + 'background: -webkit-gradient(linear, 50% 100%, 50% 0, color-stop(0%, navy), color-stop(100%, darkblue));' + 'background: -webkit-linear-gradient(top, navy 0%, darkblue 100%);' + 'background: -ms-linear-gradient(top, navy 0%, darkblue 100%);' + 'background: -o-linear-gradient(top, navy 0%, darkblue 100%);' + 'background: linear-gradient(to bottom, navy 0%, darkblue 100%);' + '}' +

'.customToolsMenu .customToolsNavigation ul li:hover > a {' + 'color: white;' + 'text-shadow: 0 0 5px black;' + '}' +       ' ';    $('.WikiaSiteWrapper').append(customToolsMenuHTML); $('head').append(customToolsMenuStyle); }