mirror of
https://github.com/webslides/WebSlides.git
synced 2025-08-17 02:24:12 +02:00
Adding class once webslides is ready
This commit is contained in:
@@ -4,7 +4,8 @@ import DOM from '../utils/dom';
|
|||||||
import scrollTo from '../utils/scroll-to';
|
import scrollTo from '../utils/scroll-to';
|
||||||
|
|
||||||
const CLASSES = {
|
const CLASSES = {
|
||||||
VERTICAL: 'vertical'
|
VERTICAL: 'vertical',
|
||||||
|
READY: 'ws-ready'
|
||||||
};
|
};
|
||||||
|
|
||||||
// Default plugins
|
// Default plugins
|
||||||
@@ -160,6 +161,7 @@ export default class WebSlides {
|
|||||||
onInit_() {
|
onInit_() {
|
||||||
this.initialised = true;
|
this.initialised = true;
|
||||||
DOM.fireEvent(this.el, 'ws:init');
|
DOM.fireEvent(this.el, 'ws:init');
|
||||||
|
document.documentElement.classList.add(CLASSES.READY);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user