|
|
@ -320,6 +320,18 @@ func main() {
|
|
320
|
320
|
document.title = baseTitle + " (Posts tagged '" + tag + "')";
|
|
321
|
321
|
}
|
|
322
|
322
|
|
|
|
323
|
function filterId(id) {
|
|
|
324
|
var articles = document.querySelectorAll("article");
|
|
|
325
|
for (var i = 0; i < articles.length; i++) {
|
|
|
326
|
var article = articles[i];
|
|
|
327
|
if (article.id != id) {
|
|
|
328
|
article.classList.add("does-not-match");
|
|
|
329
|
}
|
|
|
330
|
}
|
|
|
331
|
|
|
|
332
|
document.title = baseTitle + " (Only post id '" + id + "')";
|
|
|
333
|
}
|
|
|
334
|
|
|
323
|
335
|
function clearFilter() {
|
|
324
|
336
|
var articles = document.querySelectorAll("article.does-not-match");
|
|
325
|
337
|
for (var i = 0; i < articles.length; i++) {
|