more sites and languages coming soon

This commit is contained in:
zyqunix 2024-11-19 22:05:31 +01:00
parent b3fdfeb589
commit 5c6bc7df83
8 changed files with 85 additions and 57 deletions

View file

@ -24,14 +24,14 @@ function renderTools(filteredTools) {
filteredTools.sort((a, b) => b.description - a.description);
filteredTools.forEach(tool => {
const toolItem = document.createElement("div");
toolItem.id = "tool-div";
toolItem.className = "tool-div";
toolItem.innerHTML = `
<h1 class="tool-header">${tool.name}</h1>
<h1 class="tool-header"> ${tool.name} </h1>
<h2 class="tool-subhead"><u>${tool.subheader}</u></h2>
<h2 class="tool-desc">${tool.description}</h2>
<img class="tool-media" src="assets/${tool.name}.png" alt="${tool.name} Image">
<a id="visit" class="visit-tool" href="${tool.url}">Try the "${tool.name}" tool!</a>
<a id="visit" class="visit-tool" href="${tool.url}">Visit "${tool.name}"!</a>
`;
toolList.appendChild(toolItem);