Jump to content

MediaWiki:Common.js: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
/* Qualquer JavaScript aqui será carregado para todos os utilizadores. */
/* Qualquer JavaScript aqui será carregado para todos os utilizadores. */
/* Any JavaScript here will be loaded for all users on every page load. */


$(function() {
$(function() {
     // 1. LINKS DAS IMAGENS ORIGINAIS
     // 1. LINKS DAS IMAGENS ORIGINAIS DA WIKI
     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 18: Line 20:
         '<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
             // COLUNA ESQUERDA: CONTACTOS
             '<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; color: #ffffff !important;">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: #ffffff !important; 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; color: #ffffff !important;">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: #ffffff !important; 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 (Custo de chamada para rede móvel nacional)<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 31: Line 33:
             '</div>' +
             '</div>' +


             // COLUNAS DE LINKS
             // COLUNAS DE LINKS (DIREITA)
             '<div style="flex: 3; display: flex; flex-wrap: wrap; justify-content: space-between;">' +
             '<div style="flex: 3; display: flex; flex-wrap: wrap; justify-content: space-between;">' +
                 '<div class="atronia-col"><h4>Menu</h4><a href="https://atronia.eu/">Home</a><a href="https://atronia.eu/about-us/">About us</a><a href="https://atronia.eu/hardware/">Hardware</a><a href="https://atronia.eu/solutions/">Solutions</a></div>' +
                 '<div class="atronia-col"><h4>Menu</h4><a href="https://atronia.eu/">Home</a><a href="https://atronia.eu/about-us/">About us</a><a href="https://atronia.eu/hardware/">Hardware</a><a href="https://atronia.eu/solutions/">Solutions</a></div>' +
Line 42: Line 44:
         '<hr style="border: 0; border-top: 1px solid rgba(255,255,255,0.2); margin: 40px 0;">' +
         '<hr style="border: 0; border-top: 1px solid rgba(255,255,255,0.2); margin: 40px 0;">' +


         // LOGOS
         // ÁREA DE 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>' +
Line 59: Line 61:
         '</div>' +
         '</div>' +


        // ÁREA LEGAL
         '<div style="max-width: 1400px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1);">' +
         '<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/" class="footer-legal-link">Livro de Reclamações</a> | ' +
             '<a href="https://atronia.eu/livro-de-reclamacoes/" class="footer-legal-link">Livro de Reclamações</a> | ' +
Line 66: Line 69:
     '</div>';
     '</div>';


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