examples.timeline.js 1005 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. (function( $ ) {
  2. 'use strict';
  3. var initLightbox = function() {
  4. $('.timeline .thumbnail-gallery').magnificPopup({
  5. delegate: 'a',
  6. type: 'image',
  7. tLoading: 'Loading image #%curr%...',
  8. mainClass: 'mfp-img-mobile',
  9. gallery: {
  10. enabled: true,
  11. navigateByImgClick: true,
  12. preload: [0,1] // Will preload 0 - before current, and 1 after the current image
  13. },
  14. image: {
  15. tError: '<a href="%url%">The image #%curr%</a> could not be loaded.'
  16. }
  17. });
  18. };
  19. var initGoogleMaps = function() {
  20. var map = new GMaps({
  21. div: '#gmap-checkin-example',
  22. lat: 40.7533405,
  23. lng: -73.982253,
  24. markers: [{
  25. lat: 40.7533405,
  26. lng: -73.982253,
  27. infoWindow: {
  28. content: '<p>New York Public Library</p>'
  29. }
  30. }],
  31. scrollwheel: false
  32. });
  33. map.addMarker({
  34. lat: 40.7533405,
  35. lng: -73.982253,
  36. infoWindow: {
  37. content: '<p>New York Public Library</p>'
  38. }
  39. });
  40. };
  41. $(function() {
  42. initLightbox();
  43. initGoogleMaps();
  44. });
  45. }).apply(this, [ jQuery ]);