Skip to content

Commit 83fa076

Browse files
committed
Updated readme
1 parent 1b7d621 commit 83fa076

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,39 @@ Lightweight (< 3Kb), dependency-free javascript library to dynamically show the
66

77
Add title_notifier.js to your webpage.
88

9-
`<script src="title_notifier.js"></script>`
9+
```javascript
10+
<script src="title_notifier.js"></script>
11+
```
1012

11-
##### Adding Notifications
13+
### Adding Notifications
1214

1315
![Adding notification](http://www.frontendjournal.com/wp-content/uploads/2014/04/notification_total_3.png)
1416

1517
Call the following function to add +1 to notifications total.
1618

17-
`titlenotifier.add();`
19+
```javascript
20+
titlenotifier.add();
21+
```
1822

19-
##### Subtracting Notifications
23+
### Subtracting Notifications
2024

2125
![Subtracting notification](http://www.frontendjournal.com/wp-content/uploads/2014/04/notification_total_2.png)
2226

2327
Call the following to subtract 1 from the total notifications.
2428

25-
`titlenotifier.sub();`
29+
```javascript
30+
titlenotifier.sub();
31+
```
2632

27-
##### Reset Notifications
33+
### Reset Notifications
2834

2935
![resetting notification](http://www.frontendjournal.com/wp-content/uploads/2014/04/notification_total_zero.png)
3036

3137
Call the following to set notifications to zero and the title to the original version.
3238

33-
`titlenotifier.reset();`
39+
```javascript
40+
titlenotifier.reset();
41+
```
3442

3543

3644
## Contribute

0 commit comments

Comments
 (0)