Skip to content

Commit

Permalink
Merge pull request #3 from slawomir-jedlikowski/intersection_observer
Browse files Browse the repository at this point in the history
using IntersectionObserver instead of jQuery Waypoints
  • Loading branch information
slawomir-jedlikowski authored Oct 23, 2018
2 parents fd0e241 + c56dafb commit 24a07c5
Show file tree
Hide file tree
Showing 9 changed files with 2,767 additions and 950 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ Additional event is emitted, when user scrolls up - it allows you to refresh ele

## Usage

Remember! Dist versions does not contain jQuery, but it is required!
`$element` should be a DOM Element or a jQuery object.

```
var $element = $(this);
var $element = $(this); // or document.getElementById('elementId');
$ad.on('load-ad', function() {
// your callback for loading element, i.e.
Expand All @@ -32,7 +32,6 @@ Remember! Dist versions does not contain jQuery, but it is required!
git clone https://github.com/aftenbladet/ad_refresher.git
cd ad_refresher
npm install
bower install
```

Fill in your changes. And prepare dist:
Expand Down
31 changes: 0 additions & 31 deletions bower.json

This file was deleted.

Loading

0 comments on commit 24a07c5

Please sign in to comment.