Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New class name for the overlay container #187

Open
chnchg opened this issue Feb 25, 2025 · 1 comment
Open

New class name for the overlay container #187

chnchg opened this issue Feb 25, 2025 · 1 comment

Comments

@chnchg
Copy link

chnchg commented Feb 25, 2025

In the recent commit of reveal.js,

hakimel/reveal.js@fe67bad

the class name of the container is changed to "r-overlay". Please add the new class name additionally to the created container in "chalkboard/plugin.js", so that the latest version of reveal.js will also be supported.

--- a/chalkboard/plugin.js
+++ b/chalkboard/plugin.js
@@ -424,6 +424,7 @@ const initChalkboard = function ( Reveal ) {
                var container = document.createElement( 'div' );
                container.id = drawingCanvas[ id ].id;
                container.classList.add( 'overlay' );
+               container.classList.add( 'r-overlay' );
                container.setAttribute( 'data-prevent-swipe', 'true' );
                container.oncontextmenu = function () {
                        return false; 
@rajgoel
Copy link
Owner

rajgoel commented Feb 26, 2025

Can you please create a pull request for this? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants