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

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

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

Loading…
Cancel
Save