```dataviewjs const tasks = Array.from(dv.current().file.tasks) .map(task => { const duration = task.text.match(/\((\d+):([0-5]\d)\)\s*$/); if (!duration) return null; const [, minutes, seconds] = duration; return { completed: task.completed, seconds: Number(minutes) * 60 + Number(seconds) }; }) .filter(Boolean); const watched = tasks.filter(task => task.completed); const sumTime = items => items.reduce((sum, task) => sum + task.seconds, 0); const total = sumTime(tasks); const done = sumTime(watched); const pct = total ? Math.round(100 * done / total) : 0; const formatTime = seconds => { const h = Math.floor(seconds / 3600); const m = Math.floor((seconds % 3600) / 60); const s = seconds % 60; return h + "h " + m + "m " + s + "s"; }; const bar = dv.el("progress", "", { attr: { value: pct, max: 100, "aria-label": "Lecture watch progress", style: "width:100%; max-width:700px; height:20px; display:block; margin:0 auto;" } }); const stats = dv.el("div", "", { attr: { style: "text-align:center; margin-top:12px;" } }); stats.createEl("p", { text: watched.length + " / " + tasks.length + " videos complete (" + pct + "% of runtime)", attr: { style: "margin:4px 0;" } }); stats.createEl("p", { text: formatTime(done) + " watched · " + formatTime(total - done) + " remaining", attr: { style: "margin:4px 0;" } }); ``` 1. [x] [Introduction to Compressible Flow](https://youtu.be/JQRffQ5a-Rs) (03:22) 2. [x] [Speed of Sound; Mach Number; Mach Cone](https://youtu.be/wvcvr9IJQE0) (35:50) 3. [x] [Isentropic Flow; Stagnation and Sonic Conditions](https://youtu.be/BxgWIACZMVI) (31:30) 4. [x] [Isentropic Flow with Area Change](https://youtu.be/CAJZVjyETqQ) (39:26) 5. [x] [1D Flow in a Converging Nozzle](https://youtu.be/QrZ1aUlyhIk) (34:02) 6. [ ] [Normal Shock Waves](https://youtu.be/FE4MktFEv50) (29:14) 7. [ ] [1D Flow in a Converging-Diverging Nozzle](https://youtu.be/KRjA-mGwUs4) (51:27)