Advertisement
Guest User

Untitled

a guest
Oct 13th, 2015
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. $('.one-slide').each(function() { // the containers for all your galleries
  2. $(this).magnificPopup({
  3. delegate: 'a', // the selector for gallery item
  4. type: 'image',
  5. gallery: {
  6. enabled:true
  7. }
  8. });
  9. });
  10.  
  11. $(document).ready(function() {
  12. $('#single-post .content .gallery-item').each(function() { // the containers for all your galleries
  13. $(this).magnificPopup({
  14. delegate: 'img', // the selector for gallery item
  15. type: 'image',
  16. gallery: {
  17. enabled:true
  18. },
  19.  
  20. callbacks: {
  21. elementParse: function(item) { item.src = item.el.attr('src'); }
  22. }
  23. });
  24. });
  25. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement