Skip to content

Commit

Permalink
Update easyScrollDots.js
Browse files Browse the repository at this point in the history
minor formatting amend
  • Loading branch information
Superhands89 authored Feb 21, 2022
1 parent 3186552 commit 15762b4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions dist/easyScrollDots.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,16 @@ function easyScrollDots(dotfixedOptions) {
dotfixedOptions.fixedNavUpward === true ? dotFixedNavUp = true : dotFixedNavUp;
dotfixedOptions.offset > 0 ? dotOffset = dotfixedOptions.offset : dotOffset;

if (dotFixedNavPresent === true && dotFixedNavId.length) {
// there is a fixed nav and its id has been defined
const dotNavHeightElem = document.getElementById(dotFixedNavId);
if (dotNavHeightElem !== null) {
dotNavHeight = dotNavHeightElem.clientHeight;
}
else {
console.error('easyScrollDots Error: A fixed navigation ID has been defined, but an element with the corresponding ID cannot be found in the DOM. Check you have spelled the dotFixedNavId correctly.')
}
}
if (dotFixedNavPresent === true && dotFixedNavId.length) {
// there is a fixed nav and its id has been defined
const dotNavHeightElem = document.getElementById(dotFixedNavId);
if (dotNavHeightElem !== null) {
dotNavHeight = dotNavHeightElem.clientHeight;
}
else {
console.error('easyScrollDots Error: A fixed navigation ID has been defined, but an element with the corresponding ID cannot be found in the DOM. Check you have spelled the dotFixedNavId correctly.')
}
}

if (scrollIndi.length) {
const scrollIndiTemplate = '<div class="scroll-indicator-controller"><span></span></div>';
Expand Down

0 comments on commit 15762b4

Please sign in to comment.