View source for MediaWiki:Common.js
Jump to navigation
Jump to search
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. */
// Even More fancy hovers for recipes
$(function () {
// Tooltip only Text
$('.masterTooltip').hover(
function () {
// Hide non-JS
$(this).data('tipText', $(this).attr('title')).removeAttr('title');
//Custom Tooltip
var title = $(this).attr('data-title');
var lore = $(this).attr('data-lore');
var tooltip = '<p class="tooltip">' + parseFormatCodes(title);
if (lore) tooltip += '<br><span class="lore format-5">' + parseFormatCodes(lore) + '</span>';
tooltip += '</p>';
$(tooltip).appendTo('body');
},
function () {
// Hover out
000
1:0
Return to MediaWiki:Common.js.