aboutsummaryrefslogtreecommitdiff
path: root/emccpre.js
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2022-10-18 01:00:49 +0100
committerBen Harris <bjh21@bjh21.me.uk>2022-10-18 01:00:49 +0100
commitdbbe9d37500219b61132266029c1d8f42378c01c (patch)
tree98b439fb6338f56c12c28fb43dc1203d24a8d9b9 /emccpre.js
parent5c180cfa6fee3409d60d959adacc0701d16c0e26 (diff)
downloadpuzzles-dbbe9d37500219b61132266029c1d8f42378c01c.zip
puzzles-dbbe9d37500219b61132266029c1d8f42378c01c.tar.gz
puzzles-dbbe9d37500219b61132266029c1d8f42378c01c.tar.bz2
puzzles-dbbe9d37500219b61132266029c1d8f42378c01c.tar.xz
js: Make the dialogue box heading actually be an <h2>
This is semantically more correct and less ugly as well.
Diffstat (limited to 'emccpre.js')
-rw-r--r--emccpre.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/emccpre.js b/emccpre.js
index a175b30..b4ab82d 100644
--- a/emccpre.js
+++ b/emccpre.js
@@ -185,8 +185,7 @@ function dialog_init(titletext) {
dlg_form = document.createElement("form");
dlg_form.id = "dlgform";
- var title = document.createElement("p");
- title.className = "title";
+ var title = document.createElement("h2");
title.appendChild(document.createTextNode(titletext));
dlg_form.appendChild(title);