View source for MediaWiki:Common.js
From Space Station 14 Wiki
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
/* Any JavaScript here will be loaded for all users on every page load. */
// ********************************
// ******* Start DRUID js *********
// ********************************
// DRUID Infobox.
// source: https://support.wiki.gg/wiki/MediaWiki:Gadget-druidInfoboxes.js
// license: CC BY-SA 4.0
$(function () {
$(".druid-title-tab").off("click")
.on('click', function () {
var $parent = $(this).closest(".druid-container");
$parent.find(".druid-toggleable").removeClass("focused");
var i = $(this).attr("data-druid");
$parent.find(".druid-toggleable[data-druid=" + i + "]").addClass("focused");
});
$(".druid-section-tab").off("click")
.on('click', function () {
var $parent = $(this).closest(".druid-section-container");
000
1:0
Return to MediaWiki:Common.js.