slide number changes; config value renamed, added to readme, moved to right side of screen
This commit is contained in:
parent
bdb46060b3
commit
85c2a0a3c1
@ -98,6 +98,9 @@ Reveal.initialize({
|
|||||||
// Display a presentation progress bar
|
// Display a presentation progress bar
|
||||||
progress: true,
|
progress: true,
|
||||||
|
|
||||||
|
// Display the page number of the current slide
|
||||||
|
slideNumber: false,
|
||||||
|
|
||||||
// Push each slide change to the browser history
|
// Push each slide change to the browser history
|
||||||
history: false,
|
history: false,
|
||||||
|
|
||||||
|
@ -483,14 +483,11 @@ body {
|
|||||||
.reveal .slide-number {
|
.reveal .slide-number {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
display: block;
|
display: block;
|
||||||
opacity: 0.5;
|
right: 15px;
|
||||||
|
bottom: 15px;
|
||||||
|
opacity: 0.5;
|
||||||
z-index: 31;
|
z-index: 31;
|
||||||
width: 110px;
|
|
||||||
bottom: 30px;
|
|
||||||
left: 11px;
|
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
text-align: center;
|
|
||||||
letter-spacing: 0px
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************
|
/*********************************************
|
||||||
|
2
css/reveal.min.css
vendored
2
css/reveal.min.css
vendored
File diff suppressed because one or more lines are too long
14
js/reveal.js
14
js/reveal.js
@ -35,6 +35,9 @@ var Reveal = (function(){
|
|||||||
// Display a presentation progress bar
|
// Display a presentation progress bar
|
||||||
progress: true,
|
progress: true,
|
||||||
|
|
||||||
|
// Display the page number of the current slide
|
||||||
|
slideNumber: false,
|
||||||
|
|
||||||
// Push each slide change to the browser history
|
// Push each slide change to the browser history
|
||||||
history: false,
|
history: false,
|
||||||
|
|
||||||
@ -108,10 +111,8 @@ var Reveal = (function(){
|
|||||||
viewDistance: 3,
|
viewDistance: 3,
|
||||||
|
|
||||||
// Script dependencies to load
|
// Script dependencies to load
|
||||||
dependencies: [],
|
dependencies: []
|
||||||
|
|
||||||
// Indicates whether to show the slides number
|
|
||||||
showSlideNumber: false
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// Flags if reveal.js is loaded (has dispatched the 'ready' event)
|
// Flags if reveal.js is loaded (has dispatched the 'ready' event)
|
||||||
@ -381,8 +382,8 @@ var Reveal = (function(){
|
|||||||
'<div class="navigate-up"></div>' +
|
'<div class="navigate-up"></div>' +
|
||||||
'<div class="navigate-down"></div>' );
|
'<div class="navigate-down"></div>' );
|
||||||
|
|
||||||
// slide number
|
// Slide number
|
||||||
createSingletonNode( dom.wrapper, 'div', 'slide-number', '' );
|
dom.slideNumber = createSingletonNode( dom.wrapper, 'div', 'slide-number', '' );
|
||||||
|
|
||||||
// State background element [DEPRECATED]
|
// State background element [DEPRECATED]
|
||||||
createSingletonNode( dom.wrapper, 'div', 'state-background', null );
|
createSingletonNode( dom.wrapper, 'div', 'state-background', null );
|
||||||
@ -401,7 +402,6 @@ var Reveal = (function(){
|
|||||||
dom.controlsPrev = toArray( document.querySelectorAll( '.navigate-prev' ) );
|
dom.controlsPrev = toArray( document.querySelectorAll( '.navigate-prev' ) );
|
||||||
dom.controlsNext = toArray( document.querySelectorAll( '.navigate-next' ) );
|
dom.controlsNext = toArray( document.querySelectorAll( '.navigate-next' ) );
|
||||||
|
|
||||||
dom.slideNumber = document.querySelector( '.slide-number' );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1866,7 +1866,7 @@ var Reveal = (function(){
|
|||||||
function updateSlideNumber() {
|
function updateSlideNumber() {
|
||||||
|
|
||||||
// Update slide number if enabled
|
// Update slide number if enabled
|
||||||
if( config.showSlideNumber && dom.slideNumber) {
|
if( config.slideNumber && dom.slideNumber) {
|
||||||
|
|
||||||
// Display the number of the page using 'indexh - indexv' format
|
// Display the number of the page using 'indexh - indexv' format
|
||||||
var indexString = indexh;
|
var indexString = indexh;
|
||||||
|
6
js/reveal.min.js
vendored
6
js/reveal.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user