Skip to content

A modal window is based on pure JS and CSS. It uses a module design pattern for creating modal windows

Notifications You must be signed in to change notification settings

unoms/modal-window

Repository files navigation

Modal window

modal.js is based on a module design pattern and it creates a modal window with the style described in modal.css (Pure JS and CSS)

Features

modal.js has one open method which is called createModal. The created modal window has some methods:

  • open - this method makes a modal window visible by adding a css class open
  • close - this method removes the css class open
  • setContent - sets the content of a modal window
  • setTitle - sets the title of a modal window

confirmModal uses a modal.js for temporary modal windows

About

A modal window is based on pure JS and CSS. It uses a module design pattern for creating modal windows

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published