ahNotification.js

Star Follow @ahmadhayyan

Summary
ahNotification.js is a javascript library that provides simple, lightweight, stylish, responsive and functional/interactable notifications.

Download
Download ahNotification.min.js right now.

Download v1.0.0

How To Install
IMPORTANT! Put this inside body element

<script id="ahNotification" src="https://rawcdn.githack.com/ahmadhayyan/ahnotification.js/v1.0.0/ahNotification.min.js" integrity="sha384-YN4GV5ZWZ9ZuLdXVbZhdCT8AIyx9NBuYNn0taXRTZ1A03fnx+ZSt7SE46GPgihNq" crossorigin="anonymous"></script>

How To Use
popupNotification(type, text, button, function);

type (string) = "Info", "Success", "Warnings", "Error".
text (string) is any information you want to show the user.
button (boolean) = true, false.
function (string) is a function you want to run when user click confirm on the button.

4 Different Types

Functional With Buttons

Support CSS & HTML Tag

Screenshot


Examples:

popupNotification("Info", "An informative messages");

popupNotification("Warnings", "Remove user Henry?", true, "removeUser('Henry')");

Or try yourself