aboutsummaryrefslogtreecommitdiffstats
path: root/html/js/git-deps-noty.js
diff options
context:
space:
mode:
authorAdam Spiers <git@adamspiers.org>2015-01-11 13:08:35 +0000
committerAdam Spiers <git@adamspiers.org>2015-01-11 13:25:46 +0000
commit9ac7713b5037710f2b1db82a63343e2f20ae775c (patch)
treed48473735eab3fd2b60ff8adee094bff2a5fb57a /html/js/git-deps-noty.js
parent1caef36fdeae554d5cc8bef3ca2734755bd70f08 (diff)
downloadgit-deps-9ac7713b5037710f2b1db82a63343e2f20ae775c.tar.gz
switch to CoffeeScript!
Diffstat (limited to 'html/js/git-deps-noty.js')
-rw-r--r--html/js/git-deps-noty.js49
1 files changed, 0 insertions, 49 deletions
diff --git a/html/js/git-deps-noty.js b/html/js/git-deps-noty.js
deleted file mode 100644
index 56f0b53..0000000
--- a/html/js/git-deps-noty.js
+++ /dev/null
@@ -1,49 +0,0 @@
-require('noty');
-
-// Different noty types:
-// alert, success, error, warning, information, confirmation
-function noty_error(text) {
- notyfication('error', text);
-}
-
-function noty_warn(text) {
- notyfication('warning', text);
-}
-
-function noty_success(text) {
- notyfication('success', text);
-}
-
-function noty_info(text) {
- notyfication('information', text);
-}
-
-function noty_debug(text) {
- notyfication('information', text);
-}
-
-// Haha, did you see what I did here?
-function notyfication(type, text) {
- var n = window.noty({
- text: text,
- type: type,
- layout: 'topRight',
- theme: 'relax',
- maxVisible: 15,
- timeout: 30000, // ms
- animation: {
- open: 'animated bounceInUp', // Animate.css class names
- close: 'animated bounceOutUp', // Animate.css class names
- easing: 'swing', // unavailable - no need
- speed: 500 // unavailable - no need
- }
- });
-}
-
-module.exports = {
- error: noty_error,
- warn: noty_warn,
- success: noty_success,
- info: noty_info,
- debug: noty_debug
-};