fix fonts and give 4 options
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
const status = document.getElementById("status");
|
||||
const toggle = document.getElementById("toggle");
|
||||
const fontStyleInputs = [...document.querySelectorAll('input[name="font-style"]')];
|
||||
const fontStyles = new Set(fontStyleInputs.map((input) => input.value));
|
||||
let activeTabId = null;
|
||||
let currentEnabled = false;
|
||||
let currentFontStyle = "round";
|
||||
@@ -25,7 +26,7 @@
|
||||
}
|
||||
|
||||
function renderFontStyle(style) {
|
||||
currentFontStyle = style === "angular" ? "angular" : "round";
|
||||
currentFontStyle = fontStyles.has(style) ? style : "round";
|
||||
for (const input of fontStyleInputs) {
|
||||
input.checked = input.value === currentFontStyle;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user