Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(".link_image").live("click", function(e){
  2.     e.preventDefault();
  3.     var i = $(this)
  4.         .find("img")
  5.         .attr("src")
  6.         .replace("_70","_600");
  7.     $("<div>")
  8.         .on("click", function(){
  9.             $(this).remove();
  10.         });
  11.         .css({
  12.             position: 'fixed',
  13.             top: 0,
  14.             left: 0,
  15.             width: "100%",
  16.             height: "100%",
  17.             background: "rgba(0,0,0,.8) url(" + i + ") no-repeat 50% 50%",
  18.             backgroundSize: "contain",
  19.             zIndex: 9999999999
  20.         })
  21.         .appendTo("body");
  22. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement