Nota: Después de publicar, quizás necesite actualizar la caché de su navegador para ver los cambios.
- Firefox/Safari: Mantenga presionada la tecla Shift mientras pulsa el botón Actualizar, o presiona Ctrl+F5 o Ctrl+R (⌘+R en Mac)
- Google Chrome: presione Ctrl+Shift+R (⌘+Shift+R en Mac)
- Internet Explorer/Edge: mantenga presionada Ctrl mientras pulsa Actualizar, o presione Ctrl+F5
- Opera: Presiona Ctrl+F5.
/* Agrega una notificación en oasis. Original de [[w:c:es.pokemon:User:Ciencia Al Poder]] y modificado por [[w:es:User:Bola]] */
window.WikiNotification = {
article: 'Digimon Wiki:Votaciones',
key: 'WNotif',
init: function() {
if (!document.cookie || document.cookie.length == 0) return;
var pref = $.cookies.get(WikiNotification.key);
if (pref) return;
WikiNotification.render();
},
render: function() {
var tb = $('#WikiaFooter').children('div.toolbar');
if (!tb.exists()) return;
var nf = $('#WikiaNotifications');
if (!nf.exists()) {
tb.prepend('<ul id="WikiaNotifications" class="WikiaNotifications"></ul>');
nf = $('#WikiaNotifications');
$(document.body).addClass('notifications');
}
var sn = $('<li><div data-type="100"><a class="sprite close-notification"></a>¡Las votaciones han vuelto a Digimon Wiki! <a href="'+wgServer+wgArticlePath.replace('$1',WikiNotification.article.replace(/\s/g,'_'))+'" title="'+WikiNotification.article+'">Si tienes más de 50 ediciones... ¡puedes votar aquí!</a>.</div></li>');
nf.append(sn);
sn.find('a.sprite').eq(0).click(WikiNotification.dismiss);
},
dismiss: function(e) {
$(this).parents('li').eq(0).remove();
$.cookies.set(WikiNotification.key,'1');
}
};
$(WikiNotification.init);