MediaWiki:Common.js: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 5: | Line 5: | ||
$(function() { | $(function() { | ||
// Caminhos das imagens | |||
var imgBase = "https://wiki.atronia.eu/images/"; | |||
var img = { | var img = { | ||
fb: imgBase + "5/55/Facebook.png", | |||
ln: imgBase + "9/99/Linkdin.png", | |||
ig: imgBase + "b/b7/Instagram.png", | |||
igus: | 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 | var html = | ||
'<div id="custom-atronia-footer">' + | |||
// 1. Scroll | |||
'<div class="atronia-scrolling-container">' + | '<div class="atronia-scrolling-container">' + | ||
'<div class="atronia-scrolling-content">' + | '<div class="atronia-scrolling-content">' + | ||
'<span> | '<span>TECH THAT MAKES SENSE. • TECH THAT MAKES SENSE. • </span>' + | ||
'<span> | '<span>TECH THAT MAKES SENSE. • TECH THAT MAKES SENSE. • </span>' + | ||
'</div>' + | '</div>' + | ||
'</div>' | '</div>' + | ||
// 2. Conteúdo Principal | |||
'<div class="atronia-footer-main">' + | |||
'<div class="atronia-col" style="flex: 1.5;">' + | |||
'<h4>Visit but keep in mind we\'re busy</h4>' + | '<h4>Visit but keep in mind we\'re busy</h4>' + | ||
'<p>Rua do Norte 9,<br>Ílhavo, 3830-167 | '<p>Rua do Norte 9,<br>Ílhavo, 3830-167, Portugal</p>' + | ||
'<h4 style="margin-top: | '<h4 style="margin-top:30px">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=" | '<div style="display:flex; gap:15px; margin-top:15px">' + | ||
'<a href=" | '<a href="#"><img src="'+img.fb+'" width="25" style="filter:invert(1)"></a>' + | ||
'<a href=" | '<a href="#"><img src="'+img.ln+'" width="25" style="filter:invert(1)"></a>' + | ||
'<a href=" | '<a href="#"><img src="'+img.ig+'" width="25" style="filter:invert(1)"></a>' + | ||
'</div>' + | '</div>' + | ||
'</div>' + | '</div>' + | ||
'<div class="atronia-col"><h4>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 class="atronia-col"><h4>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 class="atronia-col"><h4>Shop</h4>' + | |||
'<a href="/product/monarch-gateway/">Monarch</a><br><a href="/product/atlas-sbc/">Atlas</a><br><a href="/product-category/probes/">Probes</a><br><a href="/product-category/accessories/">Accessories</a>' + | |||
'</div>' + | |||
'<div class="atronia-col"><h4>Support</h4>' + | |||
'<a href="https://wiki.atronia.eu/">Wiki</a>' + | |||
'</div>' + | '</div>' + | ||
'</div>' + | '</div>' + | ||
'<hr style="border: 0; border-top: 1px solid rgba(255,255,255,0.1); margin: 40px | |||
'<div style="display: flex; flex-wrap: wrap; | '<hr style="border:0; border-top:1px solid rgba(255,255,255,0.1); margin:0 40px">' + | ||
'<div><p style="font-size: | |||
'<div><p style="font-size: | // 3. Logos | ||
'<div style="padding: 40px; display: flex; flex-wrap: wrap; gap: 50px; max-width: 1200px; margin: 0 auto;">' + | |||
'<div><p style="font-size:10px; opacity:0.6">POWERED BY:</p><img src="'+img.igus+'" height="40"></div>' + | |||
'<div><p style="font-size:10px; opacity:0.6">CO-SPONSORED BY:</p>' + | |||
'<div class="sponsor-grid">' + | '<div class="sponsor-grid">' + | ||
'<img src="'+img. | '<img src="'+img.cp+'" class="footer-sponsor-img"><img src="'+img.ce+'" class="footer-sponsor-img">' + | ||
'<img src="'+img. | '<img src="'+img.ps+'" class="footer-sponsor-img"><img src="'+img.pr+'" class="footer-sponsor-img">' + | ||
'</div>' + | '</div>' + | ||
'</div>' + | '</div>' + | ||
| Line 57: | Line 73: | ||
'</div>'; | '</div>'; | ||
$(' | // Inserção limpa | ||
$('body').append( | $('#custom-atronia-footer').remove(); | ||
$('body').append(html); | |||
}); | }); | ||
Revision as of 09:12, 29 April 2026
/* Any JavaScript here will be loaded for all users on every page load. */
/*FOOTER*/
$(function() {
// Caminhos das imagens
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">' +
// 1. Scroll
'<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
'<div class="atronia-footer-main">' +
'<div class="atronia-col" style="flex: 1.5;">' +
'<h4>Visit but keep in mind we\'re busy</h4>' +
'<p>Rua do Norte 9,<br>Ílhavo, 3830-167, Portugal</p>' +
'<h4 style="margin-top:30px">Contact Us</h4>' +
'<p>+351 934 886 253<br>info@atronia.eu</p>' +
'<div style="display:flex; gap:15px; margin-top:15px">' +
'<a href="#"><img src="'+img.fb+'" width="25" style="filter:invert(1)"></a>' +
'<a href="#"><img src="'+img.ln+'" width="25" style="filter:invert(1)"></a>' +
'<a href="#"><img src="'+img.ig+'" width="25" style="filter:invert(1)"></a>' +
'</div>' +
'</div>' +
'<div class="atronia-col"><h4>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 class="atronia-col"><h4>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 class="atronia-col"><h4>Shop</h4>' +
'<a href="/product/monarch-gateway/">Monarch</a><br><a href="/product/atlas-sbc/">Atlas</a><br><a href="/product-category/probes/">Probes</a><br><a href="/product-category/accessories/">Accessories</a>' +
'</div>' +
'<div class="atronia-col"><h4>Support</h4>' +
'<a href="https://wiki.atronia.eu/">Wiki</a>' +
'</div>' +
'</div>' +
'<hr style="border:0; border-top:1px solid rgba(255,255,255,0.1); margin:0 40px">' +
// 3. Logos
'<div style="padding: 40px; display: flex; flex-wrap: wrap; gap: 50px; max-width: 1200px; margin: 0 auto;">' +
'<div><p style="font-size:10px; opacity:0.6">POWERED BY:</p><img src="'+img.igus+'" height="40"></div>' +
'<div><p style="font-size:10px; opacity:0.6">CO-SPONSORED BY:</p>' +
'<div class="sponsor-grid">' +
'<img src="'+img.cp+'" class="footer-sponsor-img"><img src="'+img.ce+'" class="footer-sponsor-img">' +
'<img src="'+img.ps+'" class="footer-sponsor-img"><img src="'+img.pr+'" class="footer-sponsor-img">' +
'</div>' +
'</div>' +
'</div>' +
'</div>';
// Inserção limpa
$('#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');