From 5d0535966c560d89d1b39710b2cee4dda47562f8 Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 11 May 2017 10:58:33 +0200 Subject: [PATCH] Center vertically slides in present mode and checkbox to disable transitions --- customize.dist/translations/messages.fr.js | 1 + customize.dist/translations/messages.js | 1 + www/slide/main.js | 8 ++++++++ www/slide/slide.css | 8 ++++++-- www/slide/slide.js | 4 ++++ www/slide/slide.less | 7 +++++-- 6 files changed, 25 insertions(+), 4 deletions(-) diff --git a/customize.dist/translations/messages.fr.js b/customize.dist/translations/messages.fr.js index 3d8ad6060..d8e6f73d2 100644 --- a/customize.dist/translations/messages.fr.js +++ b/customize.dist/translations/messages.fr.js @@ -107,6 +107,7 @@ define(function () { out.printDate = "Afficher la date"; out.printTitle = "Afficher le titre du pad"; out.printCSS = "Personnaliser l'apparence (CSS):"; + out.printTransition = "Activer les animations de transition"; out.slideOptionsTitle = "Personnaliser la présentation"; out.slideOptionsButton = "Enregistrer (Entrée)"; diff --git a/customize.dist/translations/messages.js b/customize.dist/translations/messages.js index 9219ab457..afdbdc6b2 100644 --- a/customize.dist/translations/messages.js +++ b/customize.dist/translations/messages.js @@ -109,6 +109,7 @@ define(function () { out.printDate = "Display the date"; out.printTitle = "Display the pad title"; out.printCSS = "Custom style rules (CSS):"; + out.printTransition = "Enable transition animations"; out.slideOptionsTitle = "Customize your slides"; out.slideOptionsButton = "Save (enter)"; diff --git a/www/slide/main.js b/www/slide/main.js index b5dd26704..c8463e5a6 100644 --- a/www/slide/main.js +++ b/www/slide/main.js @@ -188,6 +188,7 @@ define([ title: false, slide: false, date: false, + transition: true, style: '' }; @@ -220,6 +221,13 @@ define([ }).appendTo($p).css('width', 'auto'); $('