Created
January 3, 2020 09:32
-
-
Save tommylinks/98e0705f192b94ac0314fa91c5ffb8d5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| updateCounter (slick) { | |
| currentSlide = slick.currentSlide + 1 | |
| slideCount = slick.slideCount | |
| $('.slider-counter').text(this.currentSlide + '/' + this.slideCount) | |
| } | |
| $('.info-slider').on('init', (e, slick) => { | |
| updateCounter(slick) | |
| }) | |
| $('.info-slider').on('afterChange', (e, slick) => { | |
| updateCounter(slick) | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment