Jump to content

MediaWiki:Common.js

From ATRONIA Wiki
Revision as of 09:20, 29 April 2026 by WikiManagement (talk | contribs)

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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Any JavaScript here will be loaded for all users on every page load. */


/*FOOTER*/

$(function() {
    var imgBase = "https://wiki.atronia.eu/images/";
    var img = {
        fb: imgBase + "5/55/Facebook.png", ln: imgBase + "9/99/Linkdin.png", ig: imgBase + "b/b7/Instagram.png",
        igus: imgBase + "3/37/Igus.png", cp: imgBase + "9/92/Compete.png", ce: imgBase + "c/ce/Centro.png",
        ps: imgBase + "2/20/Pessoas.png", pr: imgBase + "4/42/Prr.png"
    };

    var html = 
    '<div id="custom-atronia-footer">' +
        '<div class="atronia-scrolling-container">' +
            '<div class="atronia-scrolling-content">' +
                '<span>TECH THAT MAKES SENSE. • TECH THAT MAKES SENSE. • </span>' +
                '<span>TECH THAT MAKES SENSE. • TECH THAT MAKES SENSE. • </span>' +
            '</div>' +
        '</div>' +
        
        '<div style="max-width:1200px; margin:0 auto; padding:60px 20px;">' +
            '<div style="display:flex; flex-wrap:wrap; justify-content:space-between; margin-bottom:60px;">' +
                '<div style="flex:1; min-width:250px;">' +
                    '<h4 style="color:#fff; margin-bottom:15px; border:none;">Visit but keep in mind we\'re busy</h4>' +
                    '<p style="font-size:14px;">Rua do Norte 9,<br>Ílhavo, 3830-167, Portugal</p>' +
                    '<h4 style="color:#fff; margin:30px 0 15px; border:none;">Contact Us</h4>' +
                    '<p style="font-size:14px;">+351 934 886 253<br>info@atronia.eu</p>' +
                    '<div style="display:flex; gap:15px; margin-top:20px">' +
                        '<a href="#"><img src="'+img.fb+'" width="22" style="filter:invert(1)"></a>' +
                        '<a href="#"><img src="'+img.ln+'" width="22" style="filter:invert(1)"></a>' +
                        '<a href="#"><img src="'+img.ig+'" width="22" style="filter:invert(1)"></a>' +
                    '</div>' +
                '</div>' +
                '<div style="flex:2; display:flex; justify-content:space-between; flex-wrap:wrap;">' +
                    '<div><h4 style="color:#fff; border:none;">Menu</h4><a href="/">Home</a><br><a href="/about-us/">About us</a><br><a href="/hardware/">Hardware</a><br><a href="/solutions/">Solutions</a></div>' +
                    '<div><h4 style="color:#fff; border:none;">Solutions</h4><a href="/solutions/aquaguard/">Aquaguard</a><br><a href="/solutions/firefly/">Firefly</a><br><a href="/solutions/melisafe/">Melisafe</a><br><a href="/solutions/prevent/">Prevent</a></div>' +
                    '<div><h4 style="color:#fff; border:none;">Shop</h4><a href="/product/monarch/">Monarch</a><br><a href="/product/atlas/">Atlas</a><br><a href="/probes/">Probes</a><br><a href="/accessories/">Accessories</a></div>' +
                    '<div><h4 style="color:#fff; border:none;">Support</h4><a href="https://wiki.atronia.eu/">Wiki</a></div>' +
                '</div>' +
            '</div>' +
        '</div>' +

        // Linha Separadora Interna (Largura Total do Fundo)
        '<div style="border-top:1px solid rgba(255,255,255,0.2); width:100%;"></div>' +

        '<div style="max-width:1200px; margin:0 auto; padding:50px 20px; display:flex; gap:60px; align-items:flex-start;">' +
            '<div><p style="font-size:10px; opacity:0.6; margin-bottom:15px;">POWERED BY:</p><img src="'+img.igus+'" style="height:35px; width:auto;"></div>' +
            '<div><p style="font-size:10px; opacity:0.6; margin-bottom:15px;">CO-SPONSORED BY:</p>' +
                '<div style="display:flex; flex-wrap:wrap; gap:20px 40px; align-items:center;">' +
                    '<img src="'+img.cp+'" style="height:35px; width:auto;"><img src="'+img.ce+'" style="height:35px; width:auto;">' +
                    '<img src="'+img.ps+'" style="height:35px; width:auto;"><img src="'+img.pr+'" style="height:35px; width:auto;">' +
                '</div>' +
            '</div>' +
        '</div>' +
    '</div>';

    $('#custom-atronia-footer').remove();
    $('body').append(html);
});

/*FIM DO FOOTER*/



// 4. GOOGLE ANALYTICS (Fora do $(function) para carregar logo)
var gaScript = document.createElement('script');
gaScript.src = "https://www.googletagmanager.com/gtag/js?id=G-MX174P23PW";
gaScript.async = true;
document.head.appendChild(gaScript);
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-MX174P23PW');