aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--emccpre.js3
-rwxr-xr-xhtml/jspage.pl2
2 files changed, 2 insertions, 3 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);
diff --git a/html/jspage.pl b/html/jspage.pl
index 07ea719..1a7a624 100755
--- a/html/jspage.pl
+++ b/html/jspage.pl
@@ -237,7 +237,7 @@ EOF
z-index: 100;
}
-#dlgform .title {
+#dlgform h2 {
margin-top: 0px;
}