File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -6,31 +6,39 @@ Lightweight (< 3Kb), dependency-free javascript library to dynamically show the
6
6
7
7
Add title_notifier.js to your webpage.
8
8
9
- ` <script src="title_notifier.js"></script> `
9
+ ``` javascript
10
+ < script src= " title_notifier.js" >< / script>
11
+ ```
10
12
11
- ##### Adding Notifications
13
+ ### Adding Notifications
12
14
13
15
![ Adding notification] ( http://www.frontendjournal.com/wp-content/uploads/2014/04/notification_total_3.png )
14
16
15
17
Call the following function to add +1 to notifications total.
16
18
17
- ` titlenotifier.add(); `
19
+ ``` javascript
20
+ titlenotifier .add ();
21
+ ```
18
22
19
- ##### Subtracting Notifications
23
+ ### Subtracting Notifications
20
24
21
25
![ Subtracting notification] ( http://www.frontendjournal.com/wp-content/uploads/2014/04/notification_total_2.png )
22
26
23
27
Call the following to subtract 1 from the total notifications.
24
28
25
- ` titlenotifier.sub(); `
29
+ ``` javascript
30
+ titlenotifier .sub ();
31
+ ```
26
32
27
- ##### Reset Notifications
33
+ ### Reset Notifications
28
34
29
35
![ resetting notification] ( http://www.frontendjournal.com/wp-content/uploads/2014/04/notification_total_zero.png )
30
36
31
37
Call the following to set notifications to zero and the title to the original version.
32
38
33
- ` titlenotifier.reset(); `
39
+ ``` javascript
40
+ titlenotifier .reset ();
41
+ ```
34
42
35
43
36
44
## Contribute
You can’t perform that action at this time.
0 commit comments