tape-viewer disabled
This commit is contained in:
1 parent
592def0101
commit
fee8ab9c7a
1 file changed
+26
-26
@@ -6,32 +6,32 @@ export default function (app) {
|
|||||||
controller: function() {
|
controller: function() {
|
||||||
this.pageClass = 'page-school';
|
this.pageClass = 'page-school';
|
||||||
|
|
||||||
let fotorama;
|
//let fotorama;
|
||||||
let $tape = $('.tape-block');
|
//let $tape = $('.tape-block');
|
||||||
let $fotorama = $tape.find('.tape-block__content');
|
//let $fotorama = $tape.find('.tape-block__content');
|
||||||
|
//
|
||||||
$tape.addClass('simplified');
|
//$tape.addClass('simplified');
|
||||||
$fotorama.on('fotorama:ready', () => {
|
//$fotorama.on('fotorama:ready', () => {
|
||||||
$tape.removeClass('simplified');
|
// $tape.removeClass('simplified');
|
||||||
fotorama.setOptions({
|
// fotorama.setOptions({
|
||||||
nav: 'dots',
|
// nav: 'dots',
|
||||||
transition: 'crossfade',
|
// transition: 'crossfade',
|
||||||
autoplay: '6000',
|
// autoplay: '6000',
|
||||||
arrows: 'false',
|
// arrows: 'false',
|
||||||
width: '100%',
|
// width: '100%',
|
||||||
fit: 'cover',
|
// fit: 'cover',
|
||||||
loop: 'true'
|
// loop: 'true'
|
||||||
});
|
// });
|
||||||
});
|
//});
|
||||||
|
//
|
||||||
fotorama = $fotorama.fotorama().data('fotorama');
|
//fotorama = $fotorama.fotorama().data('fotorama');
|
||||||
setTimeout(() => {
|
//setTimeout(() => {
|
||||||
fotorama.load([
|
// fotorama.load([
|
||||||
{img: 'https://static.shburg.org/art/img/cat1.jpg'},
|
// {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/cat2.jpg'},
|
||||||
{img: 'https://static.shburg.org/art/img/cat3.jpg'}
|
// {img: 'https://static.shburg.org/art/img/cat3.jpg'}
|
||||||
]);
|
// ]);
|
||||||
}, 100);
|
//}, 100);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
Reference in new issue
Block a user