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
+7 -1
View File
@@ -50,7 +50,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 />
@@ -66,6 +66,12 @@ Embedd OverlayScrollbars manually in your HTML:
<link type="text/css" href="path/to/overlayscrollbars.css" rel="stylesheet" />
<script type="text/javascript" src="path/to/overlayscrollbars.js" defer></script>
```
You can use the global variable `OverlayScrollbarsGlobal` to access the api:
```js
var OverlayScrollbars = OverlayScrollbarsGlobal.OverlayScrollbars;
OverlayScrollbars(document.body, {});
```
</details>