Image popup

This commit is contained in:
2019-04-21 12:12:43 +03:00
parent 04a2dcca22
commit 947c137b2c
4 changed files with 69 additions and 0 deletions

14
static/js/image-popup.js Normal file
View File

@ -0,0 +1,14 @@
$(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();
});
});