gallery.js 875 B

12345678910111213141516171819202122232425262728293031
  1. (function (global, factory) {
  2. if (typeof define === "function" && define.amd) {
  3. define("/pages/gallery", ["jquery", "Site"], factory);
  4. } else if (typeof exports !== "undefined") {
  5. factory(require("jquery"), require("Site"));
  6. } else {
  7. var mod = {
  8. exports: {}
  9. };
  10. factory(global.jQuery, global.Site);
  11. global.pagesGallery = mod.exports;
  12. }
  13. })(this, function (_jquery, _Site) {
  14. "use strict";
  15. _jquery = babelHelpers.interopRequireDefault(_jquery);
  16. (0, _jquery.default)(document).ready(function ($$$1) {
  17. (0, _Site.run)();
  18. $$$1('.wb-search').magnificPopup({
  19. type: 'image',
  20. closeOnContentClick: true,
  21. mainClass: 'mfp-fade',
  22. gallery: {
  23. enabled: true,
  24. navigateByImgClick: true,
  25. preload: [0, 1] // Will preload 0 - before current, and 1 after the current image
  26. }
  27. });
  28. });
  29. });