website - some js fixes to make sure scripts are firing (#108)

This commit is contained in:
RJ Spiker 2018-06-25 09:41:18 -06:00 committed by Jack Pearkes
parent d9e779aa2e
commit 8f890e5d7e
2 changed files with 974 additions and 969 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,6 @@
var qs = document.querySelector.bind(document)
var qsa = document.querySelectorAll.bind(document)
// siema carousels
var dots = qsa('.g-carousel .pagination li')
var carousel = new Siema({
@ -20,15 +23,13 @@ var carousel = new Siema({
})
// on previous button click
document
.querySelector('.g-carousel .prev')
qs('.g-carousel .prev')
.addEventListener('click', function() {
carousel.prev()
})
// on next button click
document
.querySelector('.g-carousel .next')
qs('.g-carousel .next')
.addEventListener('click', function() {
carousel.next()
})