Material Inspired Confirm/Alert Dialog In Vanilla JavaScript

Category: Javascript , Modal & Popup | September 3, 2018
Author:fechaniqu
Views Total:3,335 views
Official Page:Go to website
Last Update:September 3, 2018
License:MIT

Preview:

Material Inspired Confirm/Alert Dialog In Vanilla JavaScript

Description:

A lightweight and fast JavaScript library for creating beautiful confirm and/or alert dialog boxes inspired by Google’s Material Design.

How to use it:

Add the stylesheet material-modal.css and JavaScript file material-modal.js into the webpage.

<link rel="stylesheet" href="material-modal.css">
<script src="material-modal.js"></script>

Create an alert dialog on the screen.

materialAlert(title, text, callback)

Create a confirm dialog with ‘Ok’ and ‘Cancel’ buttons on the screen.

materialConfirm(title, text, callback)

Changelog:

09/03/2018

  • JS & CSS update

You Might Be Interested In:


One thought on “Material Inspired Confirm/Alert Dialog In Vanilla JavaScript

Leave a Reply