improve readme and website

This commit is contained in:
Rene Haas
2022-12-27 17:09:48 +01:00
parent 3c547a0203
commit 70abb806e5
9 changed files with 36 additions and 17 deletions
+8 -2
View File
@@ -68,7 +68,7 @@ import { OverlayScrollbars } from 'overlayscrollbars';
<details>
<summary>
These instructions are for old stacks. Click here to read them.
These instructions are for quick prototyping or old stacks. Click here to read them.
</summary>
<br />
@@ -82,7 +82,13 @@ Simply download it from the [Releases](https://github.com/KingSora/OverlayScroll
Embedd OverlayScrollbars manually in your HTML:
```html
<link type="text/css" href="path/to/overlayscrollbars.css" rel="stylesheet" />
<script type="text/javascript" src="path/to/overlayscrollbars.js" defer></script>
<script type="text/javascript" src="path/to/overlayscrollbars.browser.js" defer></script>
```
You can use the global variable `OverlayScrollbarsGlobal` to access the api:
```js
var OverlayScrollbars = OverlayScrollbarsGlobal.OverlayScrollbars;
OverlayScrollbars(document.body, {});
```
</details>