mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
js: Make the dialogue box heading actually be an <h2>
This is semantically more correct and less ugly as well.
This commit is contained in:
@ -185,8 +185,7 @@ function dialog_init(titletext) {
|
|||||||
dlg_form = document.createElement("form");
|
dlg_form = document.createElement("form");
|
||||||
dlg_form.id = "dlgform";
|
dlg_form.id = "dlgform";
|
||||||
|
|
||||||
var title = document.createElement("p");
|
var title = document.createElement("h2");
|
||||||
title.className = "title";
|
|
||||||
title.appendChild(document.createTextNode(titletext));
|
title.appendChild(document.createTextNode(titletext));
|
||||||
dlg_form.appendChild(title);
|
dlg_form.appendChild(title);
|
||||||
|
|
||||||
|
@ -237,7 +237,7 @@ EOF
|
|||||||
z-index: 100;
|
z-index: 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
#dlgform .title {
|
#dlgform h2 {
|
||||||
margin-top: 0px;
|
margin-top: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user