forked from projects/fipamo
ro
a5583debbd
to complete page rendering, the default theme needed to be converted to use blade templating. rather than update the theme kit as a seperate progress, it will be integrated into this codebase so themes can be developed and tested in app. the basics for the theme kit are in place, so now conversion of the defualt theme can be completed. once the that is done, it can then be used to complete the rendering engine to export HTML files
28 lines
687 B
JavaScript
28 lines
687 B
JavaScript
export default class Base {
|
|
//--------------------------
|
|
// constructor
|
|
//--------------------------
|
|
constructor() {
|
|
this.currentSlide = 0;
|
|
this.slides = document.querySelectorAll('[role="slide"]');
|
|
//alert('FRESH');
|
|
this.start();
|
|
}
|
|
start() {
|
|
if (this.slides.length > 1) {
|
|
this.slideInterval = setInterval(() => {
|
|
this.slides[this.currentSlide].className = 'hide';
|
|
this.currentSlide = (this.currentSlide + 1) % this.slides.length;
|
|
this.slides[this.currentSlide].className = 'show';
|
|
}, 3000);
|
|
}
|
|
}
|
|
//--------------------------
|
|
// methods
|
|
//--------------------------
|
|
|
|
//--------------------------
|
|
// event handlers
|
|
//--------------------------
|
|
}
|