home page -> school page; + PageSchool component

This commit is contained in:
tmshv committed 2016-02-25 18:20:16 +03:00
1 parent 5c72276b5e
commit 57141313e9
7 files changed
+52 -50

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
import template from '../../templates/components/page-school.html';
export default function (app) {
app.component('pageSchool', {
template: template,
controller: () => {
this.pageClass = 'page-school';
let fotorama;
let $tape = $('.tape-block');
let $fotorama = $tape.find('.tape-block__content');
$tape.addClass('simplified');
$fotorama.on('fotorama:ready', () => {
$tape.removeClass('simplified');
fotorama.setOptions({
nav: 'dots',
transition: 'crossfade',
autoplay: '6000',
arrows: 'false',
width: '100%',
fit: 'cover',
loop: 'true'
});
});
fotorama = $fotorama.fotorama().data('fotorama');
setTimeout(() => {
fotorama.load([
{img: 'https://static.shburg.org/art/img/cat1.jpg'},
{img: 'https://static.shburg.org/art/img/cat2.jpg'},
{img: 'https://static.shburg.org/art/img/cat3.jpg'}
]);
}, 100);
}
});
};