Frustrated by the lack of a simple, customizable JS dialog, I decided to create a mini library that captures the simplicity of the 3 classic JS dialogs: alert, confirm, prompt, but allows for needed custom features like styling, button labels, and html5 placeholders for inputs. Seeking feedback on any potential issues, code architecture and style, and general usefulness. Before you chime in about jQuery UI or some other framework/library that has this included, think first about projects that don't require such a heavily scripted or styled component and would benefit from a straightforward, easy to customize solution.
I was frustrated by the lack of a simple, customizable JS dialog. I decided to create a mini library that captures the simplicity of the 3 classic JS dialogs: alert, confirm, prompt, but allows for needed custom features like styling, button labels, and html5 placeholders for inputs. Seeking feedback on any potential issues, code architecture and style, and general usefulness. Before you chime in about jQuery UI or some other framework/library that has this included, think first about projects that don't require such a heavily scripted or styled component and would benefit from a straightforward, easy to customize solution.
I think this is a smart foundation. Despite the fact that this problem is tackled in countless libraries, there is no real standalone solution. Would be interested in seeing this grow to include basic form functionality.