MediaWiki:Common.js

From Disaster Risk Gateway
Revision as of 15:24, 21 May 2025 by Myriad-admin (talk | contribs) (Adding logic for good Footer.)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
$(function () {
    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="/index.php/About">About</a>
                    <a href="/index.php/Contact">Contact</a>
                </div>
                <div class="footer-nav">
                    <a href="/index.php/Disaster_Risk_Gateway:Privacy_Notice">Privacy Notice</a>
                    <a href="/index.php/Disaster_Risk_Gateway:Terms_of_Use">Terms of Use</a>
                    <a href="/index.php?title=Main_Page&mobileaction=toggle_view_mobile">Mobile View</a>
                </div>
                <div class="footer-legal">
                    <!-- If you want to add legal/disclaimer info, add links here -->
                </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>
    `);
});