MediaWiki

Gadget-homebutton.js

From Dogcraft Wiki

(lets see if this works)
 
m (Domino moved page MediaWiki:Gadget-skinsandbox.js to MediaWiki:Gadget-homebutton.js without leaving a redirect: Moving homebutton into its own gadget)
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
$(document.getElementsByClassName("page-Dogcraft_Wiki_Skin_sandbox")).ready(function() {
$(document).ready(function() {
var dcHomepageButton = '<a href="//dogcraft.net"><i class=" fa fa-home dc-home-button"></i></a>';
$(".name > .title-name").append(dcHomepageButton);
document.getElementsByClassName("title-area").innerHTML='<li class="name"><div class="title-name" style=""><div style="display: inline-block;width: 47px;height: 45px;background: var(--main-color);vertical-align: top;"><div style="display: inline-block;width: 47px;clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);background: #41bd1e;height: 47px;line-height: 2em;padding-left: 2px;"><a href="//dogcraft.net" style=""><img alt="Dogcraft.net" src="https://dogcraft.net/wiki/images/f/f1/Dogcraft_Logo_White.png" style="width: 85%;vertical-align: bottom;" class="top-bar-logo"></a></div></div><div style="display: inline-block;background: var(--main-color);padding-right: 2em;"><a href="/wiki/Main_Page"><img alt="Dogcraft Wiki" class="top-bar-logo" src="/wiki/resources/assets/logo.png"><div class="title-name" style="display: inline-block;">Dogcraft Wiki</div></a></div><div></div></div></li><li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>';
$("#p-Go_to_Dogcraft > a").html('<i class="fa fa-home dc-home-button"></i>');
});
});

Latest revision as of 17:24, 7 April 2021

$(document).ready(function() {
	var dcHomepageButton = '<a href="//dogcraft.net"><i class=" fa fa-home dc-home-button"></i></a>';
	$(".name > .title-name").append(dcHomepageButton);
	
	$("#p-Go_to_Dogcraft > a").html('<i class="fa fa-home dc-home-button"></i>');
	
});
Background Valentine's Day Event 2024 by TheWhiteTigerNL