1 <?xml version="1.0" encoding="utf-8" ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
5 <html xmlns="http://www.w3.org/1999/xhtml" >
7 <title>SimpleWebSlides</title>
9 <meta http-equiv="Content-Type"
10 content="text/html; charset=utf-8" />
11 <meta name="copyright"
12 content="Copyright © 2013 Kim Nguyễn" />
15 <script src="../jquery-1.9.1.min.js" type="text/javascript" ></script>
16 <!-- Load the library -->
17 <script src="../simpleWebSlides.js" type="text/javascript" ></script>
19 <link rel="stylesheet" href="../simpleWebSlides.css" type="text/css"
21 <!-- Load a custom Theme, the class-element marks this style-sheet
22 a "theme" that can be swtiched dynamicaly -->
23 <link class="sws-theme" rel="stylesheet" title="Web 2.0"
24 href="../themes/webTwoPointO.css" type="text/css" />
25 <link class="sws-theme" rel="alternate stylesheet" title="Default style"
26 href="../themes/default.css" type="text/css" />
28 <!-- Customize some templates and initialize -->
30 <script type="text/x-mathjax-config">
32 tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}
36 <script type="text/javascript"
37 src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS_HTML-full">
40 <script type="text/javascript">
42 // SWS.Config['sws-slide-change'] = SWS.Effects.slideChangeVerticalSlide;
43 // SWS.Config['sws-slide-change'] = SWS.Effects.slideChangeHorizontalSlide;
44 SWS.Config['sws-slide-change'] = SWS.Effects.slideChangeFadeOutIn;
45 SWS.Config['sws-object-deactivate'] = SWS.Effects.objectDeactivateFadeOut;
46 SWS.Config['sws-object-activate'] = SWS.Effects.objectActivateFadeIn;
48 //Ensures that we load SWS at the very end, after MathJax has
50 MathJax.Hub.Queue(function () {
51 SWS.Presentation.init();
54 // Some utility functions:
55 function set_color(o,c) {
56 var style = o.attr("style");
57 var a = style.split(";");
58 for(var i = 0; i < a.length; i++){
59 if (a[i].indexOf("fill:") >= 0){
64 o.attr("style",a.join(";"));
70 <style type="text/css">
75 -webkit-transform: rotate(-20deg);
76 -moz-transform: rotate(-20deg);
82 <div class="sws-slide sws-cover sws-option-nofooter">
83 <div class="centerbox">
84 <h1>SimpleWebSlides</h1>
85 <h1>An <em>HTML</em><img style="height:28pt"
86 src="HTML5_Badge.svg" alt="5"/>
87 Presentation framework</h1>
88 <a href="mailto:kim@nguyen.vg">kim@nguyen.vg</a>
92 <!-- H1 below is hidden, used for table of content (TODO) -->
95 <div class="sws-slide" >
97 <em>SimpleWebSlides</em> is simple tool that allows
98 you to build funky presentations:
100 <li class="sws-pause" >Write your presentations in (X)HTML5!</li>
101 <li class="sws-pause" >Theme to
102 your <span style='font-size:larger'>❤</span>'s content
103 with <em id="css">C S S</em>!</li>
104 <li class="sws-pause" >Create animations using Javascript & jQuery!</li>
106 <script type="text/javascript">
107 var zoom_title = function (canvas) {
108 var h1 = canvas.find("h1");
109 var old_size = h1.css('font-size');
110 h1.animate({"font-size":"80pt" }, 300)
111 .animate({"font-size":old_size }, 300);
114 SWS.Presentation.registerCallback(3, zoom_title);
118 <div class="sws-slide">
119 <h1>What's wrong with Beamer/L<sub>A</sub>T<sup>E</sup>X/Tikz?</h1>
121 <li class="sws-pause">Does not easily support smooth
123 <li class="sws-pause">Hard to program/script </li>
124 <li class="sws-pause">Using modern fonts and UTF-8 is a nightmare</li>
125 <li class="sws-pause">Slow compilation times</li>
126 <li class="sws-pause">Difficult to integrate several media
127 (videos, vector graphics, sounds,…)
130 <h1> What's wrong with Powerpoint/Keynote/LibreOffice ?</h1>
131 <span class="sws-pause">Seriously ?</span>
133 <div class="sws-slide">
134 <h1>Can I really use SWS for <i>scientific</i> presentations?</h1>
135 <p class="sws-pause">You sure can:</p>
136 <ul class="sws-pause">
138 F_n = \frac{1}{\sqrt{5}}\cdot\left(\frac{1+\sqrt{5}}{2}\right)^n-\frac{1}{\sqrt{5}}\cdot\left(\frac{1-\sqrt{5}}{2}\right)^n
141 \frac{\Gamma\cup\{x\mapsto t\}\vdash e : s}{\Gamma\vdash \lambda x^{t}.e : t \rightarrow s}
144 <p class="sws-pause"> All this is done
145 using <a href="http://www.mathjax.org">MathJax!</a> and
146 written like this:<br/>
148 \frac{ \Gamma\cup\{x\mapsto t\}\vdash e : s
149 }{ \Gamma\vdash \lambda x^{t}.e : t \rightarrow s
155 <div class="sws-slide">
156 <h1>A simple example</h1>
157 <p class="sws-onframe-1_3">
158 A minimal slide, with no animation looks like this:
160 <div <em>class="sws-slide"</em>>
161 <![CDATA[ <h1> Slide title </h1>
166 <p class="sws-pause">
167 You can also reveal things progressively like this:
170 <p ]]><em>class="sws-pause"</em><![CDATA[> Text 2 (appears afterwards) </p>]]>
173 <p class="sws-pause">
174 You can also set an element to appear on specific frames:
177 <p ]]> <em>class="sws-onframe-1-5_9"</em> <![CDATA[ >
178 Appears on frame 1, 2, 3, 4, 5, and 9 of the current slide
179 (frame numbering starts at 0).
184 <div class="sws-slide">
185 <h1>Scripting your presentation</h1>
187 Of course, you can script your presentation with Javascript!<br/>
188 You just need to add the <code>script</code> element somewhere in
189 the current <code>div</code>
192 <script type="text/javascript">
193 function zoom_title (canvas) {
194 var h1 = canvas.find("h1");
195 var old_size = h1.css('font-size');
196 h1.animate({"font-size":"80pt" }, 300)
197 .animate({"font-size":old_size }, 300);
199 //Call the zoom_title function on the 4th and 7th frame
200 ]]><em>SWS.Presentation.registerCallback("3_6", zoom_title);</em><![CDATA[
203 (That's not a bug, you should keep pressing next, see how many
204 steps there are on this slide)
207 <script type="text/javascript">
208 SWS.Presentation.registerCallback("3_6", zoom_title);
212 <div class="sws-slide">
214 You can manipulate the presentation through
215 the <em><code>SWS.Presentation</code></em> object. For instance:
217 <a onclick="SWS.Presentation.previous();">◀◀◀◀◀</a>
218 <a onclick="SWS.Presentation.next();">▶▶▶▶▶</a>
219 <a onclick="SWS.Presentation.goToSlide(1,2);">Go back in time!</a>
222 <a onclick="SWS.Presentation.previous();SWS.Presentation.refresh();">◀◀◀◀◀</a>
223 <a onclick="SWS.Presentation.next();SWS.Presentation.refresh();">▶▶▶▶▶</a>
224 <a onclick="SWS.Presentation.goToSlide(1,2);">Go
225 back in time!</a> (to the second frame of the first slide)
227 <div class="sws-slide">
228 <h1>Some more fancy stuff</h1>
229 Let's put some <em>inline</em> SVG:
230 <div style="text-align:center;">
232 xmlns:dc="http://purl.org/dc/elements/1.1/"
233 xmlns:cc="http://creativecommons.org/ns#"
234 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
235 xmlns:svg="http://www.w3.org/2000/svg"
236 xmlns="http://www.w3.org/2000/svg"
237 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
238 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
243 inkscape:version="0.48.3.1 r9886"
244 sodipodi:docname="lights.svg">
250 bordercolor="#666666"
252 inkscape:pageopacity="0.0"
253 inkscape:pageshadow="2"
255 inkscape:cx="38.9935"
256 inkscape:cy="56.441072"
257 inkscape:document-units="px"
258 inkscape:current-layer="layer1"
263 fit-margin-bottom="0"
264 inkscape:window-width="1627"
265 inkscape:window-height="1026"
266 inkscape:window-x="1077"
267 inkscape:window-y="24"
268 inkscape:window-maximized="1">
275 snapvisiblegridlinesonly="true"
276 originx="-82.348214px"
277 originy="-877.32807px" />
278 </sodipodi:namedview>
284 <dc:format>image/svg+xml</dc:format>
286 rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
292 inkscape:label="Layer 1"
293 inkscape:groupmode="layer"
295 transform="translate(-82.348214,-4.6814313)">
298 transform="matrix(1.5714286,0,0,1.5714286,-48.571431,-4.2069617)">
306 style="fill:#000a1a;fill-opacity:1;stroke:#1b373d;stroke-width:3.3829999;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0" />
308 transform="translate(132.5,-20)"
309 d="m -15,44.862183 c 0,6.903559 -5.596441,12.5 -12.5,12.5 -6.903559,0 -12.5,-5.596441 -12.5,-12.5 0,-6.90356 5.596441,-12.5 12.5,-12.5 6.903559,0 12.5,5.59644 12.5,12.5 z"
312 sodipodi:cy="44.862183"
315 style="fill:#000a1a;fill-opacity:1;stroke:#1b373d;stroke-width:3.3829999;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
316 sodipodi:type="arc" />
318 d="m -15,44.862183 c 0,6.903559 -5.596441,12.5 -12.5,12.5 -6.903559,0 -12.5,-5.596441 -12.5,-12.5 0,-6.90356 5.596441,-12.5 12.5,-12.5 6.903559,0 12.5,5.59644 12.5,12.5 z"
321 sodipodi:cy="44.862183"
324 style="fill:#000a1a;fill-opacity:1;stroke:#1b373d;stroke-width:3.3829999;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
326 transform="translate(132.5,15)" />
328 d="m -15,44.862183 c 0,6.903559 -5.596441,12.5 -12.5,12.5 -6.903559,0 -12.5,-5.596441 -12.5,-12.5 0,-6.90356 5.596441,-12.5 12.5,-12.5 6.903559,0 12.5,5.59644 12.5,12.5 z"
331 sodipodi:cy="44.862183"
334 style="fill:#000a1a;fill-opacity:1;stroke:#1b373d;stroke-width:3.3829999;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
336 transform="translate(132.5,50)" />
341 Of course we can animate it with some javascript!
342 <script type="text/javascript">
343 SWS.Presentation.registerCallback(0, function(o){
344 set_color(o.find("#topdisk"), "#000a1a");
346 SWS.Presentation.registerCallback(1, function(o){
347 set_color(o.find("#topdisk"), "#ff0000");
348 set_color(o.find("#middledisk"), "#000a1a");
350 SWS.Presentation.registerCallback(2, function(o){
351 set_color(o.find("#middledisk"), "#ffa500");
352 set_color(o.find("#bottomdisk"), "#000a1a");
354 SWS.Config['sws-slide-change'] = SWS.Effects.slideChangeFadeOutIn;
356 SWS.Presentation.registerCallback(3, function(o){
357 set_color(o.find("#bottomdisk"), "#00ff00");
358 SWS.Config['sws-slide-change'] = SWS.Effects.slideChangeHorizontalSlide;
363 <div class="sws-slide">
364 <h1>Totally customizable</h1>
366 BTW did you see how I changed the transition effect for the
369 <script type="text/javascript">
370 SWS.Presentation.registerCallback("1", zoom_title);