Skip to content

Conversation

szalonna
Copy link

If slide has a 'p' element (as a caption), adds a 'with-caption' class to slide. With this can make different formatting for slides with and without caption.

@@ -140,6 +140,7 @@
// Add ID's to each slide
$slide.each(function (i) {
this.id = slideClassPrefix + i;
$(this).has('p').addClass('with-caption');
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May change 'p' element checking to custom variable to make possible to assign custom element as caption.

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

Successfully merging this pull request may close these issues.

1 participant