Hide the slide number in the title outside of present mode

pull/1/head
yflory 8 years ago
parent a38819f5b9
commit 54adb680e7

@ -68,7 +68,7 @@ define([
var setTabTitle = function (title) {
var slideNumber = '';
if (Slide.index && Slide.content.length) {
if (Slide.shown) { //Slide.index && Slide.content.length) {
slideNumber = ' (' + Slide.index + '/' + Slide.content.length + ')';
}
document.title = title + slideNumber;
@ -587,12 +587,14 @@ define([
});
Slide.onChange(function (o, n, l) {
var slideNumber = '';
if (n !== null) {
document.title = Title.title + ' (' + (++n) + '/' + l + ')';
return;
if (Slide.shown) { //Slide.index && Slide.content.length) {
slideNumber = ' (' + ++n + '/' + l + ')';
}
}
console.log("Exiting presentation mode");
document.title = Title.title;
document.title = Title.title + slideNumber;
});
Cryptpad.removeLoadingScreen();

@ -132,6 +132,7 @@ body .CodeMirror-focused .cm-matchhighlight {
page-break-after: always;
position: relative;
box-sizing: border-box;
overflow: hidden;
align-items: center;
justify-content: center;
}
@ -214,6 +215,7 @@ body .CodeMirror-focused .cm-matchhighlight {
}
.cp div.modal #content .slide-frame,
.cp div#modal #content .slide-frame {
overflow: hidden;
display: inline-block;
box-sizing: border-box;
border: 1px solid;

@ -138,6 +138,7 @@ body {
page-break-after: always;
position: relative;
box-sizing: border-box;
overflow: hidden;
li {
min-width: @ratio*50vw;
}
@ -210,6 +211,7 @@ div.modal, div#modal {
overflow: visible;
white-space: nowrap;
.slide-frame {
overflow: hidden;
display: inline-block;
box-sizing: border-box;
border: 1px solid;

Loading…
Cancel
Save