hakimel 3 ani în urmă
părinte
comite
dbb1d5ed19
8 a modificat fișierele cu 23 adăugiri și 25 ștergeri
  1. 1 1
      LICENSE
  2. 1 1
      README.md
  3. 16 18
      demo.html
  4. 1 1
      dist/reveal.css
  5. 1 1
      dist/reveal.esm.js
  6. 1 1
      dist/reveal.js
  7. 1 1
      gulpfile.js
  8. 1 1
      js/reveal.js

+ 1 - 1
LICENSE

@@ -1,4 +1,4 @@
-Copyright (C) 2011-2021 Hakim El Hattab, http://hakim.se, and reveal.js contributors
+Copyright (C) 2011-2022 Hakim El Hattab, http://hakim.se, and reveal.js contributors
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal

+ 1 - 1
README.md

@@ -48,5 +48,5 @@ Want to create your presentation using a visual editor? Try the official reveal.
 
 --- 
 <div align="center">
-  MIT licensed | Copyright © 2011-2021 Hakim El Hattab, https://hakim.se
+  MIT licensed | Copyright © 2011-2022 Hakim El Hattab, https://hakim.se
 </div>

+ 16 - 18
demo.html

@@ -451,25 +451,23 @@ Reveal.on( 'customevent', function() {
 		</div>
 
 		<script src="dist/reveal.js"></script>
-		<script src="plugin/zoom/zoom.js"></script>
-		<script src="plugin/notes/notes.js"></script>
-		<script src="plugin/search/search.js"></script>
-		<script src="plugin/markdown/markdown.js"></script>
-		<script src="plugin/highlight/highlight.js"></script>
 		<script>
-
-			// Also available as an ES module, see:
-			// https://revealjs.com/initialization/
-			Reveal.initialize({
-				controls: true,
-				progress: true,
-				center: true,
-				hash: true,
-
-				// Learn about plugins: https://revealjs.com/plugins/
-				plugins: [ RevealZoom, RevealNotes, RevealSearch, RevealMarkdown, RevealHighlight ]
-			});
-
+			Reveal.initialize();
+
+			const loadScript = src => {
+				return new Promise((resolve, reject) => {
+						const script = document.createElement('script');
+						script.type = 'text/javascript';
+						script.onload = resolve;
+						script.onerror = reject;
+						script.src = src;
+						document.head.append(script);
+				})
+			}
+
+			loadScript( 'plugin/highlight/highlight.js' ).then(() => {
+				Reveal.registerPlugin( RevealHighlight )
+			})
 		</script>
 
 	</body>

Fișier diff suprimat deoarece este prea mare
+ 1 - 1
dist/reveal.css


Fișier diff suprimat deoarece este prea mare
+ 1 - 1
dist/reveal.esm.js


Fișier diff suprimat deoarece este prea mare
+ 1 - 1
dist/reveal.js


+ 1 - 1
gulpfile.js

@@ -31,7 +31,7 @@ const banner = `/*!
 * ${pkg.homepage}
 * MIT licensed
 *
-* Copyright (C) 2011-2021 Hakim El Hattab, https://hakim.se
+* Copyright (C) 2011-2022 Hakim El Hattab, https://hakim.se
 */\n`
 
 // Prevents warnings from opening too many test pages

+ 1 - 1
js/reveal.js

@@ -33,7 +33,7 @@ export const VERSION = '4.2.1';
  * https://revealjs.com
  * MIT licensed
  *
- * Copyright (C) 2011-2021 Hakim El Hattab, https://hakim.se
+ * Copyright (C) 2011-2022 Hakim El Hattab, https://hakim.se
  */
 export default function( revealElement, options ) {
 

Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff