MediaWiki:Common.js: Difference between revisions
Myriad-admin (talk | contribs) Edited EU wording Tags: Mobile edit Mobile web edit |
Myriad-admin (talk | contribs) Changed all instances to drg Tags: Mobile edit Mobile web edit |
||
Line 5: | Line 5: | ||
$footer.append(` | $footer.append(` | ||
<div id=" | <div id="drg-footer"> | ||
<div id=" | <div id="drg-footer-content"> | ||
<div class=" | <div class="drg-split-links"> | ||
<div class=" | <div class="drg-links-left"> | ||
<a href="/index.php/Disaster_Risk_Gateway">About</a> | <a href="/index.php/Disaster_Risk_Gateway">About</a> | ||
<a href="/index.php/Disaster_Risk_Gateway:Privacy_Notice">Privacy Notice</a> | <a href="/index.php/Disaster_Risk_Gateway:Privacy_Notice">Privacy Notice</a> | ||
<a href="/index.php?title=Main_Page&mobileaction=toggle_view_mobile">Mobile View</a> | <a href="/index.php?title=Main_Page&mobileaction=toggle_view_mobile">Mobile View</a> | ||
</div> | </div> | ||
<div class=" | <div class="drg-links-right"> | ||
<a href="/index.php/Contribute">Contact</a> | <a href="/index.php/Contribute">Contact</a> | ||
<a href="/index.php/Disaster_Risk_Gateway:Terms_of_Use">Terms of Use</a> | <a href="/index.php/Disaster_Risk_Gateway:Terms_of_Use">Terms of Use</a> |
Revision as of 14:05, 23 May 2025
mw.loader.using('mediawiki.util').then(function () {
function insertCustomFooter() {
var $footer = $('#footer');
if (!$footer.length) return setTimeout(insertCustomFooter, 100); // Retry until footer is available
$footer.append(`
<div id="drg-footer">
<div id="drg-footer-content">
<div class="drg-split-links">
<div class="drg-links-left">
<a href="/index.php/Disaster_Risk_Gateway">About</a>
<a href="/index.php/Disaster_Risk_Gateway:Privacy_Notice">Privacy Notice</a>
<a href="/index.php?title=Main_Page&mobileaction=toggle_view_mobile">Mobile View</a>
</div>
<div class="drg-links-right">
<a href="/index.php/Contribute">Contact</a>
<a href="/index.php/Disaster_Risk_Gateway:Terms_of_Use">Terms of Use</a>
</div>
</div>
<div class="footer-eu-wrapper">
<div class="footer-eu-logo">
<img src="/index.php?title=Special:FilePath/Normal-reproduction-high-resolution_2.jpg" alt="EU logo">
</div>
<div class="footer-eu-text">
<p>Myriad-EU project has received funding from the European Union's Horizon 2020 Research and Innovation Programme under Grant Agreement No. 101003276.</p>
</div>
</div>
</div>
</div>
`);
}
insertCustomFooter();
});