Jelajahi Sumber

added missing documentation

Martin Jurča 6 tahun lalu
induk
melakukan
250580fc4c
2 mengubah file dengan 22 tambahan dan 3 penghapusan
  1. 20 3
      index.html
  2. 2 0
      js/reveal.js

+ 20 - 3
index.html

@@ -24,8 +24,23 @@
 	<body>
 		<div class="reveal">
 			<div class="slides">
-				<section>Slide 1</section>
-				<section>Slide 2</section>
+				<section data-timing="6">
+					Slide 1
+
+					<aside>
+						these are not notes
+					</aside>
+					<aside class="notes">
+						these are notes for the first slide
+					</aside>
+				</section>
+				<section>
+					Slide 2
+
+					<aside class="notes">
+						these are the nodes for the second slide
+					</aside>
+				</section>
 			</div>
 		</div>
 
@@ -42,7 +57,9 @@
 					{ src: 'plugin/markdown/markdown.js' },
 					{ src: 'plugin/notes/notes.js', async: true },
 					{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }
-				]
+				],
+				controlsTutorial: false,
+				defaultTiming: 3
 			});
 		</script>
 	</body>

+ 2 - 0
js/reveal.js

@@ -5269,6 +5269,8 @@
 		// Returns an Array of all slides
 		getSlides: getSlides,
 
+		// Returns an Array of objects representing the attributes on
+		// the slides
 		getSlidesMetaInfo: getSlidesMetaInfo,
 
 		// Returns the total number of slides