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:
1 parent
a39bd36cf9
commit
385b3699a9
2 files changed
+14
-2
No files matched your search
+3
-1
@@ -1234,8 +1234,10 @@ table.applications td[data-label="Saved"] { white-space: nowrap; color: var(--di
|
||||
font-size: .96rem; text-decoration: none; color: inherit;
|
||||
}
|
||||
.crow .name { font-weight: 600; }
|
||||
/* Only a name that is a link: the Watchlist draws one without a page to
|
||||
open as text, which must not look as if it led somewhere. */
|
||||
@media (hover: hover) {
|
||||
.crow .name:hover { text-decoration: underline; }
|
||||
.crow a.name:hover { text-decoration: underline; }
|
||||
}
|
||||
.srow .sub, .crow .sub {
|
||||
grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center;
|
||||
|
||||
+11
-1
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user