SAMYANG/m/asset/js/sy.m.plugin.js
/**
         * Works over the DOM structure to set it up for the current fullpage options.
         */
Works over the DOM structure to set it up for the current fullpage options.
Works over the DOM structure to set it up for the current fullpage options .
function prepareDom() {
            container.css({
                'height': '100%',
                'position': 'relative'
            });
            container.addClass(WRAPPER);
            $('html').addClass(ENABLED);
            windowsHeight = $window.height();
            container.removeClass(DESTROYED); 
            addInternalSelectors();
            $(SECTION_SEL).each(function (index) {
                var section = $(this);
                var slides = section.find(SLIDE_SEL);
                var numSlides = slides.length;
                section.data('fp-styles', section.attr('style'));
                styleSection(section, index);
                styleMenu(section, index);
                if (numSlides > 0) {
                    styleSlides(section, slides, numSlides);
                } else {
                    if (options.verticalCentered) {
                        addTableClass(section);
                    }
                }
            });
            if (options.fixedElements && options.css3) {
                $(options.fixedElements).appendTo($body);
            }
            if (options.navigation) {
                addVerticalNavigation();
            }
            enableYoutubeAPI();
            if (options.scrollOverflow) {
                scrollBarHandler = options.scrollOverflowHandler.init(options);
            } else {
                afterRenderActions();
            }
        }
function prepareDom ( ) { container . css ( { 'height' : '100%' , 'position' : 'relative' } ) ; container . addClass ( WRAPPER ) ; $ ( 'html' ) . addClass ( ENABLED ) ; windowsHeight = $window . height ( ) ; container . removeClass ( DESTROYED ) ; addInternalSelectors ( ) ; $ ( SECTION_SEL ) . each ( function ( index ) { var section = $ ( this ) ; var slides = section . find ( SLIDE_SEL ) ; var numSlides = slides . length ; section . data ( 'fp-styles' , section . attr ( 'style' ) ) ; styleSection ( section , index ) ; styleMenu ( section , index ) ; if ( numSlides > 0 ) { styleSlides ( section , slides , numSlides ) ; } else { if ( options . verticalCentered ) { addTableClass ( section ) ; } } } ) ; if ( options . fixedElements && options . css3 ) { $ ( options . fixedElements ) . appendTo ( $body ) ; } if ( options . navigation ) { addVerticalNavigation ( ) ; } enableYoutubeAPI ( ) ; if ( options . scrollOverflow ) { scrollBarHandler = options . scrollOverflowHandler . init ( options ) ; } else { afterRenderActions ( ) ; } }
Works over the DOM structure to set it up for the current fullpage options.
Works over the DOM structure to set it up for the current fullpage options .
//adding a class to recognize the container internally in the code //due to https://github.com/alvarotrigo/fullPage.js/issues/1502 //in case it was destroyed before initializing it again //styling the sections / slides / menu //caching the original styles to add them back on destroy('all') // if there's any slide //fixed elements need to be moved out of the plugin container due to problems with CSS3. //vertical centered of the navigation + active bullet