summaryrefslogtreecommitdiff
path: root/pugl.js
diff options
context:
space:
mode:
Diffstat (limited to 'pugl.js')
-rw-r--r--pugl.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/pugl.js b/pugl.js
index 35b2df6..cbb1e6f 100644
--- a/pugl.js
+++ b/pugl.js
@@ -2,9 +2,11 @@
/*
TODO:
-- reset button
- guide
- about dialog
+- widgets:
+ - min
+ - max
*/
const APP_ID = 'dh3YgVZQdX1Q';
@@ -2371,6 +2373,10 @@ function startup() {
}
});
+ document.getElementById('about-button').addEventListener('click', () => {
+ document.getElementById('about-dialog').showModal();
+ });
+
document.getElementById('resolution-form').addEventListener('submit', () => {
render_width = resolution_x_element.value;
render_height = resolution_y_element.value;