Nantes Université

Skip to content
Extraits de code Groupes Projets
index.html 15,5 ko
Newer Older
  • Learn to ignore specific revisions
  • <!doctype html>
    <html lang="en">
    
    
        <meta charset="utf-8">
    
        <title>stereopticon</title>
    
        <meta name="description" content="A reveal.js theme slightly inspired by LaTeX/Beamer.">
        <meta name="author" content="Erwan Bousse">
    
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    Erwan Bousse's avatar
    Erwan Bousse a validé
        <link rel="stylesheet" href="../reveal.js/css/reset.css">
        <link rel="stylesheet" href="../reveal.js/css/reveal.css">
    
    Erwan BOUSSE's avatar
    Erwan BOUSSE a validé
    
    
        <!-- Here we setup the stereopticon theme-->
    
    Erwan Bousse's avatar
    Erwan Bousse a validé
        <link rel="stylesheet" href="../reveal.js/css/theme/stereopticon.css" id="theme">
    
        <!-- Theme used for syntax highlighting of code -->
    
    Erwan Bousse's avatar
    Erwan Bousse a validé
        <link rel="stylesheet" href="../reveal.js/lib/css/monokai.css">
    
        <!-- Printing and PDF exports -->
        <script>
            var link = document.createElement('link');
            link.rel = 'stylesheet';
            link.type = 'text/css';
    
    Erwan Bousse's avatar
    Erwan Bousse a validé
            link.href = window.location.search.match(/print-pdf/gi) ? '../reveal.js/css/print/pdf.css' : '../reveal.js/css/print/paper.css';
    
            document.getElementsByTagName('head')[0].appendChild(link);
        </script>
    
        <div class="reveal">
    
            <!-- Any section element inside of this container is displayed as a slide -->
            <div class="slides">
                <section class="title">
                    <h1>stereopticon</h1>
    
                    <div class="subtitle">
                        A reveal.js theme slightly inspired by LaTeX/Beamer.
                    </div>
    
    
                    <div class="authors">
                        <div class="author">
                            <div class="name">
                                Erwan Bousse
                            </div>
                            <div class="institution">
                                University of Nantes − LS2N, France
                            </div>
                        </div>
    
                        <div class="author">
                            <div class="name">
                                An imaginary second author
                            </div>
                            <div class="institution">
                                From somewhere
                            </div>
                        </div>
    
                    </div>
    
                </section>
    
                <section>
                    <h2>Hello There!</h2>
    
                    <h3>Description</h3>
    
                    <p>
    
    Erwan Bousse's avatar
    Erwan Bousse a validé
                        <em>stereopticon</em> is a <a href="https://github.com/hakimel/../reveal.js/">reveal.js</a> theme
    
                        slightly inspired by typical LaTeX/Beamer themes.
                    </p>
    
                    <h3>Some characteristics</h3>
    
                    <ul>
                        <li>Titles of regular slides are rendered at the top.</li>
                        <li>Left-aligned text.</li>
                        <li>Fancy <strong>fonts</strong>:</li>
                        <ul>
                            <li><em>Yanone Kaffeesatz</em> for titles,</li>
                            <li><em>Open Sans</em> for regular text.</li>
                        </ul>
                        <li>Many extra "helper" CSS classes (for columns, blocks, etc.). </li>
                    </ul>
    
                </section>
    
                <section>
                    <h2>Title Page</h2>
                    <p>The elements of a <strong>title page</strong> can be styled using the following provided CSS classes:</p>
                    <ul>
                        <li><code>title</code>, as a class for the reveal/js <code>section</code> (dark background etc.),</li>
                        <li><code>subtitle</code> for the subtitle element (header font, etc.),</li>
    
                        <li><code>authors</code> for the authors block, with inside:
                            <ul>
                                <li><code>author</code> to declare an author block,</li>
                                <li><code>name</code> to name an author inside an <code>author</code> block,</li>
                                <li><code>institution</code> to give the institution inside an <code>author</code> block,</li>
                            </ul>
                        </li>
                        <li><code>speaker</code> to tag an author's name as the speaker (dashed underline).</li>
    
                    </ul>
                </section>
    
                <!-- Example of nested vertical slides -->
                <section>
                    <section>
                        <h2>Vertical Slides</h2>
                        <p>Vertical slides work as expected.</p>
    
                    </section>
                    <section>
                        <h2>Basement Level 1</h2>
                        <p>You can go even deeper!
                        </p>
                    </section>
                    <section>
                        <h2>Basement Level 2</h2>
                        <p>That's it, time to go back up.</p>
    
                    </section>
                </section>
    
                <section class="impact">
                    <h2>Now for an <strong>impact</strong> slide.</h2>
                    <p>Can be used for a nice transition.</p>
                    <p>Enabled with <code>class="impact"</code>.</p>
                </section>
    
    
                <section id="fragments">
                    <h2>Fragments</h2>
                    <p>Hit the next arrow...</p>
                    <p class="fragment">... to step through ...</p>
                    <p><span class="fragment">... a</span> <span class="fragment">fragmented</span> <span class="fragment">slide.</span></p>
                </section>
    
    
                <section>
                    <h2>Pretty Code</h2>
                    <pre><code class="hljs" data-trim data-line-numbers="4,8-11">
    
    import React, { useState } from 'react';
    
    function Example() {
      const [count, setCount] = useState(0);
    
      return (
        &lt;div&gt;
          &lt;p&gt;You clicked {count} times&lt;/p&gt;
          &lt;button onClick={() =&gt; setCount(count + 1)}&gt;
            Click me
          &lt;/button&gt;
        &lt;/div&gt;
      );
    }
    					</code></pre>
    
                    <p>Code syntax highlighting courtesy of <a href="http://softwaremaniacs.org/soft/highlight/en/description/">highlight.js</a>.</p>
                </section>
    
    
    
                <section>
                    <h2>Longer code snippet</h2>
                    <pre><code class="hljs">public static void stringMatch(String one, String two) {
        boolean match = false;
        if (one.charAt(0) == two.charAt(0)) {
            System.out.println(match = true);   // returns true
        } else {
            System.out.println(match);       // returns false
        }
        for (int i = 0; i < two.length(); i++) {  
            int temp = i;
            for (int x = 0; x < one.length(); x++) {
                if (two.charAt(temp) == one.charAt(x)) {
                    System.out.println(match = true);    //returns true
                    i = two.length();
                }
            }
        }
        int num1 = one.length() - 1;
        int num2 = two.length() - 1;
        if (one.charAt(num1) == two.charAt(num2)) {
            System.out.println(match = true);
        } else {
            System.out.println(match = false);
        }
    }</code></pre>
                </section>
    
    
                <section>
                    <h2>Normal List</h2>
                    <ul>
                        <li>No order here</li>
                        <li>Or here</li>
                        <li>Or here</li>
                        <li>Or here, but a sublist:</li>
                        <ul>
                            <li>with</li>
                            <li>different things</li>
                        </ul>
                    </ul>
                </section>
    
                <section>
                    <h2>Ordered List</h2>
                    <ol>
                        <li>One is smaller than...</li>
                        <li>Two is smaller than...</li>
                        <li>Three!</li>
                    </ol>
                </section>
    
                <section>
                    <h2>Tabular Tables</h2>
                    <table>
                        <thead>
                            <tr>
                                <th>Item</th>
                                <th>Value</th>
                                <th>Quantity</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>Apples</td>
                                <td>$1</td>
                                <td>7</td>
                            </tr>
                            <tr>
                                <td>Lemonade</td>
                                <td>$2</td>
                                <td>18</td>
                            </tr>
                            <tr>
                                <td>Bread</td>
                                <td>$3</td>
                                <td>2</td>
                            </tr>
                        </tbody>
                    </table>
                </section>
    
                <section>
                    <h2>Block quote</h2>
                    <p>
                        A block quote can be declared with <code>blockquote</code>.
                    </p>
                    <blockquote cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
                        For years there has been a theory that millions of monkeys typing at random on millions of
                        typewriters would
                        reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.
                    </blockquote>
                </section>
    
                <section>
                    <h2>Columns</h2>
    
                    <ul>
                        <li>
                            <p>Some <strong>utility CSS classes</strong> are provided, such as <code>col-X</code> (with X a
                                number between 1 and 12) to declare a column that uses X/12th of the available width.</p>
                        </li>
                        <li>
                            <p>
                                Columns must be declared within a container that has the <code>columns</code> class.
                            </p>
                        </li>
    
                        <li>
                            Example with three columns (each a <code>col-4</code>):
                        </li>
                    </ul>
    
                    <div class="vspace-20"></div>
    
    
                    <div class="cols">
    
                        <div class="col-4">
                            <h3>First column</h3>
                            <ul>
                                <li>
                                    an item
                                </li>
                                <li>
                                    an item
                                </li>
                                <li>
                                    an item
                                </li>
                            </ul>
                        </div>
    
                        <div class="col-4">
                            <h3>Second column</h3>
                            <ol>
                                <li>
                                    an item
                                </li>
                                <li>
                                    an item
                                </li>
                                <li>
                                    an item
                                </li>
                            </ol>
                        </div>
    
                        <div class="col-4">
                            <h3>Third column</h3>
                            <ul>
                                <li>
                                    an item
                                </li>
                                <li>
                                    an item
                                </li>
                                <li>
                                    an item
                                </li>
                            </ul>
                        </div>
                    </div>
                </section>
    
                <section>
                    <h2>More columns</h2>
                    <p>Example with an image:</p>
    
    
                    <div class="cols">
    
    
                        <div class="col-7">
                            <ul>
                                <li>On the right is an old <b>stereopticon</b>.</li>
                                <li>It is a projector from the <b>mid 19th century</b>.</li>
                                <li>It uses <b>two lenses</b> to be able to transition smoothly from one image to another.</li>
                            </ul>
    
                        </div>
    
                        <div class="col-4">
                            <img src="img/old-stereopticon.jpg">
                        </div>
    
                    </div>
    
                </section>
    
                <section>
                    <h2>Vertical spacing</h2>
                    <p>The CSS class <code>vspace-X</code> (with X a number between 1 and 200) can be applied on an element
                        to add a blank vertical space of X pixels before the element.</p>
                    <p>It can also be applied to an empty <code>div</code>.</p>
                    <p class="vspace-150">As an example, this paragraph has a <code>vspace-150</code>!</p>
    
                </section>
    
                <section>
                    <h2>Blocks</h2>
    
                    <p>The CSS class <code>block</code> can be used to put things in blocks.</p>
    
                    <div class="block">
                        <h3>Example of block</h3>
                        <p>Hello!</p>
                    </div>
    
    
                </section>
    
    
                <section>
                    <h2>References (1)</h2>
    
                    <p>The CSS class <code>references</code> can be used to put references at the bottom of a slide. Each reference must have the <code>reference</code> class.</p>
                    <p>However there is no clean way yet to cite a reference in the body of the slide.</p>
    
                    <div class="references">
                        <div class="reference">Einstein, Albert. The Meaning of Relativity. Princeton: Princeton University Press, 1923.</div>
                        <div class="reference">Global Campaign for Education. “Girls Can’t Wait: Why Girls’ Education Matters and How to Make It Happen Now: Briefing Paper for the UN Beijing 10 Review and Appraisal.” Reproductive Health Matters 13, no. 25 (May 2005): 19–22. http://www.jstor.org/stable/3776224.</div>
                    </div>
    
    
                </section>
    
                <section>
    
                    <h2>References (2)</h2>
    
                    <p>The identifiers of references keep incrementing accross slides.</p>
    
                    <div class="references">
                        <div class="reference">Andy Hunt & Dave Thomas. The Pragmatic Programmer: From Journeyman to Master. Addison-Wesley. 1999.</div>
                        <div class="reference">Erich Gamma, Richard Helm, Ralph Johnson & John Vlissides. Design Patterns: Elements of Reusable Object-Oriented Software. Addison-Wesley. 1994.</div>
                    </div>
    
    
                </section>
    
    Erwan Bousse's avatar
    Erwan Bousse a validé
        <script src="../reveal.js/js/reveal.js"></script>
    
    
        <script>
    
            // More info https://github.com/hakimel/reveal.js#configuration
            Reveal.initialize({
                controls: true,
                progress: true,
                hash: true,
    
                center: false,
                display: 'flex',
                width: 1920,
                height: 1080,
    
                transition: 'none', // none/fade/slide/convex/concave/zoom
    
                // More info https://github.com/hakimel/reveal.js#dependencies
                dependencies: [
    
    Erwan Bousse's avatar
    Erwan Bousse a validé
                    { src: '../reveal.js/plugin/markdown/marked.js', condition: function () { return !!document.querySelector('[data-markdown]'); } },
                    { src: '../reveal.js/plugin/markdown/markdown.js', condition: function () { return !!document.querySelector('[data-markdown]'); } },
                    { src: '../reveal.js/plugin/highlight/highlight.js', async: true },
                    { src: '../reveal.js/plugin/search/search.js', async: true },
                    { src: '../reveal.js/plugin/zoom-js/zoom.js', async: true },
                    { src: '../reveal.js/plugin/notes/notes.js', async: true }