1
0
mirror of https://github.com/webslides/WebSlides.git synced 2025-08-16 01:54:53 +02:00

Adding class once webslides is ready

This commit is contained in:
Antonio Laguna
2017-03-19 22:30:56 +01:00
parent aa54207108
commit dff7b2b771

View File

@@ -4,7 +4,8 @@ import DOM from '../utils/dom';
import scrollTo from '../utils/scroll-to';
const CLASSES = {
VERTICAL: 'vertical'
VERTICAL: 'vertical',
READY: 'ws-ready'
};
// Default plugins
@@ -160,6 +161,7 @@ export default class WebSlides {
onInit_() {
this.initialised = true;
DOM.fireEvent(this.el, 'ws:init');
document.documentElement.classList.add(CLASSES.READY);
}
/**