mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 23:51:29 -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.id = "dlgform";
|
||||
|
||||
var title = document.createElement("p");
|
||||
title.className = "title";
|
||||
var title = document.createElement("h2");
|
||||
title.appendChild(document.createTextNode(titletext));
|
||||
dlg_form.appendChild(title);
|
||||
|
||||
|
@ -237,7 +237,7 @@ EOF
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
#dlgform .title {
|
||||
#dlgform h2 {
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user