Skip to content

Commit adb1cbe

Browse files
committed
Re-indenting
Tabs to spaces
1 parent dd04e93 commit adb1cbe

File tree

1 file changed

+49
-49
lines changed

1 file changed

+49
-49
lines changed

jquery.fullPage.js

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -479,47 +479,47 @@
479479
var keydownId;
480480

481481
if($(this).length){
482-
init();
482+
init();
483483
}
484484

485485
function init(){
486-
container.css({
487-
'height': '100%',
488-
'position': 'relative'
489-
});
490-
491-
//adding a class to recognize the container internally in the code
492-
container.addClass(WRAPPER);
493-
$('html').addClass(ENABLED);
494-
495-
//if css3 is not supported, it will use jQuery animations
496-
if(options.css3){
497-
options.css3 = support3d();
498-
}
499-
500-
FP.setAllowScrolling(true);
501-
container.removeClass(DESTROYED); //in case it was destroyed before initilizing it again
502-
503-
addInternalSelectors();
504-
505-
//styling the sections / slides / menu
506-
$(SECTION_SEL).each(function(index){
507-
var section = $(this);
508-
var slides = section.find(SLIDE_SEL);
509-
var numSlides = slides.length;
510-
511-
styleSection(section, index);
512-
styleMenu(section, index);
513-
514-
// if there's any slide
515-
if (numSlides > 0) {
516-
styleSlides(section, slides, numSlides);
517-
}else{
518-
if(options.verticalCentered){
519-
addTableClass(section);
520-
}
521-
}
522-
});
486+
container.css({
487+
'height': '100%',
488+
'position': 'relative'
489+
});
490+
491+
//adding a class to recognize the container internally in the code
492+
container.addClass(WRAPPER);
493+
$('html').addClass(ENABLED);
494+
495+
//if css3 is not supported, it will use jQuery animations
496+
if(options.css3){
497+
options.css3 = support3d();
498+
}
499+
500+
FP.setAllowScrolling(true);
501+
container.removeClass(DESTROYED); //in case it was destroyed before initilizing it again
502+
503+
addInternalSelectors();
504+
505+
//styling the sections / slides / menu
506+
$(SECTION_SEL).each(function(index){
507+
var section = $(this);
508+
var slides = section.find(SLIDE_SEL);
509+
var numSlides = slides.length;
510+
511+
styleSection(section, index);
512+
styleMenu(section, index);
513+
514+
// if there's any slide
515+
if (numSlides > 0) {
516+
styleSlides(section, slides, numSlides);
517+
}else{
518+
if(options.verticalCentered){
519+
addTableClass(section);
520+
}
521+
}
522+
});
523523

524524
FP.setAutoScrolling(options.autoScrolling, 'internal');
525525

@@ -538,7 +538,7 @@
538538

539539
//vertical centered of the navigation + active bullet
540540
if(options.navigation){
541-
addVerticalNavigation();
541+
addVerticalNavigation();
542542
}
543543

544544
if(options.scrollOverflow){
@@ -594,7 +594,7 @@
594594
* Styles the horizontal slides for a section.
595595
*/
596596
function styleSlides(section, slides, numSlides){
597-
var sliderWidth = numSlides * 100;
597+
var sliderWidth = numSlides * 100;
598598
var slideWidth = 100 / numSlides;
599599

600600
slides.wrapAll('<div class="' + SLIDES_CONTAINER + '" />');
@@ -661,7 +661,7 @@
661661
* Sets the data-anchor attributes to the menu elements and activates the current one.
662662
*/
663663
function styleMenu(section, index){
664-
if (typeof options.anchors[index] !== 'undefined') {
664+
if (typeof options.anchors[index] !== 'undefined') {
665665
section.attr('data-anchor', options.anchors[index]);
666666

667667
//activating the menu / nav element on load
@@ -681,13 +681,13 @@
681681
* keeping the link with the style sheet.
682682
*/
683683
function addInternalSelectors(){
684-
//adding internal class names to void problem with common ones
685-
$(options.sectionSelector).each(function(){
686-
$(this).addClass(SECTION);
687-
});
688-
$(options.slideSelector).each(function(){
689-
$(this).addClass(SLIDE);
690-
});
684+
//adding internal class names to void problem with common ones
685+
$(options.sectionSelector).each(function(){
686+
$(this).addClass(SECTION);
687+
});
688+
$(options.slideSelector).each(function(){
689+
$(this).addClass(SLIDE);
690+
});
691691
}
692692

693693
/**
@@ -710,7 +710,7 @@
710710
* Creates a vertical navigation bar.
711711
*/
712712
function addVerticalNavigation(){
713-
var nav = $(SECTION_NAV_SEL);
713+
var nav = $(SECTION_NAV_SEL);
714714
$body.append('<div id="' + SECTION_NAV + '"><ul></ul></div>');
715715

716716
nav.addClass(function() {

0 commit comments

Comments
 (0)