From 08e070508bb9b6cf8873c298d3de1837b03cf715 Mon Sep 17 00:00:00 2001 From: gameloader <ggwqqo@163.com> Date: Tue, 19 Sep 2023 16:59:15 +0800 Subject: [PATCH] add prompt text for user --- whuF2caculate.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/whuF2caculate.js b/whuF2caculate.js index 07b292f..1a5f34e 100644 --- a/whuF2caculate.js +++ b/whuF2caculate.js @@ -123,7 +123,10 @@ item && items[item].kcxzmc && items[item].kcxzmc.includes("选修") ); }); - + // Create a label above the elective list + var electiveListLabel = document.createElement("p"); + electiveListLabel.textContent = "请选择计入必修的选修课"; + container.appendChild(electiveListLabel); // Display these items in a list with checkboxes var electiveList = document.createElement("ul"); electiveList.style.listStyleType = "none";