MediaWiki:Common.js: Difference between revisions
Myriad-admin (talk | contribs) Replaced content with "→Any JavaScript here will be loaded for all users on every page load.: " Tags: Replaced Manual revert |
Myriad-admin (talk | contribs) Added custom JS logic |
||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
$(function () { | |||
// Check for the native footer | |||
var $footer = $('#footer'); | |||
if ($footer.length === 0) return; | |||
$footer.append(` | |||
<div id="lcc-footer"> | |||
<div id="lcc-footer-content"> | |||
<div class="footer-links"> | |||
<a href="/wiki/About">About</a> | |||
<a href="/wiki/Contact">Contact</a> | |||
</div> | |||
<div class="footer-nav"> | |||
<a href="/wiki/Privacy_policy">Privacy Policy</a> | |||
</div> | |||
<div class="footer-legal"> | |||
<a href="/wiki/Terms">Terms</a> | |||
</div> | |||
<div class="footer-eu-logo"> | |||
<img src="/wiki/Special:FilePath/EU-logo.png" alt="EU logo"> | |||
</div> | |||
<div class="footer-eu-text"> | |||
<p>This project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No. 123456.</p> | |||
</div> | |||
</div> | |||
</div> | |||
`); | |||
}); |
Revision as of 10:43, 21 May 2025
/* Any JavaScript here will be loaded for all users on every page load. */
$(function () {
// Check for the native footer
var $footer = $('#footer');
if ($footer.length === 0) return;
$footer.append(`
<div id="lcc-footer">
<div id="lcc-footer-content">
<div class="footer-links">
<a href="/wiki/About">About</a>
<a href="/wiki/Contact">Contact</a>
</div>
<div class="footer-nav">
<a href="/wiki/Privacy_policy">Privacy Policy</a>
</div>
<div class="footer-legal">
<a href="/wiki/Terms">Terms</a>
</div>
<div class="footer-eu-logo">
<img src="/wiki/Special:FilePath/EU-logo.png" alt="EU logo">
</div>
<div class="footer-eu-text">
<p>This project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No. 123456.</p>
</div>
</div>
</div>
`);
});