Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- defaultOptions = {
- //Scrolling
- css3: true,
- scrollingSpeed: 700,
- fitToSection: true,
- easing: 'easeInOutCubic',
- easingcss3: 'ease',
- continuousVertical: false,
- continuousHorizontal: false,
- scrollHorizontally: false,
- interlockedSlides: false,
- dragAndMove: false,
- offsetSections: false,
- resetSliders: false,
- fadingEffect: false,
- normalScrollElements: '#element1, .element2',
- scrollOverflow: true,
- scrollOverflowReset: false,
- scrollOverflowOptions: null,
- touchSensitivity: 15,
- normalScrollElementTouchThreshold: 5,
- responsive: 959,
- bigSectionsDestination: top,
- //Accessibility
- keyboardScrolling: true,
- animateAnchor: true,
- recordHistory: true,
- //Design
- verticalCentered: true,
- paddingTop: '80px',
- responsiveWidth: 0,
- responsiveHeight: 0,
- responsiveSlides: false,
- parallax: false,
- parallaxOptions: { type: 'reveal', percentage: 62, property: 'translate' },
- //Custom selectors
- sectionSelector: '.section',
- slideSelector: '.slide',
- lazyLoading: true,
- afterLoad: function() {
- var loadedSection = $(this);
- var headerWrap = $('.wrap-header');
- var slider = $('.slider', this);
- headerWrap.removeClass('white-text');
- if (loadedSection.hasClass('white-header')) {
- headerWrap.addClass('white-text');
- }
- if (loadedSection.has('.slider')) {
- $(document).on('keydown', function(e) {
- if (e.keyCode == 37) {
- slider.slick('slickPrev');
- }
- if (e.keyCode == 39) {
- slider.slick('slickNext');
- }
- });
- }
- }
- };
- var specificOptions = {};
- if ($('.nav-seattable').length > 0) {
- specificOptions = {
- anchors: ['first', '', 'third', '', '', '', 'seventh', 'eight', 'ninth', 'eleventh'],
- menu: '#seattable',
- }
- }
- else if ($('.nav-ranges').length > 0) {
- specificOptions = {
- anchors: ['', 'second', 'third'],
- menu: '#ranges',
- }
- }
- else if ($('.nav-about').length > 0) {
- specificOptions = {
- anchors: ['', '', 'third', 'forth', 'fifth', 'sixth', '', 'eight', 'ninth', '', 'e'],
- menu: '#about',
- }
- }
- $('.fullpage').fullpage($.extend(defaultOptions, specificOptions));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement