Open a company's careers page from its name on the Watchlist

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Fable 5.1 committed 2026-09-29 21:29:22 +02:00
1 parent a39bd36cf9
commit 385b3699a9
2 files changed
+14 -2

No files matched your search

+11 -1
View File
@@ -205,9 +205,19 @@
const row = document.createElement("div");
row.className = "crow";
row.dataset.key = company.key;
const name = document.createElement("span");
// The name is the way to the careers page, as the link in the line
// below it is: a company here is one whose page is read by hand.
const where = target(company);
const name = document.createElement(where ? "a" : "span");
name.className = "name";
name.textContent = company.name;
if (where) {
name.href = where.url;
name.target = "_blank";
name.rel = "noopener noreferrer";
name.title = `${where.label}, in a new tab`;
name.addEventListener("click", () => opened(company, render));
}
row.appendChild(name);
row.appendChild(ratingControl(company, render));
row.appendChild(subLine(company, render));