|
163 | 163 | responsive: 0, //backwards compabitility with responsiveWiddth
|
164 | 164 | responsiveWidth: 0,
|
165 | 165 | responsiveHeight: 0,
|
| 166 | + responsiveSlides: false, |
166 | 167 |
|
167 | 168 | //Custom selectors
|
168 | 169 | sectionSelector: SECTION_DEFAULT_SEL,
|
|
487 | 488 | $(SECTION_NAV_SEL).hide();
|
488 | 489 | $body.addClass(RESPONSIVE);
|
489 | 490 | $.isFunction( options.afterResponsive ) && options.afterResponsive.call( container, active);
|
| 491 | + |
| 492 | + if(options.responsiveSlides && FP.responsiveSlides){ |
| 493 | + FP.responsiveSlides.toSections(); |
| 494 | + } |
490 | 495 | }
|
491 | 496 | }
|
492 | 497 | else if(isResponsive){
|
|
495 | 500 | $(SECTION_NAV_SEL).show();
|
496 | 501 | $body.removeClass(RESPONSIVE);
|
497 | 502 | $.isFunction( options.afterResponsive ) && options.afterResponsive.call( container, active);
|
| 503 | + |
| 504 | + if(options.responsiveSlides && FP.responsiveSlides){ |
| 505 | + FP.responsiveSlides.toSlides(); |
| 506 | + } |
498 | 507 | }
|
499 | 508 | };
|
500 | 509 |
|
|
508 | 517 | lazyLoad: lazyLoad,
|
509 | 518 | addAnimation: addAnimation,
|
510 | 519 | performHorizontalMove: performHorizontalMove,
|
511 |
| - silentLandscapeScroll: silentLandscapeScroll |
| 520 | + silentLandscapeScroll: silentLandscapeScroll, |
| 521 | + keepSlidesPosition: keepSlidesPosition, |
| 522 | + silentScroll: silentScroll, |
| 523 | + styleSlides: styleSlides |
512 | 524 | }
|
513 | 525 | };
|
514 | 526 | };
|
|
519 | 531 | loadExtension('fp_scrollHorizontallyExtension');
|
520 | 532 | loadExtension('fp_resetSlidersExtension');
|
521 | 533 | loadExtension('fp_interlockedSlidesExtension');
|
| 534 | + loadExtension('fp_responsiveSlidesExtension'); |
522 | 535 |
|
523 | 536 | init();
|
524 | 537 |
|
|
1260 | 1273 | //emptying the array, we dont care about old scrollings for our averages
|
1261 | 1274 | scrollings = [];
|
1262 | 1275 | }
|
1263 |
| - |
| 1276 | + |
1264 | 1277 | if(canScroll){
|
1265 | 1278 | var averageEnd = getAverage(scrollings, 10);
|
1266 | 1279 | var averageMiddle = getAverage(scrollings, 70);
|
|
2222 | 2235 | }
|
2223 | 2236 |
|
2224 | 2237 | function addTableClass(element){
|
2225 |
| - element.addClass(TABLE).wrapInner('<div class="' + TABLE_CELL + '" style="height:' + getTableHeight(element) + 'px;" />'); |
| 2238 | + //In case we are styling for the 2nd time as in with reponsiveSlides |
| 2239 | + if(!element.hasClass(TABLE)){ |
| 2240 | + element.addClass(TABLE).wrapInner('<div class="' + TABLE_CELL + '" style="height:' + getTableHeight(element) + 'px;" />'); |
| 2241 | + } |
2226 | 2242 | }
|
2227 | 2243 |
|
2228 | 2244 | function getTableHeight(element){
|
|
0 commit comments