Skip to content

Commit

Permalink
Unobtrusive Javascript
Browse files Browse the repository at this point in the history
There is no need to use inline display property to display element
  • Loading branch information
Tobiasz Gala committed Oct 19, 2017
1 parent ed7ebf6 commit fe6959e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ function showElements(arrList, pageNum) {
if (i >= numberOfElements)
break;
else
// otherwise, set display property to block
arrList[i].style.display = 'block';
// otherwise, remove inline style
arrList[i].style.display = '';
}

}
Expand Down

0 comments on commit fe6959e

Please sign in to comment.