MediaWiki:Common.js: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 14: | Line 14: | ||
prr: "https://wiki.atronia.eu/images/4/42/Prr.png", | prr: "https://wiki.atronia.eu/images/4/42/Prr.png", | ||
igus: "https://wiki.atronia.eu/images/3/37/Igus.png" | igus: "https://wiki.atronia.eu/images/3/37/Igus.png" | ||
}; | }; | ||
| Line 32: | Line 25: | ||
var footerHTML = | var footerHTML = | ||
'<div id="custom-atronia-footer" style="padding: 60px 40px; font-family: sans-serif; clear: both;">' + | '<div id="custom-atronia-footer" style="background-color: #121e1c; padding: 60px 40px; font-family: sans-serif; clear: both;">' + | ||
'<div style="display: flex; flex-wrap: wrap; justify-content: space-between; max-width: 1400px; margin: 0 auto;">' + | '<div style="display: flex; flex-wrap: wrap; justify-content: space-between; max-width: 1400px; margin: 0 auto;">' + | ||
// Contactos | // Contactos | ||
'<div style="flex: | '<div style="flex: 1.5; min-width: 250px; margin-bottom: 40px;">' + | ||
'<h4 style="font-weight: bold; margin-bottom: | '<h4 style="font-weight: bold; margin-bottom: 15px;">Visit but keep in mind we\'re busy</h4>' + | ||
'<p>Rua do Norte 9,<br>Ílhavo, 3830-167<br>Portugal</p>' + | '<p style="line-height: 1.6;">Rua do Norte 9,<br>Ílhavo, 3830-167<br>Portugal</p>' + | ||
'<h4 style="font-weight: bold; margin-top: | '<h4 style="font-weight: bold; margin-top: 30px; margin-bottom: 15px;">Contact Us</h4>' + | ||
'<p>+351 934 886 253<br>info@atronia.eu</p>' + | '<p>+351 934 886 253<br>info@atronia.eu</p>' + | ||
'<div style="margin-top: | '<div style="margin-top: 20px; display: flex; gap: 15px;">' + | ||
'<a href="https://facebook.com/atroniatech" target="_blank"><img src="'+img.facebook+'" width=" | '<a href="https://facebook.com/atroniatech" target="_blank"><img src="'+img.facebook+'" width="25" style="filter: brightness(0) invert(1);"></a>' + | ||
'<a href="https://linkedin.com/company/atronia" target="_blank"><img src="'+img.linkedin+'" width=" | '<a href="https://linkedin.com/company/atronia" target="_blank"><img src="'+img.linkedin+'" width="25" style="filter: brightness(0) invert(1);"></a>' + | ||
'<a href="https://instagram.com/atroniatech" target="_blank"><img src="'+img.instagram+'" width=" | '<a href="https://instagram.com/atroniatech" target="_blank"><img src="'+img.instagram+'" width="25" style="filter: brightness(0) invert(1);"></a>' + | ||
'</div>' + | '</div>' + | ||
'</div>' + | '</div>' + | ||
// Menus | // Menus Organizáveis | ||
'<div style="flex: 3; display: flex; flex-wrap: wrap; | '<div style="flex: 3; display: flex; flex-wrap: wrap; gap: 20px;">' + | ||
'<div class="atronia-col"><h4>Menu</h4><a href="https://atronia.eu/">Home</a><a href="https://atronia.eu/about-us/">About us</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></div>' + | ||
'<div class="atronia-col"><h4>Solutions</h4><a href="https://atronia.eu/solutions/aquaguard/">Aquaguard</a><a href="https://atronia.eu/solutions/firefly/">Firefly</a></div>' + | '<div class="atronia-col"><h4>Solutions</h4><a href="https://atronia.eu/solutions/aquaguard/">Aquaguard</a><a href="https://atronia.eu/solutions/firefly/">Firefly</a></div>' + | ||
| Line 57: | Line 50: | ||
// Parceiros | // Parceiros | ||
'<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; opacity: 0.6; margin-bottom: 15px;">POWERED BY:</p><img src="'+img.igus+'" style="height: 40px;"></div>' + | ||
'<div><p style="font-size: 11px; opacity: 0.6; margin-bottom: 15px;">CO-SPONSORED BY:</p>' + | |||
'<div | |||
'<div class="sponsor-grid">' + | '<div class="sponsor-grid">' + | ||
' | '<img src="'+img.compete+'" class="footer-sponsor-img"><img src="'+img.centro+'" class="footer-sponsor-img">' + | ||
'<img src="'+img.pessoas+'" class="footer-sponsor-img"><img src="'+img.prr+'" class="footer-sponsor-img">' + | |||
' | |||
'</div>' + | '</div>' + | ||
'</div>' + | '</div>' + | ||
| Line 73: | Line 60: | ||
'</div>'; | '</div>'; | ||
$('.atronia-scrolling-container, #custom-atronia-footer').remove(); | $('.atronia-scrolling-container, #custom-atronia-footer').remove(); | ||
$('body').append(scrollingHTML + footerHTML); | $('body').append(scrollingHTML + footerHTML); | ||
Revision as of 09:06, 29 April 2026
/* Any JavaScript here will be loaded for all users on every page load. */
/*FOOTER*/
$(function() {
var img = {
instagram: "https://wiki.atronia.eu/images/b/b7/Instagram.png",
linkedin: "https://wiki.atronia.eu/images/9/99/Linkdin.png",
facebook: "https://wiki.atronia.eu/images/5/55/Facebook.png",
centro: "https://wiki.atronia.eu/images/c/ce/Centro.png",
compete: "https://wiki.atronia.eu/images/9/92/Compete.png",
pessoas: "https://wiki.atronia.eu/images/2/20/Pessoas.png",
prr: "https://wiki.atronia.eu/images/4/42/Prr.png",
igus: "https://wiki.atronia.eu/images/3/37/Igus.png"
};
var scrollingHTML =
'<div class="atronia-scrolling-container">' +
'<div class="atronia-scrolling-content">' +
'<span>Tech that makes sense. • Tech that makes sense. • Tech that makes sense. • </span>' +
'<span>Tech that makes sense. • Tech that makes sense. • Tech that makes sense. • </span>' +
'</div>' +
'</div>';
var footerHTML =
'<div id="custom-atronia-footer" style="background-color: #121e1c; padding: 60px 40px; font-family: sans-serif; clear: both;">' +
'<div style="display: flex; flex-wrap: wrap; justify-content: space-between; max-width: 1400px; margin: 0 auto;">' +
// Contactos
'<div style="flex: 1.5; min-width: 250px; margin-bottom: 40px;">' +
'<h4 style="font-weight: bold; margin-bottom: 15px;">Visit but keep in mind we\'re busy</h4>' +
'<p style="line-height: 1.6;">Rua do Norte 9,<br>Ílhavo, 3830-167<br>Portugal</p>' +
'<h4 style="font-weight: bold; margin-top: 30px; margin-bottom: 15px;">Contact Us</h4>' +
'<p>+351 934 886 253<br>info@atronia.eu</p>' +
'<div style="margin-top: 20px; display: flex; gap: 15px;">' +
'<a href="https://facebook.com/atroniatech" target="_blank"><img src="'+img.facebook+'" width="25" style="filter: brightness(0) invert(1);"></a>' +
'<a href="https://linkedin.com/company/atronia" target="_blank"><img src="'+img.linkedin+'" width="25" style="filter: brightness(0) invert(1);"></a>' +
'<a href="https://instagram.com/atroniatech" target="_blank"><img src="'+img.instagram+'" width="25" style="filter: brightness(0) invert(1);"></a>' +
'</div>' +
'</div>' +
// Menus Organizáveis
'<div style="flex: 3; display: flex; flex-wrap: wrap; gap: 20px;">' +
'<div class="atronia-col"><h4>Menu</h4><a href="https://atronia.eu/">Home</a><a href="https://atronia.eu/about-us/">About us</a></div>' +
'<div class="atronia-col"><h4>Solutions</h4><a href="https://atronia.eu/solutions/aquaguard/">Aquaguard</a><a href="https://atronia.eu/solutions/firefly/">Firefly</a></div>' +
'<div class="atronia-col"><h4>Shop</h4><a href="https://atronia.eu/product/monarch-gateway/">Monarch</a><a href="https://atronia.eu/product/atlas-sbc/">Atlas</a></div>' +
'<div class="atronia-col"><h4>Support</h4><a href="https://wiki.atronia.eu/">Wiki</a></div>' +
'</div>' +
'</div>' +
'<hr style="border: 0; border-top: 1px solid rgba(255,255,255,0.1); margin: 40px 0;">' +
// Parceiros
'<div style="display: flex; flex-wrap: wrap; align-items: flex-start; max-width: 1400px; margin: 0 auto; gap: 60px;">' +
'<div><p style="font-size: 11px; opacity: 0.6; margin-bottom: 15px;">POWERED BY:</p><img src="'+img.igus+'" style="height: 40px;"></div>' +
'<div><p style="font-size: 11px; opacity: 0.6; margin-bottom: 15px;">CO-SPONSORED BY:</p>' +
'<div class="sponsor-grid">' +
'<img src="'+img.compete+'" class="footer-sponsor-img"><img src="'+img.centro+'" class="footer-sponsor-img">' +
'<img src="'+img.pessoas+'" class="footer-sponsor-img"><img src="'+img.prr+'" class="footer-sponsor-img">' +
'</div>' +
'</div>' +
'</div>' +
'</div>';
$('.atronia-scrolling-container, #custom-atronia-footer').remove();
$('body').append(scrollingHTML + footerHTML);
});
/*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');