N-Shar-ma / Emoji-Card-Game

Emoji guessing card matching game, made using vanilla JavaScript, lots of css animations and the native HTML drag and drop API
https://emoji-card-game.netlify.app
19 stars 26 forks source link

To use custom modal boxes instead of native `alert()` and `confirm()` calls #47

Closed jalaj711 closed 1 year ago

jalaj711 commented 1 year ago

Rather than using the built-in functions alert() and/or confirm() for user interaction, I think that it would be better if we use custom modal boxes built on HTML/CSS/JS. Doing this will present the following benefits:

jalaj711 commented 1 year ago

If the idea sounds good, I can implement this.

N-Shar-ma commented 1 year ago

@jalaj711 Thanks for creating the issue! Custom modals are something that have always been on the todo list, so would indeed love having them!

PS: Please consider a similar way of creating and using modals like in this older project of mine (mainly referring to the use of html template elements a customizable function like showModal) but if you have any alternative ideas, would appreciate you discussing those here too!