20
20
* <http://www.gnu.org/licenses/>.
24
46
var Dialog = function (id) {
25
48
this.dialog = document.getElementById(id);
30
57
this.dialog.classList.add('active');
33
64
this.dialog.classList.remove('active');
67
* Toggle a dialog, which means removing its 'active' class if it has one, or adding the 'active' class if it does not have one
36
71
this.dialog.classList.toggle('active');