miromannino / Justified-Gallery

Javascript library to help creating high quality justified galleries of images. Used by thousands of websites as well as the photography community 500px.
http://miromannino.github.io/Justified-Gallery/
MIT License
1.68k stars 299 forks source link

Go to link instead lightbox #269

Closed moh6mmad closed 4 years ago

moh6mmad commented 6 years ago

Hey please let me know if there is any option to open in new blank window of link instead show value as an image in lightbox Sorry but i could not find any related issue

jefftucker1952 commented 6 years ago

Just don't include a lightbox script. Your href's can point to anything you like, even other pages. Here's a simple page that opens each image in a new browser tab when the thumbnail is clicked.

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Justified Gallery</title>
<link rel="stylesheet" href="css/justifiedGallery.css">
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/jquery.justifiedGallery.min.js"></script>
</head>
<body>
<div id="mygallery" >
    <a href="path/to/myimage1_original.jpg" target="_blank">
        <img alt="Title 1" src="path/to/myimage1_thumbnail.jpg"/>
    </a>
    <a href="path/to/myimage2_original.jpg" target="_blank">
        <img alt="Title 2" src="path/to/myimage2_thumbnail.jpg"/>
    </a>
    <!-- other images... -->
</div>
<script>
$("#mygallery").justifiedGallery();
</script>
</body>
</html>