Skip to content
Snippets Groups Projects
Commit 257425a2 authored by Martin Leblanc's avatar Martin Leblanc Committed by Kevin Paxman
Browse files

ISTWCMS-5650: Coding Standards banner.js

parent fe557956
No related branches found
No related tags found
1 merge request!273Feature/istwcms 5650 m26lebla owl carousel replacement
......@@ -43,18 +43,18 @@
cellSelector: '.card__banner',
pageDots: bannerDots,
on: {
ready: function() {
ready: function(){
var dots = document.querySelectorAll('.flickity-page-dots .dot');
if (!dots.length) {
return;
}
dots.forEach(function(dot) {
dots.forEach(function(dot){
// Make dots focusable
dot.setAttribute('tabindex', '0');
dot.addEventListener('keydown', function(event) {
dot.addEventListener('keydown', function(event){
if (event.key === 'Enter' || event.keyCode === 13) {
var label = dot.getAttribute('aria-label');
// Get "Page dot # // Extract the number"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment