hakimel 3 سال پیش
والد
کامیت
dbb1d5ed19
8فایلهای تغییر یافته به همراه23 افزوده شده و 25 حذف شده
  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
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 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">
 <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>
 </div>

+ 16 - 18
demo.html

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

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 1
dist/reveal.css


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 1
dist/reveal.esm.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 1
dist/reveal.js


+ 1 - 1
gulpfile.js

@@ -31,7 +31,7 @@ const banner = `/*!
 * ${pkg.homepage}
 * ${pkg.homepage}
 * MIT licensed
 * MIT licensed
 *
 *
-* Copyright (C) 2011-2021 Hakim El Hattab, https://hakim.se
+* Copyright (C) 2011-2022 Hakim El Hattab, https://hakim.se
 */\n`
 */\n`
 
 
 // Prevents warnings from opening too many test pages
 // 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
  * https://revealjs.com
  * MIT licensed
  * 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 ) {
 export default function( revealElement, options ) {
 
 

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است