Diferencia entre revisiones de «MediaWiki:Common.js»
Ir a la navegación
Ir a la búsqueda
Sin resumen de edición Etiqueta: Revertido |
Sin resumen de edición Etiqueta: Revertido |
||
Línea 19: | Línea 19: | ||
}); | }); | ||
//Botón Ko-Fi | //Botón Ko-Fi | ||
$(document).ready(function () { | $(document).ready(function () { | ||
// Creamos el botón | // Creamos el botón | ||
var boton = $('<div style=" | var boton = $('<div class="btn-container"><a title="Support me on ko-fi.com" class="kofi-button customize-unpreviewable" style="background-color:#bb1919;" href="https://ko-fi.com/Q5Q41IWYVQ" target="_blank"> <span class="kofitext"><img src="https://storage.ko-fi.com/cdn/cup-border.png" alt="Ko-fi donations" class="kofiimg">¿Te es útil? ¡Apóyanos!</span></a></div>'); | ||
$('body').append(boton);}); | |||
'); | |||
$('body').append(boton); |
Revisión del 11:56 27 ago 2025
/* Cualquier código JavaScript escrito aquí se cargará para todos los usuarios en cada carga de página */ // Google Analytics (function() { var script = document.createElement('script'); script.async = true; script.src = 'https://www.googletagmanager.com/gtag/js?id=G-8B8B016NKN'; document.head.appendChild(script); window.dataLayer = window.dataLayer || []; function gtag(){ dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'G-8B8B016NKN'); })(); //Abrir enlaces externos en nueva ventana/pestaña $(function () { $('a.external').attr('target', '_blank'); }); //Botón Ko-Fi $(document).ready(function () { // Creamos el botón var boton = $('<div class="btn-container"><a title="Support me on ko-fi.com" class="kofi-button customize-unpreviewable" style="background-color:#bb1919;" href="https://ko-fi.com/Q5Q41IWYVQ" target="_blank"> <span class="kofitext"><img src="https://storage.ko-fi.com/cdn/cup-border.png" alt="Ko-fi donations" class="kofiimg">¿Te es útil? ¡Apóyanos!</span></a></div>'); $('body').append(boton);});