From c0eb82f55a40f64025800c0ad2b6a05290576337 Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Tue, 19 Dec 2017 14:21:29 +0530 Subject: Now supports * type arguments, * positional parameters and * html as content * Documentation updates --- example/64x64.png | Bin 0 -> 206 bytes example/example.html | 17 +++++++++++++++++ example/example.js | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 example/64x64.png create mode 100644 example/example.html create mode 100644 example/example.js (limited to 'example') diff --git a/example/64x64.png b/example/64x64.png new file mode 100644 index 0000000..d889069 Binary files /dev/null and b/example/64x64.png differ diff --git a/example/example.html b/example/example.html new file mode 100644 index 0000000..889c1c8 --- /dev/null +++ b/example/example.html @@ -0,0 +1,17 @@ + + + + + + + Vanilla Yo Notification + + + + + + + + + + \ No newline at end of file diff --git a/example/example.js b/example/example.js new file mode 100644 index 0000000..4500c70 --- /dev/null +++ b/example/example.js @@ -0,0 +1,38 @@ +(function(window){ + var notif = new VanillaYoNotification({ + position: ['bottom', 'left'] + }); + var counter = 0; + window.showNotificationSuccess = function(){ + + notif.show({ + title: 'Notification Title', + content: `This is a content ${counter}`, + timeout: 6000 + }); + + counter += 1; + } + window.showNotificationWarning = function(){ + + notif.show({ + title: 'Notification Title', + content: 'This is a content', + type: 'warning', + timeout: 1000 + }); + } + window.showNotificationError = function(){ + + notif.show({ + title: 'Notification Title', + content: 'This is a content with image ', + type: 'error', + timeout: 2000 + }); + } + + + + +})(window); \ No newline at end of file -- cgit v1.2.3