experimental rtl support (#166)

This commit is contained in:
Hakim El Hattab 2012-11-17 15:59:28 -05:00
parent c61dc00a98
commit 0402fbde0c
2 changed files with 10 additions and 2 deletions

View File

@ -36,6 +36,9 @@ var Reveal = (function(){
// Loop the presentation
loop: false,
// Experimental support for RTL
rtl: false,
// Number of milliseconds between automatically proceeding to the
// next slide, disabled when set to 0, this value can be overwritten
// by using a data-autoslide attribute on your slides
@ -141,6 +144,7 @@ var Reveal = (function(){
// Cache references to key DOM elements
dom.theme = document.querySelector( '#theme' );
dom.wrapper = document.querySelector( '.reveal' );
dom.slides = document.querySelector( '.reveal .slides' );
// Progress bar
if( !dom.wrapper.querySelector( '.progress' ) && config.progress ) {
@ -313,6 +317,10 @@ var Reveal = (function(){
dom.wrapper.classList.add( config.transition );
}
if( config.rtl ) {
dom.slides.style.direction = 'rtl';
}
if( config.center ) {
dom.wrapper.classList.add( 'center' );
}

4
js/reveal.min.js vendored

File diff suppressed because one or more lines are too long