Skip to content

Commit 5a548f1

Browse files
author
Ola Holmström
committed
update package and add @tremby as contributor
1 parent fbf232a commit 5a548f1

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
> A function to get the scrolling parent of an html element.
44
5-
[![browser support](https://ci.testling.com/olahol/scrollparent.js.png)
6-
](https://ci.testling.com/olahol/scrollparent.js)
7-
85
## Install
96

107
```bash
@@ -14,13 +11,22 @@ npm install scrollparent --save
1411
## Example
1512

1613
```js
14+
var Scrollparent = require("scrollparent");
15+
1716
Scrollparent(document.getElementById("content")) // document.body
1817
```
1918

2019
```js
20+
var Scrollparent = require("scrollparent");
21+
2122
Scrollparent(document.getElementById("inside-a-scrolling-div")) // HTMLDivElement
2223
```
2324

25+
## Contributors
26+
27+
* Ola Holmström (@olahol)
28+
* Bart Nagel (@tremby)
29+
2430
## License
2531

2632
MIT

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "scrollparent",
3-
"version": "0.1.0",
3+
"version": "1.0.0",
44
"description": "A function to get the scrolling parent of an html element.",
55
"main": "scrollparent.js",
66
"repository": {

0 commit comments

Comments
 (0)