diff options
Diffstat (limited to 'js/custom.js')
-rw-r--r-- | js/custom.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/custom.js b/js/custom.js index 7e674540..38d12e4d 100644 --- a/js/custom.js +++ b/js/custom.js @@ -3,6 +3,10 @@ var projects_nav = function() { var panels = document.querySelectorAll('.carousel-inner>div'); Array.prototype.forEach.call(nav, function(el) { + if (el.dataset.panel === undefined) { + return; + } + el.addEventListener('click', function(ev) { ev.preventDefault(); |