Код: Выделить всё
define(['jquery','swiper'],function($){
$( document ).ready(function() {
var mySwiper = new Swiper ('.swiper-container', {
// Optional parameters
direction: 'horizontal',
loop: true,
speed:100,
// If we need pagination
// Navigation arrows
nextButton: '.m-stage-button-next',
prevButton: '.m-stage-button-prev',
});
});
});Код: Выделить всё
[url=#]
[img]../img/slide1.jpg[/img]
[/url]
{{sContent.headline}}
{{sContent.text}}
{{sContent.btn_txt}}
[url=#]
[img]../img/slide2.jpg[/img]
[/url]
{{sContent.headline}}
{{sContent.text}}
{{sContent.btn_txt}}
(Эти {{}} сейчас просто заполнители)
Все загружается и отображается нормально, но как только я пытаюсь провести пальцем, я получаю
Uncaught TypeError: Не удалось выполнить 'getComputedStyle' на «Окно»: параметр 1 не относится к типу «Элемент».
Есть подсказки?
Подробнее здесь: https://stackoverflow.com/questions/310 ... ing-swiper
Мобильная версия