experimental rtl support (#166)
This commit is contained in:
parent
c61dc00a98
commit
0402fbde0c
|
@ -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
4
js/reveal.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user