- Переключение слайдов мышью
- Переключение слайдов клавиатурой (.keyboard.enabled: true)
- Кнопки для быстрого перехода к выбранному слайду
- Поддержка touch events
- Отображение количества слайдов
- Свайпы (???)
- Переключение между слайдами по таймауту
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let items = document.querySelectorAll('.accordeon-item-title'); | |
let openItems = []; | |
// const maxOpened = document.querySelector(".accordeon").dataset.tabsLimit; | |
const maxOpened = () => document.querySelector(".accordeon").dataset.tabsLimit; | |
items.forEach((item, index) => { | |
item.addEventListener('click', () => { | |
if (item.parentElement.classList.contains("accordeon-item--open")) { | |
let indexInOpenItems = openItems.indexOf(index); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = async (page, scenario, viewport) => { | |
// Элементы настройки | |
// | |
const containerSelector = ".site-navigation"; | |
const contents = ["Программа обучения", "Выпускники", "Как поступить", "Контакты"]; | |
const additionalCount = 2; | |
console.log('SCENARIO > ' + scenario.label); | |
// await require('./clickAndHoverHelper')(page, scenario); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = async (page, scenario, viewport) => { | |
// Элементы настройки | |
// | |
const containerSelector = "header"; | |
const childCount = 3; | |
const additionalCount = 2; | |
const contents = ["Первый", "Второй", "Третий"]; | |
console.log('SCENARIO > ' + scenario.label); |
- zoom link
- 646 822 7119
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const config = { | |
...task.scenarios, | |
resultPath | |
}; |