diff options
author | Adam Spiers <git@adamspiers.org> | 2015-01-08 18:47:01 +0000 |
---|---|---|
committer | Adam Spiers <git@adamspiers.org> | 2015-01-08 18:47:09 +0000 |
commit | d69fad2ce8f684e966a2f5433f73b6fa1a846525 (patch) | |
tree | ca829d603443dcf1a0ec1bea3514ea6b310aa991 /html/js/git-deps-graph.js | |
parent | dfaa953a37aeb3c03f7c59810531fe423225028c (diff) | |
download | git-deps-d69fad2ce8f684e966a2f5433f73b6fa1a846525.tar.gz |
split noty helpers into separate file
Diffstat (limited to 'html/js/git-deps-graph.js')
-rw-r--r-- | html/js/git-deps-graph.js | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/html/js/git-deps-graph.js b/html/js/git-deps-graph.js index fc49b2f..d9af62b 100644 --- a/html/js/git-deps-graph.js +++ b/html/js/git-deps-graph.js @@ -175,37 +175,6 @@ function init_svg() { fg = svg.append('g'); } -// Different noty types: -// alert, success, error, warning, information, confirmation -function noty_warn(text) { - notyfication('warning', 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 = noty({ - text: text, - type: type, - layout: 'topRight', - theme: 'relax', - 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 - } - }); -} - function draw_graph(commitish) { d3.json("deps.json/" + commitish, function (error, data) { var new_data = add_data(data); |