From: Kim Nguyễn Date: Fri, 28 Jun 2013 15:01:43 +0000 (+0200) Subject: Typos. X-Git-Url: http://git.nguyen.vg/gitweb/?a=commitdiff_plain;h=77dee1505afc9d0791bcd9d29c4d6fb207be2d7c;p=hacks%2FsimpleWebSlides.git Typos. --- diff --git a/doc/demo.xhtml b/doc/demo.xhtml index c028779..0e5c813 100644 --- a/doc/demo.xhtml +++ b/doc/demo.xhtml @@ -38,9 +38,9 @@ ]]> + (That's not a bug, you should keep pressing next, see how many steps there are on this slide)

@@ -367,6 +366,9 @@ Of course we can animate it with some javascript! BTW did you see how I changed the transition effect for the previous slide ?

+ diff --git a/simpleWebSlides.js b/simpleWebSlides.js index d2859f3..d0165f0 100644 --- a/simpleWebSlides.js +++ b/simpleWebSlides.js @@ -186,13 +186,19 @@ SWS.Effects = new function () { var t = SWS.Presentation.getSlide(to); if (from < to) { t.css('left', '100%'); + t.css('opacity', '1'); SWS.Templates.slideActivate(t); - f.animate({ 'left': '-100%' }, 250, function () { SWS.Templates.slideDeactivate(f); }); - t.animate({ 'left': '0%' }, 250); + f.animate({ 'left': '-100%' }, 250, function () { SWS.Templates.slideDeactivate(f); + f.css('opacity', '0'); + t.animate({ 'left': '0%' }, 250); + }); } else { t.css('left', '-100%'); SWS.Templates.slideActivate(t); - f.animate({ 'left': '100%' }, 250, function () { SWS.Templates.slideDeactivate(f); }); + f.animate({ 'left': '100%' }, 250, function () { SWS.Templates.slideDeactivate(f); + f.css('opacity', '0'); + }); + t.css('opacity', '1'); t.animate({ 'left': '0%' }, 250); }; }; @@ -442,7 +448,8 @@ SWS.Presentation = new function () { case 32: /* space */ case 39: /* -> */ - + if (self.getCurrentSlide() == self.lastSlide() + && self.getCurrentFrame() == self.lastFrame()) return; self.next(); break; case 34: /* PgDown */ @@ -621,14 +628,6 @@ SWS.Presentation = new function () { var inner = $('
'); var content = $('
'); - var title = $('
'); - var h1 = $(this).children("h1"); - if (h1) { - h1.detach(); - title.append(h1); - } - canvas.append(title); - canvas.append($("
")); $(this).find('script[type="text/javascript"]').remove(); content.append($(this)); inner.append(content); diff --git a/themes/webTwoPointO.css b/themes/webTwoPointO.css index 4dd0c78..3031736 100644 --- a/themes/webTwoPointO.css +++ b/themes/webTwoPointO.css @@ -13,18 +13,14 @@ } /* Title of the slide */ -.sws-title { - top: 0vh; - height: 10vh; -} -.sws-title h1 { +h1 { color: #f14a29; font-size: 5vh; text-align:center; } /* The inner canvas and content */ .sws-inner-canvas { - top: 10vh; + top: 0vh; height: 85vh; } .sws-content { @@ -37,7 +33,6 @@ text-align: right; } - .sws-slide-num-sep:after { content: "/"; } @@ -52,6 +47,9 @@ body { code, pre, tt { font-family: 'Inconsolata', monospace; } +code { + white-space: pre; +} ul { list-style-type: square;