on master help sign in
Highlight username
51bd209Devine Lu Linvega
links/main.css+1
@@ -17,6 +17,7 @@ body #hallway .entry .author { font-family: 'input_mono_medium'; position: absol
17body #hallway .entry .author:after { content:":"; }
17body #hallway .entry .author:after { content:":"; }
18body #hallway .entry .body { max-width: 400px }
18body #hallway .entry .body { max-width: 400px }
19body #hallway .entry .body a { text-decoration: underline; }
19body #hallway .entry .body a { text-decoration: underline; }
20+body #hallway .entry.highlight .author { color:#555; }
20body #hallway p { padding-left: 60px;background-image: url(../icon.white.svg);background-size: 40px;background-repeat: no-repeat;background-position: 0px 0px; }
21body #hallway p { padding-left: 60px;background-image: url(../icon.white.svg);background-size: 40px;background-repeat: no-repeat;background-position: 0px 0px; }
21
22
22/* Portal */
23/* Portal */
scripts/hallway.js+4−1
@@ -49,7 +49,10 @@ function Hallway (sites) {
49 entry.body = entry.body.replace(`@<${data}>`, `<a href='${path}'>@${name}</a>`)
49 entry.body = entry.body.replace(`@<${data}>`, `<a href='${path}'>@${name}</a>`)
50 }
50 }
51
51
52+ const filter = window.location.hash.substr(1).replace(/\+/g, ' ').toLowerCase()
53+ const highlight = filter == entry.author.toLowerCase()
54+
52− return `<li class='entry'><span class='date'>${timeAgo(Date.parse(entry.date))}</span> <span class='author'>${entry.author}</span> <span class='body'>${entry.body}</span></li>`
55+ return `<li class='entry ${highlight ? 'highlight' : ''}'><span class='date'>${timeAgo(Date.parse(entry.date))}</span> <span class='author'>${entry.author}</span> <span class='body'>${entry.body}</span></li>`
53 }
56 }
54
57
55 // Feeds
58 // Feeds