Skip to content
This repository was archived by the owner on Aug 7, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
.DS_Store
.DS_Store
bower_components/
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## AngularJS Notifications

Current Version: v0.2
Current Version: v0.3

### Dependencies

Expand All @@ -9,10 +9,7 @@ Current Version: v0.2

### Installation

After you've downloaded this repository, include both the CSS and JavaScript
files and then declare the notifications module as a dependency of your app
module, eg:

bower install angular-notifications-extended
angular.module('myApp', ['notifications'])

Once you've finished that business you should be able to use the notifications
Expand Down Expand Up @@ -59,7 +56,7 @@ desktop notifications by specifying an image to display in the notification.
### HTML5 Notifications

If you want to use HTML5 notifications with the same API then you can call
`$notification.enableHtml5Mode()`.
`$notification.enableHtml5Mode()`.

**Note:** You will need permissions in order to use HTML5 notifications so for
this reason you should call `enableHtml5Mode` in a click event listener or
Expand All @@ -71,4 +68,3 @@ something.
- @pablocaselas : https://github.com/DerekRies/angular-notifications/issues/7
- @deltapsilon : https://github.com/DerekRies/angular-notifications/pull/5
- @michaelwoods : https://github.com/valaky/angular-notifications/commit/2f05f7832f2af9e74b1fe68d55fe04aeabff52c7

12 changes: 8 additions & 4 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@
"author": {
"name": "https://github.com/amcdnl"
},
"name": "angular-notifications",
"version": "0.2.0",
"name": "angular-notifications-extended",
"version": "0.3.0",
"main": "notification.js",
"ignore": [
"**/.*",
"node_modules",
"components"
],
"dependencies": {
"angular": "~1.1.3"
"angular": "~1.2"
},
"repository": {
"type": "git",
"url": "git://github.com/Swimlane/angular-notifications.git"
}
}
}
30 changes: 30 additions & 0 deletions dist/notification.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
.ng-notification-container {
position: absolute;
z-index: 10000;
}
.ng-notification-container.bottom {
bottom: 20px;
}
.ng-notification-container.right {
right: 20px;
}
.ng-notification-container.left {
left: 20px;
}
.ng-notification-container.top {
top: 35px;
}
.ng-notification-container.center {
left: 50%;
margin-left: -175px;
}
.ng-notification-container .ng-notification-wrapper {
width: 350px;
position: relative;
margin: 5px 0;
}
.ng-notification-container .ng-notification {
clear: both;
max-height: 90px;
overflow: hidden;
}
1 change: 1 addition & 0 deletions dist/notification.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-notifications",
"version": "0.2.0",
"name": "angular-notifications-extended",
"version": "0.3.0",
"description": "An AngularJS component for easily creating notifications. Can also use HTML5 notifications",
"main": "",
"scripts": {
Expand Down