Skip to content

Commit 0c0395e

Browse files
author
keatext
committed
add npm to the README
1 parent f8532f0 commit 0c0395e

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ You can obtain your local copy of Intro.js from:
99

1010
**2)** Using bower ```bower install intro.js --save```
1111

12-
**3)** Download it from CDN ([1](http://www.jsdelivr.com/#!intro.js), [2](http://cdnjs.com/#introjs))
12+
**3)** Using npm ```npm install intro.js --save```
13+
14+
**4)** Download it from CDN ([1](http://www.jsdelivr.com/#!intro.js), [2](http://cdnjs.com/#introjs))
1315

1416

1517
## How to use
@@ -19,7 +21,7 @@ Intro.js can be added to your site in three simple steps:
1921

2022
> CDN hosted files are available at [jsDelivr](http://www.jsdelivr.com/#!intro.js) (click Show More) & [cdnjs](http://cdnjs.com/#introjs).
2123
22-
**2)** Add `data-intro` and `data-step` to your HTML elements.
24+
**2)** Add `data-intro` and `data-step` to your HTML elements.
2325

2426
For example:
2527

@@ -38,7 +40,7 @@ Optionally, pass one parameter to `introJs` function to limit the presentation s
3840

3941
**For example** `introJs(".introduction-farm").start();` runs the introduction only for elements with `class='introduction-farm'`.
4042

41-
<p align="center"><img src="http://usablica.github.com/intro.js/img/introjs-demo.png"></p>
43+
<p align="center"><img src="http://usablica.github.com/intro.js/img/introjs-demo.png"></p>
4244

4345
## Using templates
4446

@@ -242,7 +244,7 @@ introJs().oncomplete(function() {
242244
243245
###introJs.onexit(providedCallback)
244246
245-
Set callback to exit of introduction. Exit also means pressing `ESC` key and clicking on the overlay layer by the user.
247+
Set callback to exit of introduction. Exit also means pressing `ESC` key and clicking on the overlay layer by the user.
246248
247249
**Available since:** v0.2.0
248250
@@ -276,7 +278,7 @@ The callback function receives the element of the new step as an argument.
276278

277279
**Example:**
278280
```javascript
279-
introJs().onchange(function(targetElement) {
281+
introJs().onchange(function(targetElement) {
280282
alert("new step");
281283
});
282284
````
@@ -297,7 +299,7 @@ Given callback function will be called before starting a new step of introductio
297299

298300
**Example:**
299301
```javascript
300-
introJs().onbeforechange(function(targetElement) {
302+
introJs().onbeforechange(function(targetElement) {
301303
alert("before new step");
302304
});
303305
````
@@ -318,7 +320,7 @@ Given callback function will be called after starting a new step of introduction
318320

319321
**Example:**
320322
```javascript
321-
introJs().onafterchange(function(targetElement) {
323+
introJs().onafterchange(function(targetElement) {
322324
alert("after new step");
323325
});
324326
````
@@ -379,11 +381,11 @@ Now you can run this command to minify all static resources:
379381
380382
## Instant IntroJs
381383
382-
Want to learn faster and easier? Here we have **Instant IntroJs**, Packt Publishing.
384+
Want to learn faster and easier? Here we have **Instant IntroJs**, Packt Publishing.
383385
384386
<p align="center">
385387
<a target='_blank' href="http://www.packtpub.com/create-useful-introductions-for-websites-and-applications-with-introjs-library/book"><img src='http://dgdsbygo8mp3h.cloudfront.net/sites/default/files/imagecache/productview_larger/2517OS_Instant%20IntroJS%20Starter.jpg' /></a>
386-
</p>
388+
</p>
387389

388390
<p align="center">
389391
<a target='_blank' href="http://www.packtpub.com/create-useful-introductions-for-websites-and-applications-with-introjs-library/book">Buy and Download</a>
@@ -489,7 +491,7 @@ Want to learn faster and easier? Here we have **Instant IntroJs**, Packt Publish
489491
490492
- [Twitter](https://twitter.com/afshinmeh)
491493
- [Github](https://github.com/afshinm)
492-
- [Personal page](http://afshinm.name/)
494+
- [Personal page](http://afshinm.name/)
493495
494496
[Other contributors](https://github.com/usablica/intro.js/graphs/contributors)
495497

0 commit comments

Comments
 (0)