diff --git a/README.md b/README.md
index 89cae77..b6cee7e 100644
--- a/README.md
+++ b/README.md
@@ -6,6 +6,84 @@ A jquery plugin for creating a timed modal dialog
* Under development
+## Getting started
+
+Install the jQuery and the jQuery timed dialog.
+
+### Using npm
+
+```bash
+npm i jquery
+npm i @armino-dev/jquery-timed-dialog
+```
+
+Import the components into your script.
+
+```js
+import $ from 'jquery';
+import timedDialog from '@armino-dev/jquery-timed-dialog';
+```
+
+Import the css into your stylesheet.
+
+```css
+import '@armino-dev/jquery-timed-dialog/dist/timed-dialog.min.css';
+```
+
+### Directly into your html from node_modules
+
+```html
+
+
+
+```
+
+### Directly into your html from cdn
+```html
+
+
+
+```
+
+## Use it
+
+```js
+
+const myCallback = () => {
+ console.log('The callback was executed!');
+}
+
+const options = {
+ type: 'confirmation',
+ title: 'Confirm callback execution',
+ body: '
Are you sure you want to execute myCallback?Check the console
',
+ width: 400,
+ height: 280,
+ timeout: 10,
+ closeOnTimer: true,
+ btnConfirm: {
+ text: 'Execute my callback',
+ action: () => myCallback(),
+ }
+};
+
+document.addEventListener("DOMContentLoaded", () => {
+ // add a button to dom
+ const button = document.createElement('button');
+ button.textContent = 'Show dialog';
+
+ // add a click event listener to the button
+ button.addEventListener("click", () => {
+ $().timedDialog(options);
+ });
+
+ // add the button to page
+ document.body.appendChild(button);
+});
+```
+
+### **Please take a look at [this working example on CodePen](https://codepen.io/armino-dev/pen/zYbjdJw).**
+
## Demo
Demo can be viewed on [here](https://armino-dev.github.io/jquery-timed-dialog/demo/)
diff --git a/css/timed-dialog.css b/css/timed-dialog.css
deleted file mode 100644
index c35ec58..0000000
--- a/css/timed-dialog.css
+++ /dev/null
@@ -1,125 +0,0 @@
-/**
- * jQuery Timed Dialog Plugin style sheet
- * Author: Armino Popp,
- */
-.timed-dialog-overlay {
- background-color: rgba(155, 155, 155, 0.8);
-}
-
-[type=button],
-[type=reset],
-[type=submit],
-button {
- -webkit-appearance: button;
- padding: 0;
-}
-
-.timed-dialog {
- font-size: 16px;
- padding: 0;
- margin: 0;
- display: flex;
- flex-direction: column;
-}
-.timed-dialog * {
- font-size: 16px;
- font-family: sans-serif;
-}
-.timed-dialog .header {
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- justify-content: space-between;
- align-items: center;
- background-color: #1055aa;
- color: white;
- padding: 5px 10px;
- border-top-left-radius: 5px;
- border-top-right-radius: 5px;
-}
-.timed-dialog .header .icon {
- display: flex;
- font-weight: bold;
- padding: 0;
- align-content: center;
- align-items: center;
- justify-content: center;
- width: 24px;
- height: 24px;
- background-color: white;
- color: #1055aa;
- border-radius: 100%;
-}
-.timed-dialog .header .title {
- font-size: 1.2rem;
- padding: 0 10px;
-}
-.timed-dialog .body {
- min-height: 100px;
- flex-direction: column;
-}
-.timed-dialog .action {
- flex-direction: row;
-}
-.timed-dialog .action,
-.timed-dialog .body {
- display: flex;
- background-color: #fff;
- padding: 10px;
-}
-.timed-dialog .btn {
- width: 100%;
- border: 0;
- padding: 10px;
- line-height: 16px;
- color: white;
- background-color: #555;
- margin-right: 10px;
-}
-.timed-dialog .btn:last-child {
- margin-right: 0;
-}
-.timed-dialog .btn.btn-primary {
- background-color: #1055aa !important;
-}
-.timed-dialog .btn.btn-primary:hover {
- background-color: #3486ec !important;
-}
-.timed-dialog .btn span.text {
- position: relative;
- width: 100%;
- height: 100%;
- z-index: 10;
-}
-.timed-dialog .btn span.meter {
- position: absolute;
- z-index: 9;
- left: 0;
- top: 0;
- height: 100%;
- background-color: rgba(52, 134, 236, 0.7);
-}
-.timed-dialog .btn span.meter.hover {
- background-color: rgba(7, 38, 77, 0.7) !important;
-}
-.timed-dialog .btn.btn-close {
- display: flex;
- margin: 0;
- padding: 0;
- align-content: center;
- align-items: center;
- justify-content: center;
- width: 24px;
- height: 24px;
- background-color: transparent;
- color: white;
- border: 2px solid white;
- border-radius: 100%;
-}
-.timed-dialog .btn.btn-close:hover {
- background-color: rgba(52, 134, 236, 0.7) !important;
-}
-.timed-dialog .btn:hover {
- background-color: #aaa;
- color: white;
-}
diff --git a/demo/index.css b/demo/index.css
index 04625b7..b262556 100644
--- a/demo/index.css
+++ b/demo/index.css
@@ -1,5 +1,5 @@
@import url('https://fonts.googleapis.com/css?family=Noto+Serif:400,700&display=swap');
-@import "../css/timed-dialog.css";
+@import "../dist/css/timed-dialog.min.css";
body {
font-family: 'Noto Serif', serif;
diff --git a/dist/timed-dialog.min.js b/dist/timed-dialog.min.js
index efbb8d4..c351471 100644
--- a/dist/timed-dialog.min.js
+++ b/dist/timed-dialog.min.js
@@ -1,4 +1,4 @@
-(()=>{(function(t){t.fn.timedDialog=function(p){this.defaults={type:"info",title:"Info",body:"This is the default body text. You might replace this with your own.",width:320,height:240,appendTo:"body",closeOnEscape:!0,closeOnTimer:!1,timeout:10,timeoutAnimation:!0,isModal:!0,btnDismiss:{text:"Dismiss",class:""},btnConfirm:{text:"Confirm",action:()=>{},class:""}};let i=t.extend({},this.defaults,p),h=document.body,c=document.documentElement,D=[h.scrollHeight,h.offsetHeight,c.clientHeight,c.scrollHeight,c.offsetHeight],O=[h.scrollWidth,h.offsetWidth,c.clientWidth,c.scrollWidth,c.offsetWidth],b=Math.max(...D),g=Math.max(...O),W={info:{icon:{src:"i"},style:"info"},confirmation:{icon:{src:"?"},style:"info"}},m=0;i.icon=W[i.type].icon.src;let k={position:"absolute",top:0,left:0,width:g+"px",height:b+"px","z-index":"2000"},z={position:"absolute",width:i.width+"px",height:i.height+"px","line-height":"20px","z-index":"2001"},d=H(5),w="timed-dialog-"+d,a=t(`
`),n=t(`
+(()=>{(function(t){t.fn.timedDialog=function(p){this.defaults={type:"info",title:"Info",body:"This is the default body text. You might replace this with your own.",width:320,height:240,appendTo:"body",closeOnEscape:!0,closeOnTimer:!1,timeout:10,timeoutAnimation:!0,isModal:!0,btnDismiss:{text:"Dismiss",class:""},btnConfirm:{text:"Confirm",action:()=>{},class:""}};let i=t.extend({},this.defaults,p),m=document.body,d=document.documentElement,A=[m.scrollHeight,m.offsetHeight,d.clientHeight,d.scrollHeight,d.offsetHeight],O=[m.scrollWidth,m.offsetWidth,d.clientWidth,d.scrollWidth,d.offsetWidth],b=Math.max(...A),g=Math.max(...O),W={info:{icon:{src:"i"},style:"info"},confirmation:{icon:{src:"?"},style:"info"}},f=0;i.icon=W[i.type].icon.src;let k={position:"absolute",top:0,left:0,width:g+"px",height:b+"px","z-index":"2000"},z={position:"absolute",width:i.width+"px",height:i.height+"px","line-height":"20px","z-index":"2001"},c=H(5),w="timed-dialog-"+c,s=t(`
`),n=t(`