Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. defaultOptions = {
  2.   //Scrolling
  3.   css3: true,
  4.   scrollingSpeed: 700,
  5.   fitToSection: true,
  6.   easing: 'easeInOutCubic',
  7.   easingcss3: 'ease',
  8.   continuousVertical: false,
  9.   continuousHorizontal: false,
  10.   scrollHorizontally: false,
  11.   interlockedSlides: false,
  12.   dragAndMove: false,
  13.   offsetSections: false,
  14.   resetSliders: false,
  15.   fadingEffect: false,
  16.   normalScrollElements: '#element1, .element2',
  17.   scrollOverflow: true,
  18.   scrollOverflowReset: false,
  19.   scrollOverflowOptions: null,
  20.   touchSensitivity: 15,
  21.   normalScrollElementTouchThreshold: 5,
  22.   responsive: 959,
  23.   bigSectionsDestination: top,
  24.  
  25.   //Accessibility
  26.   keyboardScrolling: true,
  27.   animateAnchor: true,
  28.   recordHistory: true,
  29.  
  30.   //Design
  31.   verticalCentered: true,
  32.   paddingTop: '80px',
  33.   responsiveWidth: 0,
  34.   responsiveHeight: 0,
  35.   responsiveSlides: false,
  36.   parallax: false,
  37.   parallaxOptions: { type: 'reveal', percentage: 62, property: 'translate' },
  38.  
  39.   //Custom selectors
  40.   sectionSelector: '.section',
  41.   slideSelector: '.slide',
  42.  
  43.   lazyLoading: true,
  44.  
  45.   afterLoad: function() {
  46.     var loadedSection = $(this);
  47.     var headerWrap = $('.wrap-header');
  48.     var slider = $('.slider', this);
  49.  
  50.     headerWrap.removeClass('white-text');
  51.  
  52.     if (loadedSection.hasClass('white-header')) {
  53.       headerWrap.addClass('white-text');
  54.     }
  55.     if (loadedSection.has('.slider')) {
  56.       $(document).on('keydown', function(e) {
  57.         if (e.keyCode == 37) {
  58.           slider.slick('slickPrev');
  59.         }
  60.         if (e.keyCode == 39) {
  61.           slider.slick('slickNext');
  62.         }
  63.       });
  64.     }
  65.   }
  66. };
  67.  
  68. var specificOptions = {};
  69.  
  70. if ($('.nav-seattable').length > 0) {
  71.   specificOptions = {
  72.     anchors:  ['first', '', 'third', '', '', '', 'seventh', 'eight', 'ninth', 'eleventh'],
  73.     menu: '#seattable',
  74.   }
  75. }
  76. else if ($('.nav-ranges').length > 0) {
  77.   specificOptions = {
  78.     anchors: ['', 'second', 'third'],
  79.     menu: '#ranges',
  80.   }
  81. }
  82. else if ($('.nav-about').length > 0) {
  83.   specificOptions = {
  84.     anchors: ['', '', 'third', 'forth', 'fifth', 'sixth', '', 'eight', 'ninth', '', 'e'],
  85.     menu: '#about',
  86.   }
  87. }
  88.  
  89. $('.fullpage').fullpage($.extend(defaultOptions, specificOptions));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement