We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b05ce0b commit 2602c4fCopy full SHA for 2602c4f
utils.js
@@ -68,7 +68,7 @@ const body = document.body,
68
69
70
// version
71
-const version = '3.2.0';
+const version = '3.2.5';
72
versionEl.innerText = version;
73
74
let logVersion = () => {
@@ -142,6 +142,22 @@ function showMessage(message, duration) {
142
}
143
144
145
+// show dialog
146
+function showDialog(confirmHandler, headerText, confirmText) {
147
+
148
+ // add dialog text to HTML
149
+ dialogHeader.textContent = headerText;
150
+ dialogConfirm.textContent = confirmText;
151
152
+ // show dialog
153
+ dialogWrapper.classList.add('visible');
154
155
+ // add confirm button click listener
156
+ dialogConfirm.onclick = confirmHandler;
157
158
+}
159
160
161
162
// device and platform queries
163
0 commit comments