MediaWiki:Common.js: Difference between revisions

From PHIGHTING! Wiki
Content deleted Content added
mNo edit summary
m Abusing admin powers brb
Line 19: Line 19:
$("h3:contains(Pronoun(s))").next()[0].title = 'Demons are agender and use any pronouns - these are just the ones most commonly used for them!';
$("h3:contains(Pronoun(s))").next()[0].title = 'Demons are agender and use any pronouns - these are just the ones most commonly used for them!';
$("h3:contains(Pronoun(s))").next().eq(0).addClass("pr-tooltip");
$("h3:contains(Pronoun(s))").next().eq(0).addClass("pr-tooltip");

/* NINJISY's silly little broker */
$(".ninjisy-broker").find("img").bind("webkitAnimationEnd mozAnimationEnd animationEnd", function(){
$(this).removeClass("pr-animated")
})

$(".ninjisy-broker").find("img").hover(function(){
$(this).addClass("pr-animated");
})

Revision as of 18:58, 11 April 2024

/* Any JavaScript here will be loaded for all users on every page load. */

$( '.fp-discord' ).html( '<iframe src="https://discord.com/widget?id=933210573297057812&theme=dark" width="350" height="500" allowtransparency="true" frameborder="0" sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"></iframe>' );

/* Template:PhighterRainbow */

$(".pr-phighter").find("img").bind("webkitAnimationEnd mozAnimationEnd animationEnd", function(){
  $(this).removeClass("pr-animated")  
})

$(".pr-phighter").find("img").hover(function(){
  $(this).addClass("pr-animated");        
})

$(".pr-phighter").find("a").attr("href","javascript:void(0);");

/* Pronoun tooltip */

$("h3:contains(Pronoun(s))").next()[0].title = 'Demons are agender and use any pronouns - these are just the ones most commonly used for them!';
$("h3:contains(Pronoun(s))").next().eq(0).addClass("pr-tooltip");

/* NINJISY's silly little broker */
$(".ninjisy-broker").find("img").bind("webkitAnimationEnd mozAnimationEnd animationEnd", function(){
  $(this).removeClass("pr-animated")  
})

$(".ninjisy-broker").find("img").hover(function(){
  $(this).addClass("pr-animated");        
})