Mudanças entre as edições de "MediaWiki:Common.js"
Ir para navegação
Ir para pesquisar
| Linha 15: | Linha 15: | ||
$(".video-hover").hover( | $(".video-hover").hover( | ||
function() { | function() { | ||
$(this). | $(this).play(); | ||
}, | }, | ||
function() { | function() { | ||
$(this). | $(this).pause(); | ||
$(this).prop('currentTime', 0); | $(this).prop('currentTime', 0); | ||
} | } | ||
); | ); | ||
}); | }); | ||
Edição das 02h07min de 28 de maio de 2022
$(function() {
//Função para interatividade do icone do báu
$(".chest-menu-icon").hover(
function() {
$(this).attr("src", "/images/4/41/Chest.gif");
},
function() {
$(this).attr("src", "/images/a/ae/Chest_static.png");
}
);
$(".video-hover").attr('preload', "metadata");
$(".video-hover").hover(
function() {
$(this).play();
},
function() {
$(this).pause();
$(this).prop('currentTime', 0);
}
);
});