pelican-theme-bootstrap4/static/js/image-popup.js

15 lines
298 B
JavaScript
Raw Normal View History

2019-04-21 09:12:43 +00:00
$(function () {
"use strict";
$(".popup img").click(function () {
var $src = $(this).attr("src");
$(".show").fadeIn();
$(".img-show img").attr("src", $src);
});
$("span, .overlay").click(function () {
$(".show").fadeOut();
});
});