diff options
author | Pacien TRAN-GIRARD | 2014-05-13 19:52:13 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2014-05-13 19:52:13 +0200 |
commit | 82bd7f96523e02fb520d45f80a88301b7055072d (patch) | |
tree | ca9cc962b235efe8cfe1ee9c15f746c2133e101e /js/humane/humane-themed.js | |
parent | 6b4f6c457631a71c9aff13b5a183b4ebdc81f57b (diff) | |
download | io-slides-remote-82bd7f96523e02fb520d45f80a88301b7055072d.tar.gz |
Replace connection alert() by javascript/css notifications
Diffstat (limited to 'js/humane/humane-themed.js')
-rw-r--r-- | js/humane/humane-themed.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/humane/humane-themed.js b/js/humane/humane-themed.js new file mode 100644 index 0000000..945a8d6 --- /dev/null +++ b/js/humane/humane-themed.js | |||
@@ -0,0 +1,13 @@ | |||
1 | define([ 'humane' ], function(humane) { | ||
2 | |||
3 | var themePath = 'js/humane/libnotify.css'; | ||
4 | |||
5 | var style = document.createElement('link'); | ||
6 | style.rel = 'stylesheet'; | ||
7 | style.type = 'text/css'; | ||
8 | style.href = themePath; | ||
9 | document.querySelector('head').appendChild(style); | ||
10 | |||
11 | return humane; | ||
12 | |||
13 | }); | ||