Skip to content

Commit 00b2708

Browse files
author
AZhurav1ev
committed
Changed npm installation path in readme
1 parent f383915 commit 00b2708

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

README.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,30 @@ EnjoyHint require the following plugins and libs:
1616
* KineticJS > v5.1.0
1717

1818
#### Installation
19-
You can install it through `bower` package manager:
19+
You can install it through `node` or `bower`package managers:
2020
```
21-
bower install enjoyhint
21+
npm install xbs-enjoyhint
22+
```
23+
```
24+
bower install xbs-enjoyhint
2225
```
2326
Alternative way:
24-
- Download the latest version of EnjoyHint
27+
- Download the latest version of EnjoyHint from GitHub.
2528
- Extract the archive with EnjoyHint.
26-
- Move the EnjoyHint directory to somewhere on your webserver
29+
- Move the EnjoyHint directory to somewhere on your webserver.
30+
- Install dependencies `npm install` or `bower install` if you want to use internal libraries.
2731
- Insert next lines into your page's \<head\> tag:
2832
```html
29-
<!-- External libraries -->
33+
<!-- From external libraries -->
3034
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
3135
<script src="https://cdnjs.cloudflare.com/ajax/libs/kineticjs/5.2.0/kinetic.js"></script>
3236
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-scrollTo/2.1.2/jquery.scrollTo.min.js"></script>
37+
38+
<!-- Or from internal libraries from node_modules-->
39+
<script src="<pathontheserver>/jquery/dist/jquery.min.js"></script>
40+
<script src="<pathontheserver>/kinetic/kinetic.min.js"></script>
41+
<script src="<pathontheserver>/jquery.scrollto/jquery.scrollTo.min.js"></script>
42+
3343
<!-- Enjoyhint library -->
3444
<link href="<pathontheserver>/enjoyhint/enjoyhint.css" rel="stylesheet">
3545
<script src="<pathontheserver>/enjoyhint/enjoyhint.min.js"></script>

0 commit comments

Comments
 (0)