MediaWiki:Common.js: Difference between revisions
From PHIGHTING! Wiki
m
Fixing JS relying on URLs
Sillyvizion (talk | contribs) mNo edit summary |
Sillyvizion (talk | contribs) m (Fixing JS relying on URLs) |
||
Line 53:
if ($("h3:contains(Pronoun(s))").length > 0) {
pronouns = $("h3:contains(Pronoun(s))").next()[0].innerHTML.toLowerCase();
if (location.pathname.split('/')[
phighterName = pronounExclusions[location.pathname.split('/')[
$("h3:contains(Pronoun(s))").next()[0].title = 'While most demons are agender and use any pronouns, ' + phighterName + ' prefers ' + pronouns + ' pronouns!';
}
Line 69:
if (document.querySelectorAll("#ph-nav-dynamic-color").length > 0) {
const nodeList = document.querySelectorAll("#ph-nav-dynamic-color");
const dynamicColor = dynamicColorLibrary[location.pathname.split('/')[
nodeList.forEach(function (currentValue, currentIndex) {
|