|
282 | 282 | * Defines the scrolling speed
|
283 | 283 | */
|
284 | 284 | function setScrollingSpeed(value, type){
|
285 |
| - if(type !== 'internal' && options.fadingEffect && FP.fadingEffect ){ |
286 |
| - FP.fadingEffect.update(value); |
287 |
| - } |
288 | 285 | setVariableState('scrollingSpeed', value, type);
|
289 | 286 | };
|
290 | 287 |
|
|
492 | 489 | $(SECTION_NAV_SEL).hide();
|
493 | 490 | $body.addClass(RESPONSIVE);
|
494 | 491 | $.isFunction( options.afterResponsive ) && options.afterResponsive.call( container, active);
|
495 |
| - |
496 |
| - if(options.responsiveSlides && FP.responsiveSlides){ |
497 |
| - FP.responsiveSlides.toSections(); |
498 |
| - } |
499 | 492 | }
|
500 | 493 | }
|
501 | 494 | else if(isResponsive){
|
|
504 | 497 | $(SECTION_NAV_SEL).show();
|
505 | 498 | $body.removeClass(RESPONSIVE);
|
506 | 499 | $.isFunction( options.afterResponsive ) && options.afterResponsive.call( container, active);
|
507 |
| - |
508 |
| - if(options.responsiveSlides && FP.responsiveSlides){ |
509 |
| - FP.responsiveSlides.toSlides(); |
510 |
| - } |
511 | 500 | }
|
512 | 501 | };
|
513 | 502 |
|
|
550 | 539 | FP.getFullpageData = getFullpageData;
|
551 | 540 | FP.destroy = destroy;
|
552 | 541 |
|
553 |
| - //Loading extensions |
554 |
| - loadExtension('continuousHorizontal'); |
555 |
| - loadExtension('scrollHorizontally'); |
556 |
| - loadExtension('resetSliders'); |
557 |
| - loadExtension('interlockedSlides'); |
558 |
| - loadExtension('responsiveSlides'); |
559 |
| - loadExtension('fadingEffect'); |
560 |
| - |
561 | 542 | init();
|
562 | 543 |
|
563 | 544 | bindEvents();
|
|
645 | 626 | }
|
646 | 627 | }
|
647 | 628 |
|
648 |
| - /** |
649 |
| - * Sets a public internal function based on the extension name. |
650 |
| - * @param externalName {String} Extension name with the form fp_[NAME]Extension referring to an external function. |
651 |
| - */ |
652 |
| - function loadExtension(internalName){ |
653 |
| - var externalName = 'fp_' + internalName + 'Extension'; |
654 |
| - FP[internalName] = typeof window[externalName] !=='undefined' ? new window[externalName]() : null; |
655 |
| - } |
656 |
| - |
657 | 629 | /**
|
658 | 630 | * Setting options from DOM elements if they are not provided.
|
659 | 631 | */
|
|
726 | 698 |
|
727 | 699 | enableYoutubeAPI();
|
728 | 700 |
|
729 |
| - if(options.fadingEffect && FP.fadingEffect){ |
730 |
| - FP.fadingEffect.apply(); |
731 |
| - } |
732 |
| - |
733 | 701 | if(options.scrollOverflow){
|
734 | 702 | if(document.readyState === 'complete'){
|
735 | 703 | createScrollBarHandler();
|
|
1096 | 1064 | }
|
1097 | 1065 | var check = (type === 'down') ? 'bottom' : 'top';
|
1098 | 1066 | var scrollSection = (type === 'down') ? moveSectionDown : moveSectionUp;
|
1099 |
| - |
1100 |
| - if(FP.scrollHorizontally){ |
1101 |
| - scrollSection = FP.scrollHorizontally.getScrollSection(type, scrollSection); |
1102 |
| - } |
1103 | 1067 |
|
1104 | 1068 | if(scrollable.length > 0 ){
|
1105 | 1069 | //is the scrollbar at the start/end of the scroll?
|
|
1607 | 1571 | $.isFunction(options.afterLoad) && !v.localIsResizing && options.afterLoad.call(v.element, v.anchorLink, (v.sectionIndex + 1));
|
1608 | 1572 | options.scrollOverflowHandler.afterLoad();
|
1609 | 1573 |
|
1610 |
| - if(options.resetSliders && FP.resetSliders){ |
1611 |
| - FP.resetSliders.apply(v); |
1612 |
| - } |
1613 |
| - |
1614 | 1574 | playMedia(v.element);
|
1615 | 1575 | v.element.addClass(COMPLETELY).siblings().removeClass(COMPLETELY);
|
1616 | 1576 |
|
|
1990 | 1950 | setState(v.slideIndex, v.slideAnchor, v.anchorLink, v.sectionIndex);
|
1991 | 1951 | }
|
1992 | 1952 |
|
1993 |
| - if(FP.continuousHorizontal){ |
1994 |
| - FP.continuousHorizontal.apply(v); |
1995 |
| - } |
1996 |
| - |
1997 | 1953 | performHorizontalMove(slides, v, true);
|
1998 |
| - |
1999 |
| - if(options.interlockedSlides && FP.interlockedSlides){ |
2000 |
| - FP.interlockedSlides.apply(v); |
2001 |
| - } |
2002 | 1954 | }
|
2003 | 1955 |
|
2004 | 1956 |
|
2005 | 1957 | function afterSlideLoads(v){
|
2006 |
| - if(FP.continuousHorizontal){ |
2007 |
| - FP.continuousHorizontal.afterSlideLoads(v); |
2008 |
| - } |
2009 | 1958 | activeSlidesNavigation(v.slidesNav, v.slideIndex);
|
2010 | 1959 |
|
2011 | 1960 | //if the site is not just resizing and readjusting the slides
|
|
2021 | 1970 |
|
2022 | 1971 | //letting them slide again
|
2023 | 1972 | slideMoving = false;
|
2024 |
| - |
2025 |
| - if(FP.interlockedSlides){ |
2026 |
| - FP.interlockedSlides.apply(v); |
2027 |
| - } |
2028 | 1973 | }
|
2029 | 1974 |
|
2030 | 1975 | /**
|
|
0 commit comments