-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtalks.html
More file actions
43 lines (40 loc) · 1.4 KB
/
Copy pathtalks.html
File metadata and controls
43 lines (40 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Talks — Kevin P. Murphy</title>
<meta name="description" content="Recent talks by Kevin Patrick Murphy.">
<link rel="stylesheet" href="style.css">
</head>
<body>
<p class="backlink"><a href="index.html">← Kevin P. Murphy</a></p>
<section id="pubs" aria-labelledby="talks-h">
<div class="pubs-head"><h1 id="talks-h">Talks</h1></div>
<ul id="talk-list" class="year-list"></ul>
</section>
<footer>
<p>To add a talk, edit <code>talks.js</code> in
<a href="https://github.com/murphyk/murphyk.github.io">the repo</a>.</p>
</footer>
<script src="talks.js"></script>
<script>
(function () {
var talks = window.TALKS || [];
var esc = function (s) { return String(s).replace(/[&<>"]/g, function (c) {
return { '&': '&', '<': '<', '>': '>', '"': '"' }[c]; }); };
var root = document.getElementById('talk-list');
talks.forEach(function (t) {
var li = document.createElement('li'); li.className = 'pub';
li.innerHTML =
'<span class="mark other">•</span>'
+ '<span class="pub-body">'
+ '<a class="title" href="' + esc(t.url) + '">' + esc(t.title) + '</a>'
+ (t.venue ? '<span class="venue">' + esc(t.venue) + '</span>' : '')
+ '</span>';
root.appendChild(li);
});
})();
</script>
</body>
</html>