Jump to content

MediaWiki:Common.js: Difference between revisions

From ATRONIA Wiki
No edit summary
No edit summary
Line 63: Line 63:
     '<div style="flex: 0 0 auto;">' +
     '<div style="flex: 0 0 auto;">' +
         '<p style="font-size:11px; opacity:0.6; color:#ffffff !important; margin-bottom:20px; font-weight:bold; text-transform: uppercase;">Powered by:</p>' +
         '<p style="font-size:11px; opacity:0.6; color:#ffffff !important; margin-bottom:20px; font-weight:bold; text-transform: uppercase;">Powered by:</p>' +
         '<img src="'+img.igus+'" style="height: 55px; width: auto; display: block;">' +
         '<img src="'+img.igus+'" style="height: 60px; width: auto; display: block;">' +
     '</div>' +
     '</div>' +



Revision as of 09:53, 29 April 2026

/* 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"
    };

    // Estilos comuns
    var linkStyle = 'style="color: #ffffff !important; display: block; margin-bottom: 10px; font-size: 14px;"';
    var titleStyle = 'style="color: #ffffff !important; font-weight: bold; margin-bottom: 20px; font-size: 16px; border: none;"';

    var html = 
    '<div id="custom-atronia-footer">' +
        // 1. SCROLLING TEXT
        '<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>' +

        // 2. CONTEÚDO PRINCIPAL (CONTACTOS E MENUS)
        '<div style="display: flex; flex-wrap: wrap; justify-content: space-between; max-width: 1300px; margin: 0 auto; padding: 60px 20px; color: #ffffff;">' +
            // Contactos
            '<div style="flex: 1.5; min-width: 300px;">' +
                '<h4 '+titleStyle+'>Visit but keep in mind we\'re busy</h4>' +
                '<p style="color: #ffffff !important;">Rua do Norte 9,<br>Ílhavo, 3830-167, Portugal</p>' +
                '<h4 '+titleStyle+' style="margin-top:30px">Contact Us</h4>' +
                '<p style="color: #ffffff !important;">+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="25" style="filter: brightness(0) invert(1) !important;"></a>' +
                    '<a href="#"><img src="'+img.ln+'" width="25" style="filter: brightness(0) invert(1) !important;"></a>' +
                    '<a href="#"><img src="'+img.ig+'" width="25" style="filter: brightness(0) invert(1) !important;"></a>' +
                '</div>' +
            '</div>' +
            // Menus
            '<div style="flex: 3; display: flex; justify-content: space-between; flex-wrap: wrap;">' +
                '<div><h4 '+titleStyle+'>Menu</h4><a '+linkStyle+' href="/">Home</a><a '+linkStyle+' href="/about-us/">About us</a><a '+linkStyle+' href="/hardware/">Hardware</a><a '+linkStyle+' href="/solutions/">Solutions</a></div>' +
                '<div><h4 '+titleStyle+'>Solutions</h4><a '+linkStyle+' href="/solutions/aquaguard/">Aquaguard</a><a '+linkStyle+' href="/solutions/firefly/">Firefly</a><a '+linkStyle+' href="/solutions/melisafe/">Melisafe</a><a '+linkStyle+' href="/solutions/prevent/">Prevent</a></div>' +
                '<div><h4 '+titleStyle+'>Shop</h4><a '+linkStyle+' href="/product/monarch-gateway/">Monarch</a><a '+linkStyle+' href="/product/atlas-sbc/">Atlas</a><a '+linkStyle+' href="/product-category/probes/">Probes</a><a '+linkStyle+' href="/product-category/accessories/">Accessories</a></div>' +
                '<div><h4 '+titleStyle+'>Support</h4><a '+linkStyle+' href="https://wiki.atronia.eu/">Wiki</a></div>' +
            '</div>' +
        '</div>' +

        // Linha Separadora Intensa
'<div class="atronia-full-width-line"></div>' +

// Secção de Logos Aumentada
'<div style="padding: 50px 0; max-width: 1300px; margin: 0 auto; display: flex; align-items: flex-start; gap: 100px;">' +
    
    // Bloco Powered By
    '<div style="flex: 0 0 auto;">' +
        '<p style="font-size:11px; opacity:0.6; color:#ffffff !important; margin-bottom:20px; font-weight:bold; text-transform: uppercase;">Powered by:</p>' +
        '<img src="'+img.igus+'" style="height: 60px; width: auto; display: block;">' +
    '</div>' +

    // Bloco Co-sponsored By (Grelha 2x2 com logos maiores)
    '<div style="flex: 1;">' +
        '<p style="font-size:11px; opacity:0.6; color:#ffffff !important; margin-bottom:20px; font-weight:bold; text-transform: uppercase;">Co-sponsored by:</p>' +
        
        '<div style="display: grid; grid-template-columns: repeat(2, auto); gap: 40px 70px; justify-content: start; align-items: center;">' +
            '<img src="'+img.cp+'" style="height: 50px; width: auto; object-fit: contain;">' +
            '<img src="'+img.ce+'" style="height: 50px; width: auto; object-fit: contain;">' +
            '<img src="'+img.ps+'" style="height: 50px; width: auto; object-fit: contain;">' +
            '<img src="'+img.pr+'" style="height: 50px; width: auto; object-fit: contain;">' +
        '</div>' +
    '</div>' +
'</div>';

    // Limpeza e Inserção
    $('#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');