diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2011-12-26 00:00:38 -0800 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2011-12-26 00:00:38 -0800 |
commit | c7c7735e7ac34b26295b30d3aef51947f939692c (patch) | |
tree | 59cfca7ecca45e05222e0f93d968d3ec91955cca /index.html | |
parent | 1ac6386eef529bf717a726ea06cd0848b9a68bde (diff) | |
download | fosdem-2018-presentation-c7c7735e7ac34b26295b30d3aef51947f939692c.tar fosdem-2018-presentation-c7c7735e7ac34b26295b30d3aef51947f939692c.tar.gz |
added new transitions (box/page) and a ui theme (neon)
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 51 |
1 files changed, 49 insertions, 2 deletions
@@ -195,6 +195,12 @@ linkify( 'a' ); <script src="js/reveal.js"></script> <script src="lib/highlight.js"></script> <script> + // Parse the query string into a key/value object + var query = {}; + location.search.replace( /[A-Z0-9]+?=(\w*)/gi, function(a) { + query[ a.split( '=' ).shift() ] = a.split( '=' ).pop(); + } ); + Reveal.initialize({ // Display controls in the bottom right corner controls: true, @@ -205,13 +211,54 @@ linkify( 'a' ); // Apply a 3D roll to links on hover rollingLinks: true, - // Styling themes, only affects transitions for now - theme: 'default' // default/concave/linear + // UI style + theme: query.theme || 'default', // default/neon + + // Transition style + transition: query.transition || 'default' // default/box/page/concave/linear(2d), }); hljs.initHighlightingOnLoad(); </script> + <!-- Everything below this point is unrelated to the slideshow --> + + <div style="position: absolute; bottom: 10px; left: 50%; margin-left: -160px"> + <a href="http://twitter.com/share" class="twitter-share-button" data-text="reveal.js - a 3D slideshow tool from @hakimel." data-url="http://lab.hakim.se/reveal-js" data-count="small" data-related="hakimel"></a> + + <iframe id="facebook-button" src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fapp.hakim.se%2Freveal-js%2F&layout=button_count&show_faces=false&width=93&action=like&font=arial&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:85px; height:24px; position: relative; top: 4px;" allowTransparency="true"></iframe> + <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> + + <script type="text/javascript"> + /* <![CDATA[ */ + (function() { + var s = document.createElement('script'), t = document.getElementsByTagName('script')[0]; + s.type = 'text/javascript'; + s.async = true; + s.src = 'http://api.flattr.com/js/0.6/load.js?mode=auto'; + t.parentNode.insertBefore(s, t); + })(); + /* ]]> */ + </script> + + <a class="FlattrButton" style="display:none;" rev="flattr;button:compact;" href="http://lab.hakim.se/reveal-js"></a> + <noscript><a href="http://flattr.com/thing/447435/Reveal-js" target="_blank"> + <img src="http://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" border="0" /></a></noscript> + </div> + + <a href="https://github.com/hakimel/reveal.js"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://a248.e.akamai.net/assets.github.com/img/7afbc8b248c68eb468279e8c17986ad46549fb71/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub"></a> + + <script> + var _gaq = [['_setAccount', 'UA-15240703-1'], ['_trackPageview']]; + (function(d, t) { + var g = d.createElement(t), + s = d.getElementsByTagName(t)[0]; + g.async = true; + g.src = ('https:' == location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + s.parentNode.insertBefore(g, s); + })(document, 'script'); + </script> + </body> </html>
\ No newline at end of file |