diff --git a/app/static/app.css b/app/static/app.css index ead45d3..b9e69f9 100644 --- a/app/static/app.css +++ b/app/static/app.css @@ -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; diff --git a/app/static/watchlist.js b/app/static/watchlist.js index 6416ca4..52682eb 100644 --- a/app/static/watchlist.js +++ b/app/static/watchlist.js @@ -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));