This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```dataviewjs | |
const values = dv.pages('#daily').where(p => p.walk === 1); | |
const year = 2024; | |
let date = getStartDate(year); | |
let diff = dv.luxon.DateTime.utc(year + 1).diff(date, 'days').days; | |
// == Create calendar data == | |
const calendar = []; | |
for (let i = 1; i <= diff; i++) { | |
const color = !!values.find(p => p.file.name === date.toFormat('yyyy-MM-dd')) ? "green" : "rgba(255,255,255,0.1)"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
code[class*='language-'], | |
pre[class*='language-'] { | |
color: #eee; | |
text-shadow: 0 0 2pt #1b2c5c; | |
background: none; | |
text-shadow: 0 1px rgba(0, 0, 0, 0.3); | |
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; | |
text-align: left; | |
white-space: pre; | |
word-spacing: normal; |