MediaWiki:Common.js: Difference between revisions
No edit summary |
No edit summary |
||
| Line 591: | Line 591: | ||
/** | |||
* Footer Credit — "An Arclight Automata project" | |||
* Appends inline credit text with link after the site name | |||
* in the Minerva Neue footer (.minerva-footer-logo). | |||
*/ | |||
(function () { | |||
'use strict'; | |||
function addFooterCredit() { | |||
var logo = document.querySelector('.minerva-footer-logo'); | |||
if (!logo || logo.querySelector('.ecrt-footer-credit')) return; | |||
var span = document.createElement('span'); | |||
span.className = 'ecrt-footer-credit'; | |||
span.innerHTML = ' \u00b7 An <a href="https://arclight.run" ' | |||
+ 'style="color:inherit;text-decoration:underline;text-decoration-color:rgba(128,128,128,0.4);' | |||
+ 'text-underline-offset:2px;" ' | |||
+ 'target="_blank" rel="noopener">Arclight Automata</a> project'; | |||
span.style.cssText = 'font-weight:normal;font-size:0.85em;opacity:0.7;'; | |||
logo.appendChild(span); | |||
} | |||
if (document.readyState === 'loading') { | |||
document.addEventListener('DOMContentLoaded', addFooterCredit); | |||
} else { | |||
addFooterCredit(); | |||
} | |||
})(); | |||