lanuit.ens.fr/www/js/popup.js

11 lines
338 B
JavaScript
Raw Permalink Normal View History

$(document).ready(() => {
$('.popup-trigger').click(function(){
$(this).children($('.popup')).toggleClass("show")
});
$('.popup-trigger').mouseenter(function(){
$(this).children($('.popup')).addClass("show")
});
$('.popup-trigger').mouseleave(function(){
$(this).children($('.popup')).removeClass("show")
});
});