Jump to content

MediaWiki:Common.js: Difference between revisions

No edit summary
No edit summary
Line 2: Line 2:


$(function() {
$(function() {
     // 1. LINKS DAS IMAGENS (Usando os ficheiros originais para evitar erros de miniatura)
     // 1. LINKS DAS IMAGENS ORIGINAIS
     var img = {
     var img = {
         instagram: "https://wiki.atronia.eu/images/b/b7/Instagram.png",
         instagram: "https://wiki.atronia.eu/images/b/b7/Instagram.png",
Line 15: Line 15:


     var footerHTML =  
     var footerHTML =  
     '<div id="custom-atronia-footer" style="background-color: #121e1c; color: #ffffff; padding: 60px 40px; font-family: sans-serif; clear: both;">' +
     '<div id="custom-atronia-footer" style="background-color: #121e1c; color: #ffffff !important; padding: 60px 40px; font-family: sans-serif; clear: both;">' +
         '<div class="atronia-footer-container" style="display: flex; flex-wrap: wrap; justify-content: space-between; max-width: 1400px; margin: 0 auto;">' +
         '<div class="atronia-footer-container" style="display: flex; flex-wrap: wrap; justify-content: space-between; max-width: 1400px; margin: 0 auto;">' +
              
              
             // COLUNA ESQUERDA: CONTACTOS
             // COLUNA ESQUERDA
             '<div style="flex: 2; min-width: 300px; margin-bottom: 40px;">' +
             '<div style="flex: 2; min-width: 300px; margin-bottom: 40px;">' +
                 '<h4 style="font-size: 14px; font-weight: bold; margin-bottom: 20px;">Visit but keep in mind we\'re busy</h4>' +
                 '<h4 style="font-size: 14px; font-weight: bold; margin-bottom: 20px; color: #ffffff !important;">Visit but keep in mind we\'re busy</h4>' +
                 '<p style="font-size: 14px; color: #ccc; line-height: 1.6;">Rua do Norte 9,<br>Ílhavo, 3830-167<br>Portugal</p>' +
                 '<p style="font-size: 14px; color: #ffffff !important; line-height: 1.6;">Rua do Norte 9,<br>Ílhavo, 3830-167<br>Portugal</p>' +
                 '<h4 style="font-size: 14px; font-weight: bold; margin-top: 35px; margin-bottom: 20px;">Contact Us</h4>' +
                 '<h4 style="font-size: 14px; font-weight: bold; margin-top: 35px; margin-bottom: 20px; color: #ffffff !important;">Contact Us</h4>' +
                 '<p style="font-size: 14px; color: #ccc; line-height: 1.6;">+351 934 886 253<br>info@atronia.eu</p>' +
                 '<p style="font-size: 14px; color: #ffffff !important; line-height: 1.6;">+351 934 886 253<br>info@atronia.eu</p>' +
                 '<div style="margin-top: 25px; display: flex; gap: 15px;">' +
                 '<div style="margin-top: 25px; display: flex; gap: 15px;">' +
                     '<a href="https://facebook.com/atroniatech" target="_blank"><img src="'+img.facebook+'" width="30" style="filter: brightness(0) invert(1);"></a>' +
                     '<a href="https://facebook.com/atroniatech" target="_blank"><img src="'+img.facebook+'" width="30" style="filter: brightness(0) invert(1);"></a>' +
Line 40: Line 40:
         '</div>' +
         '</div>' +


         '<hr style="border: 0; border-top: 1px solid rgba(255,255,255,0.1); margin: 40px 0;">' +
         '<hr style="border: 0; border-top: 1px solid rgba(255,255,255,0.2); margin: 40px 0;">' +


         // LOGOS POWERED & CO-SPONSORED
         // LOGOS
         '<div style="display: flex; flex-wrap: wrap; align-items: flex-start; max-width: 1400px; margin: 0 auto; gap: 60px;">' +
         '<div style="display: flex; flex-wrap: wrap; align-items: flex-start; max-width: 1400px; margin: 0 auto; gap: 60px;">' +
             '<div>' +
             '<div>' +
                 '<p style="font-size: 11px; color: #888; text-transform: uppercase; margin-bottom: 15px;">Powered by:</p>' +
                 '<p style="font-size: 11px; color: #ffffff !important; text-transform: uppercase; margin-bottom: 15px; opacity: 0.8;">Powered by:</p>' +
                 '<img src="'+img.igus+'" style="width: 140px; height: auto;">' +
                 '<img src="'+img.igus+'" style="width: 140px; height: auto;">' +
             '</div>' +
             '</div>' +
             '<div style="flex: 1;">' +
             '<div style="flex: 1;">' +
                 '<p style="font-size: 11px; color: #888; text-transform: uppercase; margin-bottom: 15px;">Co-sponsored by:</p>' +
                 '<p style="font-size: 11px; color: #ffffff !important; text-transform: uppercase; margin-bottom: 15px; opacity: 0.8;">Co-sponsored by:</p>' +
                 '<div style="display: flex; flex-wrap: wrap; gap: 20px; align-items: center; opacity: 0.9;">' +
                 '<div style="display: flex; flex-wrap: wrap; gap: 20px; align-items: center;">' +
                     '<img src="'+img.compete+'" style="height: 45px; width: auto;">' +
                     '<img src="'+img.compete+'" style="height: 45px; width: auto;">' +
                     '<img src="'+img.centro+'" style="height: 45px; width: auto;">' +
                     '<img src="'+img.centro+'" style="height: 45px; width: auto;">' +
Line 59: Line 59:
         '</div>' +
         '</div>' +


         '<div style="max-width: 1400px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05);">' +
         '<div style="max-width: 1400px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1);">' +
             '<a href="https://atronia.eu/livro-de-reclamacoes/" style="color: #ffffff; font-weight: bold; text-decoration: underline; font-size: 13px; margin-right: 15px;">Livro de Reclamações</a>' +
             '<a href="https://atronia.eu/livro-de-reclamacoes/" class="footer-legal-link">Livro de Reclamações</a> | ' +
             '<a href="https://atronia.eu/privacy-policy/" style="color: #ffffff; font-weight: bold; text-decoration: underline; font-size: 13px;">Privacy Policy</a>' +
             '<a href="https://atronia.eu/privacy-policy/" class="footer-legal-link">Privacy Policy</a>' +
             '<p style="font-size: 11px; color: #555; margin-top: 20px;">This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.</p>' +
             '<p style="font-size: 11px; color: #ffffff !important; margin-top: 20px; opacity: 0.6;">This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.</p>' +
         '</div>' +
         '</div>' +
     '</div>';
     '</div>';


    // Injeção
     $('#custom-atronia-footer').remove();
     $('#custom-atronia-footer').remove();
     $('body').append(footerHTML);
     $('body').append(footerHTML);