feat: two pointers post

This commit is contained in:
Barrett Ruth 2024-06-17 12:16:41 -05:00
parent cb481c4fe3
commit 6c97fa2890
13 changed files with 268 additions and 10 deletions

View file

@ -16,7 +16,10 @@ const postMapping = new Map([
],
],
["Trading", [{ name: "InteractiveBrokers TWS" }, { name: "valuation" }]],
["Algorithms", [{ name: "two pointers" }, { name: "convex hull" }]],
[
"Algorithms",
[{ name: "two pointers", link: "two-pointers" }, { name: "convex hull" }],
],
]);
function refresh(e) {

View file

@ -1,8 +1,13 @@
const h2s = document.querySelectorAll("article h2");
h2s.forEach((h2) => {
document.querySelectorAll("article h2").forEach((h2) => {
const mdHeading = document.createElement("span");
mdHeading.textContent = "# ";
mdHeading.style.color = "#0073e6";
h2.prepend(mdHeading);
});
document.querySelectorAll("article h3").forEach((h3) => {
const mdHeading = document.createElement("span");
mdHeading.textContent = "## ";
mdHeading.style.color = "#0073e6";
h3.prepend(mdHeading);
});