diff options
author | Indrajith K L | 2017-12-19 19:10:01 +0530 |
---|---|---|
committer | Indrajith K L | 2017-12-19 19:10:01 +0530 |
commit | 9b608b89b16953c8d717ed8fde02ae396eea6094 (patch) | |
tree | a914badf600f8f95c4d25e8d8f4138290162bd8b /example | |
parent | 90d191ce4b23106657712efe3e8830410b89225e (diff) | |
download | vanilla-yo-notification-9b608b89b16953c8d717ed8fde02ae396eea6094.tar.gz vanilla-yo-notification-9b608b89b16953c8d717ed8fde02ae396eea6094.tar.bz2 vanilla-yo-notification-9b608b89b16953c8d717ed8fde02ae396eea6094.zip |
* Webpack config changes
* Updated documentation with example
* removed unwanted dependencies from starter pack
Diffstat (limited to 'example')
-rw-r--r-- | example/64x64.png | bin | 206 -> 0 bytes | |||
-rw-r--r-- | example/example.html | 17 | ||||
-rw-r--r-- | example/example.js | 38 |
3 files changed, 0 insertions, 55 deletions
diff --git a/example/64x64.png b/example/64x64.png Binary files differdeleted file mode 100644 index d889069..0000000 --- a/example/64x64.png +++ /dev/null diff --git a/example/example.html b/example/example.html deleted file mode 100644 index 889c1c8..0000000 --- a/example/example.html +++ /dev/null @@ -1,17 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> -<head> - <meta charset="UTF-8"> - <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <meta http-equiv="X-UA-Compatible" content="ie=edge"> - <title>Vanilla Yo Notification</title> -</head> -<body> - <button onclick="showNotificationSuccess()">Show Success Notification</button> - <button onclick="showNotificationWarning()">Show Warning Notification</button> - <button onclick="showNotificationError()">Show Error Notification</button> - - <script src="../dist/vanilla-yo-notification.js"></script> - <script src="./example.js"></script> -</body> -</html>
\ No newline at end of file diff --git a/example/example.js b/example/example.js deleted file mode 100644 index 4500c70..0000000 --- a/example/example.js +++ /dev/null @@ -1,38 +0,0 @@ -(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: '<b>This is a content</b>', - type: 'warning', - timeout: 1000 - }); - } - window.showNotificationError = function(){ - - notif.show({ - title: 'Notification Title', - content: 'This is a content with image <img src="64x64.png"/>', - type: 'error', - timeout: 2000 - }); - } - - - - -})(window);
\ No newline at end of file |