Lines Matching refs:slide

864 		toArray( dom.wrapper.querySelectorAll( SLIDES_SELECTOR ) ).forEach( function( slide ) {  argument
865 slide.setAttribute( 'data-slide-number', getSlideNumber( slide ) );
869 toArray( dom.wrapper.querySelectorAll( SLIDES_SELECTOR ) ).forEach( function( slide ) { argument
873 if( slide.classList.contains( 'stack' ) === false ) {
878 var contentHeight = slide.scrollHeight;
885 if( numberOfPages === 1 && config.center || slide.classList.contains( 'center' ) ) {
894 slide.parentNode.insertBefore( page, slide );
895 page.appendChild( slide );
898 slide.style.left = left + 'px';
899 slide.style.top = top + 'px';
900 slide.style.width = slideWidth + 'px';
902 if( slide.slideBackgroundElement ) {
903 page.insertBefore( slide.slideBackgroundElement, slide );
910 var notes = getSlideNotes( slide );
940 numberElement.innerHTML = slide.getAttribute( 'data-slide-number' );
1123 function createBackground( slide, container ) { argument
1128 element.className = 'slide-background ' + slide.className.replace( /present|past|future/, '' );
1137 slide.slideBackgroundElement = element;
1138 slide.slideBackgroundContentElement = contentElement;
1141 syncBackground( slide );
1153 function syncBackground( slide ) { argument
1155 var element = slide.slideBackgroundElement,
1156 contentElement = slide.slideBackgroundContentElement;
1160 slide.classList.remove( 'has-dark-background' );
1161 slide.classList.remove( 'has-light-background' );
1177 background: slide.getAttribute( 'data-background' ),
1178 backgroundSize: slide.getAttribute( 'data-background-size' ),
1179 backgroundImage: slide.getAttribute( 'data-background-image' ),
1180 backgroundVideo: slide.getAttribute( 'data-background-video' ),
1181 backgroundIframe: slide.getAttribute( 'data-background-iframe' ),
1182 backgroundColor: slide.getAttribute( 'data-background-color' ),
1183 backgroundRepeat: slide.getAttribute( 'data-background-repeat' ),
1184 backgroundPosition: slide.getAttribute( 'data-background-position' ),
1185 backgroundTransition: slide.getAttribute( 'data-background-transition' ),
1186 backgroundOpacity: slide.getAttribute( 'data-background-opacity' )
1192 slide.setAttribute( 'data-background-image', data.background );
1220 if( slide.hasAttribute( 'data-preload' ) ) element.setAttribute( 'data-preload', '' );
1249 slide.classList.add( 'has-dark-background' );
1252 slide.classList.add( 'has-light-background' );
2309 var slide = slides[ i ];
2312 if( slide.style.display === 'none' ) {
2316 if( config.center || slide.classList.contains( 'center' ) ) {
2319 if( slide.classList.contains( 'stack' ) ) {
2320 slide.style.top = 0;
2323 slide.style.top = Math.max( ( size.height - slide.scrollHeight ) / 2, 0 ) + 'px';
2327 slide.style.top = '';
2489 toArray( dom.wrapper.querySelectorAll( SLIDES_SELECTOR ) ).forEach( function( slide ) { argument
2490 if( !slide.classList.contains( 'stack' ) ) {
2491 slide.addEventListener( 'click', onOverviewSlideClicked, true );
2603 toArray( dom.wrapper.querySelectorAll( SLIDES_SELECTOR ) ).forEach( function( slide ) { argument
2604 transformElement( slide, '' );
2606 slide.removeEventListener( 'click', onOverviewSlideClicked, true );
2616 slide( indexh, indexv );
2667 function locationHash( slide ) { argument
2672 var s = slide || currentSlide;
2678 var index = getIndices( slide );
2708 function isVerticalSlide( slide ) { argument
2711 slide = slide ? slide : currentSlide;
2713 return slide && slide.parentNode && !!slide.parentNode.nodeName.match( /section/i );
2867 function slide( h, v, f, o ) { function
3074 function syncSlide( slide ) { argument
3077 slide = slide || currentSlide;
3079 syncBackground( slide );
3080 syncFragments( slide );
3082 loadSlide( slide );
3097 function syncFragments( slide ) { argument
3100 slide = slide || currentSlide;
3102 return sortFragments( slide.querySelectorAll( '.fragment' ) );
3160 slides.forEach( function( slide ) { argument
3164 dom.slides.insertBefore( slide, slides[ Math.floor( Math.random() * slides.length ) ] );
3446 function getSlideNumber( slide ) { argument
3450 if( slide === undefined ) {
3451 slide = currentSlide;
3455 value = config.slideNumber( slide );
3471 value.push( getSlidePastCount( slide ) + 1 );
3474 value.push( getSlidePastCount( slide ) + 1, '/', getTotalSlides() );
3477 var indices = getIndices( slide );
3480 if( isVerticalSlide( slide ) ) value.push( sep, indices.v + 1 );
3484 var url = '#' + locationHash( slide );
3794 function loadSlide( slide, options ) { argument
3799 slide.style.display = config.display;
3802 …toArray( slide.querySelectorAll( 'img[data-src], video[data-src], audio[data-src], iframe[data-src…
3811 toArray( slide.querySelectorAll( 'video, audio' ) ).forEach( function( media ) {
3830 var background = slide.slideBackgroundElement;
3834 var backgroundContent = slide.slideBackgroundContentElement;
3835 var backgroundIframe = slide.getAttribute( 'data-background-iframe' );
3841 var backgroundImage = slide.getAttribute( 'data-background-image' ),
3842 backgroundVideo = slide.getAttribute( 'data-background-video' ),
3843 backgroundVideoLoop = slide.hasAttribute( 'data-background-video-loop' ),
3844 backgroundVideoMuted = slide.hasAttribute( 'data-background-video-muted' );
3920 function unloadSlide( slide ) { argument
3923 slide.style.display = 'none';
3926 var background = getSlideBackground( slide );
3937 …toArray( slide.querySelectorAll( 'video[data-lazy-loaded][src], audio[data-lazy-loaded][src], ifra…
3943 …toArray( slide.querySelectorAll( 'video[data-lazy-loaded] source[src], audio source[src]' ) ).forE…
4258 function getSlidePastCount( slide ) { argument
4260 if( slide === undefined ) {
4261 slide = currentSlide;
4278 if( verticalSlides[j] === slide ) {
4287 if( horizontalSlide === slide ) {
4379 slide(indices.h, indices.v);
4384 slide( indexh || 0, indexv || 0 );
4403 slide( h, v, f );
4455 function getIndices( slide ) { argument
4463 if( slide ) {
4464 var isVertical = isVerticalSlide( slide );
4465 var slideh = isVertical ? slide.parentNode : slide;
4478 v = Math.max( toArray( slide.parentNode.querySelectorAll( 'section' ) ).indexOf( slide ), 0 );
4482 if( !slide && currentSlide ) {
4551 return getSlides().map( function( slide ) { argument
4554 for( var i = 0; i < slide.attributes.length; i++ ) {
4555 var attribute = slide.attributes[ i ];
4606 var slide = typeof x === 'number' ? getSlide( x, y ) : x;
4607 if( slide ) {
4608 return slide.slideBackgroundElement;
4624 function getSlideNotes( slide ) { argument
4627 slide = slide || currentSlide;
4630 if( slide.hasAttribute( 'data-notes' ) ) {
4631 return slide.getAttribute( 'data-notes' );
4635 var notesElement = slide.querySelector( 'aside.notes' );
4674 slide( deserialize( state.indexh ), deserialize( state.indexv ), deserialize( state.indexf ) );
5033 slide( indexh + 1, config.navigationMode === 'grid' ? indexv : undefined );
5038 slide( indexh - 1, config.navigationMode === 'grid' ? indexv : undefined );
5050 slide( indexh - 1, config.navigationMode === 'grid' ? indexv : undefined );
5055 slide( indexh + 1, config.navigationMode === 'grid' ? indexv : undefined );
5064 slide( indexh, indexv - 1 );
5075 slide( indexh, indexv + 1 );
5107 slide( h, v );
5341 slide( 0 );
5353 slide( Number.MAX_VALUE );
5382 slide( 0 );
5386 slide( Number.MAX_VALUE );
5649 slide( slideIndex );
5734 slide( h, v );
5769 slide( 0, 0 );
5970 slide: slide,
5984 navigateTo: slide,