Advertisement
artemsemkin

Untitled

Sep 2nd, 2020 (edited)
1,418
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Init Template Components
  3.  */
  4. function initComponents($scope = window.$document) {
  5.  
  6.   window.PageHeader = new Header();
  7.  
  8.   if (typeof window.PageMenu === 'undefined') {
  9.     window.PageMenu = new MenuOverlay();
  10.   }
  11.  
  12.   new SectionMasthead($scope);
  13.   new SectionPortfolio($scope);
  14.   new SectionNavProjects($scope);
  15.   new SectionFullscreenSlider($scope);
  16.   new SectionContent($scope);
  17.   new SectionAbout($scope);
  18.   new SectionServices($scope);
  19.   new SectionTestimonials($scope);
  20.   new SectionAwards($scope);
  21.   new SliderImages($scope);
  22.   new SliderProjects($scope);
  23.   new SliderLetters($scope);
  24.   $('.js-video').magnificPopup();
  25.   new ScrollDown();
  26.   new Form();
  27.   new GMap($scope);
  28.   new ButtonCircle($scope);
  29.   new Grid();
  30.  
  31.   /** add this **/
  32.   $('.js-gallery').magnificPopup({
  33.     delegate: 'a',
  34.     type: 'image',
  35.     gallery: {
  36.       enabled: true,
  37.       navigateByImgClick: true
  38.     },
  39.   });
  40.   /**************/
  41.  
  42.   fixMobileBarHeight();
  43.   lazyLoad($scope);
  44.   $('[data-art-parallax]').artParallax({
  45.     ScrollMagicController: window.SMController,
  46.     SmoothScrollController: window.SB
  47.   });
  48.  
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement