From dbbe9d37500219b61132266029c1d8f42378c01c Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Tue, 18 Oct 2022 01:00:49 +0100 Subject: [PATCH] js: Make the dialogue box heading actually be an

This is semantically more correct and less ugly as well. --- emccpre.js | 3 +-- html/jspage.pl | 2 +- 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; }