Skip to content

Commit 147fe1b

Browse files
committed
Add marker on newly released talks
1 parent dc438eb commit 147fe1b

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

_data/talks.json

+8-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"abstract": "The presentation will discuss efficient processing of raw video in machine learning, highlighting the need to minimize memory copies and enable integration with WebGPU.",
1717
"video": "https://app.streamfizz.live/embed/cke43ihp10fub0731lohsnpmo",
1818
"duration": "07:45",
19-
"thumbnail": "https://cjx1uopmt0m4q0667xmnrqpk.blob.core.windows.net/cke43ihp10fub0731lohsnpmo/thumbs/thumb-001.jpeg"
19+
"thumbnail": "https://cjx1uopmt0m4q0667xmnrqpk.blob.core.windows.net/cke43ihp10fub0731lohsnpmo/thumbs/thumb-001.jpeg",
20+
"added": "2020-08-26"
2021
},
2122
"cb_hardware": {
2223
"title": "ML hardware advancements: leveraging for performance while retaining portability",
@@ -105,7 +106,8 @@
105106
"abstract": "",
106107
"duration": "05:40",
107108
"format": "marpit",
108-
"url": "https://www.w3.org/2020/Talks/mlws/mod_webgpu/"
109+
"url": "https://www.w3.org/2020/Talks/mlws/mod_webgpu/",
110+
"added": "2020-08-26"
109111
},
110112

111113
"cc_directml": {
@@ -252,7 +254,8 @@
252254
"affiliation": "",
253255
"thumbnail": "https://cjx1uopmt0m4q0667xmnrqpk.blob.core.windows.net/cke8szrew1mu70731eppx3v5h/thumbs/thumb-001.jpeg",
254256
"video": "https://app.streamfizz.live/embed/cke8szrew1mu70731eppx3v5h",
255-
"duration": "13:51"
257+
"duration": "13:51",
258+
"added": "2020-08-26"
256259
},
257260
"tp_interactive_music": {
258261
"title": "Interactive ML - Powered Music Applications on the Web",
@@ -291,7 +294,8 @@
291294
"nosync": true,
292295
"thumbnail": "https://cjx1uopmt0m4q0667xmnrqpk.blob.core.windows.net/cke3s7cvyvz7i0772b94ebcg6/thumbs/thumb-001.jpeg",
293296
"video": "https://app.streamfizz.live/embed/cke3s7cvyvz7i0772b94ebcg6",
294-
"duration": "06:00"
297+
"duration": "06:00",
298+
"added": "2020-08-26"
295299
},
296300
"zc_expression": {
297301
"title": "A virtual character web meeting with expression enhance power by machine learning",

_tools/generate_talk_pages.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ for(let i = 0; i < shortnames.length; i++) {
1818
if (talk.video) {
1919
const duration = talk.duration.split(':')[0].replace(/^0/, '');
2020

21-
sectionContent += `<details class=talk><summary><div class="grid"><a href="talks/${slug}.html"><img src="${talk.thumbnail}" alt="Watch ${talk.title}" width=200 class="tn"></a><a href="talks/${slug}.html">${talk.title}</a><span class="summary"> by ${talk.author}${talk.affiliation ? " (" + talk.affiliation + ")" : ""} - ${duration} min <span></span></span></div></summary>`;
21+
sectionContent += `<details class=talk><summary><div class="grid"><a href="talks/${slug}.html"><img src="${talk.thumbnail}" alt="Watch ${talk.title}" width=200 class="tn"></a><a href="talks/${slug}.html">${talk.title}</a><span class="summary"> by ${talk.author}${talk.affiliation ? " (" + talk.affiliation + ")" : ""} - ${duration} min <span></span></span></div>${talk.added ? "<span class=added>Added on " + talk.added + "</span>": ""}</summary>`;
2222
sectionContent += `<p><a href="talks/${slug}.html">${duration} minutes presentation</a></p>`;
2323
} else {
2424
sectionContent += `<details><summary><div class="grid"><span>PENDING </span><a>${talk.title}</a><span class="summary"> by ${talk.author}${talk.affiliation ? " (" + talk.affiliation + ")" : ""} <span></span></span></div></summary>`;

style.css

+11
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ div.talks > details > summary div.grid {
532532
}
533533

534534
div.talks > details > summary {
535+
position: relative;
535536
list-style: none;
536537
}
537538

@@ -735,3 +736,13 @@ div.related ul {
735736
.simpletooltip a:link, .simpletooltip a:visited {
736737
color: #acf;
737738
}
739+
details span.added {
740+
top:-1em;
741+
left: -1em;
742+
padding: 0.2em;
743+
position: absolute;
744+
background-color: #ff0;
745+
font-size: 0.8em;
746+
transform: translate(-3em) rotate(-45deg);
747+
transform-origin: top right;
748+
}

0 commit comments

Comments
 (0)