feat: rename class styles, improve js idiomacy

This commit is contained in:
Barrett Ruth 2024-06-26 14:09:06 -05:00
parent 707afe91fa
commit cae425da1a
9 changed files with 12 additions and 14 deletions

View file

@ -12,7 +12,7 @@ const postMapping = new Map([
[
{ name: "models of production", link: "models-of-production" },
{ name: "the short run" },
{ name: "to invest or not to invest" },
{ name: "in the aggregate" },
],
],
["Trading", [{ name: "InteractiveBrokers TWS" }, { name: "valuation" }]],
@ -23,7 +23,7 @@ const postMapping = new Map([
]);
function refresh(e) {
e.preventDefault();
if (window.location.pathname !== "/") e.preventDefault();
const topics = document.querySelectorAll(".topic a");