aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--html/git-deps.html1
-rw-r--r--html/js/git-deps-graph.js31
-rw-r--r--html/js/noty.js30
3 files changed, 31 insertions, 31 deletions
diff --git a/html/git-deps.html b/html/git-deps.html
index fdb95bc..8ca1a1b 100644
--- a/html/git-deps.html
+++ b/html/git-deps.html
@@ -11,6 +11,7 @@
<script language="javascript" type="text/javascript" src="node_modules/webcola/WebCola/cola.v3.min.js"></script>
<script language="javascript" type="text/javascript" src="node_modules/noty/js/noty/packaged/jquery.noty.packaged.min.js"></script>
+ <script language="javascript" type="text/javascript" src="js/noty.js"></script>
<script language="javascript" type="text/javascript" src="js/git-deps-graph.js"></script>
<link rel="stylesheet" type="text/css" href="css/animate.css" />
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);
diff --git a/html/js/noty.js b/html/js/noty.js
new file mode 100644
index 0000000..294db6e
--- /dev/null
+++ b/html/js/noty.js
@@ -0,0 +1,30 @@
+// 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
+ }
+ });
+}