MediaWiki:Common.js: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
$(function() { | $(function() { | ||
// 1. DEFINIÇÃO DO HTML DO FOOTER | // 1. DEFINIÇÃO DO HTML DO FOOTER | ||
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; padding: 60px 40px; font-family: sans-serif; clear: both;">' + | ||
| Line 46: | Line 46: | ||
'</div>'; | '</div>'; | ||
// 2. INJEÇÃO DO FOOTER | // 2. INJEÇÃO DO FOOTER NO FUNDO ABSOLUTO (Evita duplicados) | ||
// Primeiro removemos qualquer versão anterior para não acumular no cache | |||
$('#custom-atronia-footer').remove(); | |||
// Injetamos no final do body para ficar fora da estrutura da skin | |||
$('body').append(footerHTML); | |||
// 3. BOTÃO DE COPIAR MODERNO | // 3. BOTÃO DE COPIAR MODERNO | ||
| Line 68: | Line 71: | ||
}); | }); | ||
}); | }); | ||
// 4. GOOGLE ANALYTICS (Fora do $(function) para carregar logo) | // 4. GOOGLE ANALYTICS (Fora do $(function) para carregar logo) | ||