()
| 37 | |
| 38 | // Show loader & fetch more posts |
| 39 | function showLoading() { |
| 40 | loading.classList.add('show'); |
| 41 | |
| 42 | setTimeout(() => { |
| 43 | loading.classList.remove('show'); |
| 44 | |
| 45 | setTimeout(() => { |
| 46 | page++; |
| 47 | showPosts(); |
| 48 | }, 300); |
| 49 | }, 1000); |
| 50 | } |
| 51 | |
| 52 | // Filter posts by input |
| 53 | function filterPosts(e) { |
no test coverage detected