mirror of https://github.com/yjwen/org-reveal.git
Merge pull request #451 from tttuuu888/work-issue-450
Fix Error "Symbol’s value as variable is void: classList" #450
This commit is contained in:
commit
fe9148b670
46
ox-reveal.el
46
ox-reveal.el
|
@ -675,38 +675,38 @@ dependencies: [
|
||||||
"
|
"
|
||||||
;; JS libraries
|
;; JS libraries
|
||||||
(let* ((builtins
|
(let* ((builtins
|
||||||
(list
|
'(
|
||||||
classList (format " { src: '%slib/js/classList.js', condition: function() { return !document.body.classList; } }" root-path)
|
classList (format " { src: '%slib/js/classList.js', condition: function() { return !document.body.classList; } }" root-path)
|
||||||
markdown (format " { src: '%splugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
|
markdown (format " { src: '%splugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
|
||||||
{ src: '%splugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }" root-path root-path)
|
{ src: '%splugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }" root-path root-path)
|
||||||
highlight (format " { src: '%splugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }" root-path)
|
highlight (format " { src: '%splugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }" root-path)
|
||||||
zoom (format " { src: '%splugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } }" root-path)
|
zoom (format " { src: '%splugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } }" root-path)
|
||||||
notes (format " { src: '%splugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }" root-path)
|
notes (format " { src: '%splugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }" root-path)
|
||||||
search (format " { src: '%splugin/search/search.js', async: true, condition: function() { return !!document.body.classList; } }" root-path)
|
search (format " { src: '%splugin/search/search.js', async: true, condition: function() { return !!document.body.classList; } }" root-path)
|
||||||
remotes (format " { src: '%splugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } }" root-path)
|
remotes (format " { src: '%splugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } }" root-path)
|
||||||
;; multiplex setup for reveal.js 3.x
|
;; multiplex setup for reveal.js 3.x
|
||||||
multiplex (format " { src: '%s', async: true },\n%s"
|
multiplex (format " { src: '%s', async: true },\n%s"
|
||||||
(plist-get info :reveal-multiplex-socketio-url)
|
(plist-get info :reveal-multiplex-socketio-url)
|
||||||
; following ensures that either client.js or master.js is included depending on defva client-multiplex value state
|
; following ensures that either client.js or master.js is included depending on defva client-multiplex value state
|
||||||
(if (not client-multiplex)
|
(if (not client-multiplex)
|
||||||
(progn
|
(progn
|
||||||
(if (plist-get info :reveal-multiplex-secret)
|
(if (plist-get info :reveal-multiplex-secret)
|
||||||
(setq client-multiplex t))
|
(setq client-multiplex t))
|
||||||
(format " { src: '%splugin/multiplex/master.js', async: true }" root-path))
|
(format " { src: '%splugin/multiplex/master.js', async: true }" root-path))
|
||||||
(format " { src: '%splugin/multiplex/client.js', async: true }" root-path)))))
|
(format " { src: '%splugin/multiplex/client.js', async: true }" root-path)))))
|
||||||
(builtin-codes
|
(builtin-codes
|
||||||
(mapcar (lambda (p)
|
(mapcar (lambda (p)
|
||||||
(eval (plist-get builtins p)))
|
(eval (plist-get builtins p)))
|
||||||
plugins))
|
plugins))
|
||||||
(external-plugins
|
(external-plugins
|
||||||
(append
|
(append
|
||||||
;; Global setting
|
;; Global setting
|
||||||
(cl-loop for (key . value) in org-reveal-external-plugins
|
(cl-loop for (key . value) in org-reveal-external-plugins
|
||||||
collect (format value root-path ))
|
collect (format value root-path ))
|
||||||
;; Local settings
|
;; Local settings
|
||||||
(let ((local-plugins (plist-get info :reveal-external-plugins)))
|
(let ((local-plugins (plist-get info :reveal-external-plugins)))
|
||||||
(and local-plugins
|
(and local-plugins
|
||||||
(list (format local-plugins root-path))))))
|
(list (format local-plugins root-path))))))
|
||||||
|
|
||||||
(all-plugins (if external-plugins (append external-plugins builtin-codes) builtin-codes))
|
(all-plugins (if external-plugins (append external-plugins builtin-codes) builtin-codes))
|
||||||
(extra-codes (plist-get info :reveal-extra-js))
|
(extra-codes (plist-get info :reveal-extra-js))
|
||||||
|
|
Loading…
Reference in New Issue