Created
November 18, 2016 03:45
-
-
Save monajalal/3dace3489e20e0aeeba5351a7987065a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html > | |
<head> | |
<meta charset="UTF-8"> | |
<title>Multiple PhotoSwipe galleries on pagea</title> | |
<link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.1/photoswipe.min.css'> | |
<link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.1/default-skin/default-skin.min.css'> | |
<link rel="stylesheet" href="css/style.css"> | |
</head> | |
<body> | |
<h2>Banana:</h2> | |
<div class="my-gallery" itemscope itemtype="http://schema.org/ImageGallery"> | |
<figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject"> | |
<a href="imgur/banana/3NlNsLB.jpg" itemprop="contentUrl" data-size="900x900"> | |
<img src="imgur/banana/3NlNsLB.jpg" itemprop="thumbnail" alt="Image description" data-size="300x300" /> | |
</a> | |
<figcaption itemprop="caption description">Image caption 1</figcaption> | |
</figure> | |
<figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject"> | |
<a href="imgur/banana/6gqpgDV.jpg" itemprop="contentUrl" data-size="900x900"> | |
<img src="imgur/banana/6gqpgDV.jpg" itemprop="thumbnail" alt="Image description" data-size="300x300" /> | |
</a> | |
<figcaption itemprop="caption description">Image caption 2</figcaption> | |
</figure> | |
<figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject"> | |
<a href="imgur/banana/98yiTZV.jpg" itemprop="contentUrl" data-size="900x900"> | |
<img src="imgur/banana/98yiTZV.jpg" itemprop="thumbnail" alt="Image description" data-size="300x300" /> | |
</a> | |
<figcaption itemprop="caption description">Image caption 3</figcaption> | |
</figure> | |
<figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject"> | |
<a href="imgur/banana/e5WprnC.jpg" itemprop="contentUrl" data-size="900x900"> | |
<img src="imgur/banana/e5WprnC.jpg" itemprop="thumbnail" alt="Image description" data-size="900x900" /> | |
</a> | |
<figcaption itemprop="caption description">Image caption 4</figcaption> | |
</figure> | |
</div> | |
<h2>Book:</h2> | |
<div class="my-gallery" itemscope itemtype="http://schema.org/ImageGallery"> | |
<figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject"> | |
<a href="imgur/book/2EuGD9S.jpg" itemprop="contentUrl" data-size="900x900"> | |
<img src="imgur/book/2EuGD9S.jpg" itemprop="thumbnail" alt="Image description" height="400" width="300" /> | |
</a> | |
<figcaption itemprop="caption description">Image caption 1</figcaption> | |
</figure> | |
<figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject"> | |
<a href="imgur/book/Cmg3qMt.jpg" itemprop="contentUrl" data-size="900x900"> | |
<img src="imgur/book/Cmg3qMt.jpg" itemprop="thumbnail" alt="Image description" data-size="300x300" /> | |
</a> | |
<figcaption itemprop="caption description">Image caption 2</figcaption> | |
</figure> | |
<figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject"> | |
<a href="imgur/book/DyvInMR.jpg" itemprop="contentUrl" data-size="900x900"> | |
<img src="imgur/book/DyvInMR.jpg" itemprop="thumbnail" alt="Image description" data-size="300x300" /> | |
</a> | |
<figcaption itemprop="caption description">Image caption 3</figcaption> | |
</figure> | |
</div> | |
<!-- Root element of PhotoSwipe. Must have class pswp. --> | |
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true"> | |
<!-- Background of PhotoSwipe. | |
It's a separate element, as animating opacity is faster than rgba(). --> | |
<div class="pswp__bg"></div> | |
<!-- Slides wrapper with overflow:hidden. --> | |
<div class="pswp__scroll-wrap"> | |
<!-- Container that holds slides. PhotoSwipe keeps only 3 slides in DOM to save memory. --> | |
<!-- don't modify these 3 pswp__item elements, data is added later on. --> | |
<div class="pswp__container"> | |
<div class="pswp__item"></div> | |
<div class="pswp__item"></div> | |
<div class="pswp__item"></div> | |
</div> | |
<!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. --> | |
<div class="pswp__ui pswp__ui--hidden"> | |
<div class="pswp__top-bar"> | |
<!-- Controls are self-explanatory. Order can be changed. --> | |
<div class="pswp__counter"></div> | |
<button class="pswp__button pswp__button--close" title="Close (Esc)"></button> | |
<button class="pswp__button pswp__button--share" title="Share"></button> | |
<button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button> | |
<button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button> | |
<!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR --> | |
<!-- element will get class pswp__preloader--active when preloader is running --> | |
<div class="pswp__preloader"> | |
<div class="pswp__preloader__icn"> | |
<div class="pswp__preloader__cut"> | |
<div class="pswp__preloader__donut"></div> | |
</div> | |
</div> | |
</div> | |
</div> | |
<div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap"> | |
<div class="pswp__share-tooltip"></div> | |
</div> | |
<button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)"> | |
</button> | |
<button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)"> | |
</button> | |
<div class="pswp__caption"> | |
<div class="pswp__caption__center"></div> | |
</div> | |
</div> | |
</div> | |
</div> | |
<script src='https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.1/photoswipe.min.js'></script> | |
<script src='https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.1/photoswipe-ui-default.min.js'></script> | |
<script src="js/index.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment