Skip to content

Commit

Permalink
Update dist to output generated at 4e4683c
Browse files Browse the repository at this point in the history
  • Loading branch information
moonstar-x committed Dec 7, 2022
1 parent 5da340f commit 38bce5c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,26 @@ properties:
type: integer
page_y:
type: integer
page_width:
type: integer
page_height:
type: integer
client_x:
type: integer
client_y:
type: integer
client_width:
type: integer
client_height:
type: integer
```
## Usage
In order to integrate this library with your webpage, add the following tags inside your `head` tag in your `html` pages:

```html
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/freenalytics/freenalytics-connector-web@v1.0.0/connector.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/freenalytics/freenalytics-connector-web@v1.1.0/connector.min.js"></script>
<script type="text/javascript" src="/script.js"></script>
```

Expand Down
6 changes: 5 additions & 1 deletion connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,12 @@
id: (_c = element === null || element === void 0 ? void 0 : element.id) !== null && _c !== void 0 ? _c : '',
page_x: event.pageX,
page_y: event.pageY,
page_width: document.documentElement.scrollWidth,
page_height: document.documentElement.scrollHeight,
client_x: event.clientX,
client_y: event.clientY
client_y: event.clientY,
client_width: window.innerWidth,
client_height: window.innerHeight
}
});
};
Expand Down
2 changes: 1 addition & 1 deletion connector.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 38bce5c

Please sign in to comment.