SHARE
TWEET

Untitled

a guest Jun 26th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. $('.lightbox img').each(function(){
  3.     $(this).wrap(function() {
  4.       return '<a href="' + $(this).attr('src') + '" />';
  5.     })  
  6. });
  7. </script>
  8.      
  9. <script>
  10. $(".lightbox a").attr("data-toggle", "lightbox");
  11. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top