Reveal.js - Empty HTML File


/ Published in: HTML
Save to your folder(s)

This snippet is an HTML file ready for Reveal.js


Copy this code and paste it in your HTML
  1. <!doctype html>
  2. <html lang="en">
  3.  
  4. <head>
  5. <meta charset="utf-8">
  6.  
  7. <title>reveal.js - The HTML Presentation Framework</title>
  8.  
  9. <meta name="description" content="A framework for easily creating beautiful presentations using HTML">
  10. <meta name="author" content="Hakim El Hattab">
  11.  
  12. <meta name="apple-mobile-web-app-capable" content="yes" />
  13. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
  14.  
  15. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  16.  
  17. <link rel="stylesheet" href="css/reveal.min.css">
  18. <link rel="stylesheet" href="css/theme/default.css" id="theme">
  19.  
  20. <!-- For syntax highlighting -->
  21. <link rel="stylesheet" href="lib/css/zenburn.css">
  22.  
  23. <!-- If the query includes 'print-pdf', use the PDF print sheet -->
  24. document.write( '<link rel="stylesheet" href="css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' );
  25. </script>
  26.  
  27. <!--[if lt IE 9]>
  28. <script src="lib/js/html5shiv.js"></script>
  29. <![endif]-->
  30. </head>
  31.  
  32. <body>
  33. <div class="reveal">
  34. <!-- Any section element inside of this container is displayed as a slide -->
  35. <div class="slides">
  36. <!-- PUT SLIDES HERE -->
  37. </div>
  38. </div>
  39. <script src="lib/js/head.min.js"></script>
  40. <script src="js/reveal.min.js"></script>
  41.  
  42. // Full list of configuration options available here:
  43. // https://github.com/hakimel/reveal.js#configuration
  44. Reveal.initialize({
  45. controls: true,
  46. progress: true,
  47. history: true,
  48. center: true,
  49.  
  50. theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
  51. transition: Reveal.getQueryHash().transition || 'default', // default/cube/page/concave/zoom/linear/fade/none
  52.  
  53. // Optional libraries used to extend on reveal.js
  54. dependencies: [
  55. { src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
  56. { src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
  57. { src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
  58. { src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
  59. { src: 'plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
  60. { src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
  61. // { src: 'plugin/search/search.js', async: true, condition: function() { return !!document.body.classList; } }
  62. // { src: 'plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } }
  63. ]
  64. });
  65.  
  66. </script>
  67.  
  68. </body>
  69. </html>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.