mySuperFunction1(ignoreCache, isReverse, removeEmpty, visible) { ... }
mySuperFunction2({ignoreCache, isReverse, removeEmpty, visible}) { ... }
mySuperFunction1(false, true, true, true);
mySuperFunction2({
ignoreCache: false,
isReverse: true,
removeEmpty: true,
visible: true
})
$emit(`name`, [arg1, arg2]);
@событие="metod(...$event)"
отключить autoplay - скролл до 1-го слайда - включить autoplay
navList[i].addEventListener("click", (evt) => {
let currentLink = tabContainer.querySelector(
".slidersTab__tab-label.current"
);
let currentTab = tabContainer.querySelector(
".slidersTab__slidersItem.current"
);
//добавить 4 строчки -- start
let currentSlider = tabList[i].querySelector('.slidersTab__slider-body').swiper;
currentSlider.autoplay.stop();
currentSlider.slideTo(0, 0, false);
currentSlider.autoplay.start();
//-- end
currentLink.classList.remove("current");
navList[i].classList.add("current");
currentTab.classList.remove("current");
tabList[i].classList.add("current");
});
.elem {
overflow: auto;
-ms-overflow-style: none;
scrollbar-width: none;
}
.elem::-webkit-scrollbar {
width: 0;
height: 0;
}
:title="'Неработающий заголовок'"
var title = 'Неработающий заголовок';
var title = Неработающий заголовок;
- ошибочная конструкция partnersSwiper.on('slideChange', function() {
if ( partnersSwiper.activeIndex == 0 )
partnersSwiper.slideTo(1)
else if ( partnersSwiper.activeIndex == partnersSwiper.slides.length - 1 )
partnersSwiper.slideTo( partnersSwiper.slides.length - 2 )
})
git remote -v
origin https://github.com/YaroslavShilov/Blank.git/ (fetch)
origin https://github.com/YaroslavShilov/Blank.git/ (push)
git remote rm origin
git remote add origin git@github.com:YaroslavShilov/Blank.git
git remote -v
origin git@github.com:YaroslavShilov/Blank.git (fetch)
origin git@github.com:YaroslavShilov/Blank.git (push)
var swiper = new Swiper('.swiper-container', {
//...
renderFraction: function (currentClass, totalClass) {
return '<span class="' + currentClass + '"></span>' +
' of ' +
'<span class="' + totalClass + '"></span>';
}
});
of
(1 of 10)