From 82bd7f96523e02fb520d45f80a88301b7055072d Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Tue, 13 May 2014 19:52:13 +0200 Subject: Replace connection alert() by javascript/css notifications --- js/humane/humane-themed.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 js/humane/humane-themed.js (limited to 'js/humane/humane-themed.js') 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 @@ +define([ 'humane' ], function(humane) { + + var themePath = 'js/humane/libnotify.css'; + + var style = document.createElement('link'); + style.rel = 'stylesheet'; + style.type = 'text/css'; + style.href = themePath; + document.querySelector('head').appendChild(style); + + return humane; + +}); -- cgit v1.2.3