mirror of
https://github.com/TrentSPalmer/hugo_themes_report.git
synced 2024-12-04 08:41:29 -08:00
fix duplicate ids
This commit is contained in:
parent
72e583fa37
commit
cae74210bc
@ -125,9 +125,9 @@ function buildResults() {
|
|||||||
resultsTable.appendChild(resultsTableHeadRow);
|
resultsTable.appendChild(resultsTableHeadRow);
|
||||||
let selectedColumns = getSelectedColumns();
|
let selectedColumns = getSelectedColumns();
|
||||||
|
|
||||||
let selectedTags = getSelected("tag");
|
let selectedTags = getSelected("tag").map(x => x.slice(0,-4));
|
||||||
let selectedFeatures = getSelected("feature");
|
let selectedFeatures = getSelected("feature").map(x => x.slice(0,-8));
|
||||||
let selectedLicenses = getSelected("license");
|
let selectedLicenses = getSelected("license").map(x => x.slice(0,-8));
|
||||||
let selectedMinVer = getSelected("minVerRadioButton");
|
let selectedMinVer = getSelected("minVerRadioButton");
|
||||||
let sortedBy = getSortBy();
|
let sortedBy = getSortBy();
|
||||||
let minVerFilteredThemes = getMinVerFilteredThemes(selectedMinVer);
|
let minVerFilteredThemes = getMinVerFilteredThemes(selectedMinVer);
|
||||||
|
@ -24,17 +24,17 @@ function buildInput(item, selected, inpParent) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if ("feature" in item) {
|
if ("feature" in item) {
|
||||||
selectionInput.value = item.feature;
|
selectionInput.value = `${item.feature}-feature`;
|
||||||
inputSelectionButton.style.width = "15rem";
|
inputSelectionButton.style.width = "15rem";
|
||||||
selectionInputLabel.innerHTML = `${item.feature} (${item.num_themes})`;
|
selectionInputLabel.innerHTML = `${item.feature} (${item.num_themes})`;
|
||||||
selectionInput.classList.add("featureSelectionInput");
|
selectionInput.classList.add("featureSelectionInput");
|
||||||
} else if ("tag" in item) {
|
} else if ("tag" in item) {
|
||||||
selectionInput.value = item.tag;
|
selectionInput.value = `${item.tag}-tag`;
|
||||||
inputSelectionButton.style.width = "12rem";
|
inputSelectionButton.style.width = "12rem";
|
||||||
selectionInputLabel.innerHTML = `${item.tag} (${item.num_themes})`;
|
selectionInputLabel.innerHTML = `${item.tag} (${item.num_themes})`;
|
||||||
selectionInput.classList.add("tagSelectionInput");
|
selectionInput.classList.add("tagSelectionInput");
|
||||||
} else if ("license" in item) {
|
} else if ("license" in item) {
|
||||||
selectionInput.value = item.license;
|
selectionInput.value = `${item.license}-license`;
|
||||||
inputSelectionButton.style.width = "15rem";
|
inputSelectionButton.style.width = "15rem";
|
||||||
selectionInputLabel.innerHTML = `${item.license} (${item.num_themes})`;
|
selectionInputLabel.innerHTML = `${item.license} (${item.num_themes})`;
|
||||||
selectionInput.classList.add("licenseSelectionInput");
|
selectionInput.classList.add("licenseSelectionInput");
|
||||||
|
Loading…
Reference in New Issue
Block a user