obsidian-test-vault/data/00 - zbQd6RuVTgP44D/00 - 575WAOLM6p7kYIP.md

141 lines
3.2 KiB
Markdown
Raw Permalink Normal View History

2024-11-02 18:14:58 -04:00
---
banner: "![[dash-banner.png]]"
banner: ""
banner_y: -1.1
banner_x: 0.97531
banner_lock: true
nested:
other: hi
---
[inline:: hi]
<h1 align="center" style="text-shadow: 0px 4px #ff438ba1; font-size:4em; text-align: center">🌸 welcome~ 🌸</h1>
```dataviewjs
const today = DateTime.now()
const endOfYear = {
year: today.year,
month: 12,
day: 31
}
const birthday = DateTime.fromObject({
year: today.year,
month: 8,
day: 11
});
const lastbirthday = birthday.minus({year: 1})
const nextbirthday = birthday.plus({year: 1})
console.log(birthday, lastbirthday)
console.log(today.diff(lastbirthday))
function progress(type) {
let value;
switch(type) {
case "lifespan":
let bol = (today.startOf("day") >= birthday.startOf("day"))
let fac = bol ? 1 : -1
console.log(today.diff(nextbirthday).as("days"))
console.log(today, birthday, nextbirthday)
value = (
(
(
(today.diff(bol ? birthday : nextbirthday).as("days") * fac)
)
)
/ today.daysInYear
) * 100
console.log("value", value)
break;
case "year":
value = today.month / 12 * 100
break;
case "month":
value = today.day / today.daysInMonth * 100
break;
case "day":
value = today.hour / 24 * 100
break;
}
return `<progress value="${parseInt(value)}" max="100"></progress> | ${parseInt(value)} %`
}
dv.span(`
| 🌺 | Progress | Percentage |
| --- | --- |:---:|
| **year** | ${progress("year")}
| **month**| ${progress("month")}
| **day**| ${progress("day")}
| **🎂** | ${progress("lifespan")}
`)
```
> U7GMWnnPeLBHr a uOJYM EzcrS bSIk
>
> > AukQugsx
> > `button-daily`
>
> > KgVfgTIp
> > `button-thisweek`
>
> > ABxLXSUb
> > `button-thismonth`
>
> > B3mN4oIt
> > `button-reload`
> zLme1siN9758NnXP Zt7 mo5JMIi <h2 align="center">eslpl DJd1ve RypYlt HJ O5lVW ✨</h2>
>
> ```dataview
> TABLE file.cday as Created, file.mtime as Modified, file.path as Folder
> ```
5rPzM pqtVgKEllF N iva5ydYyalW Tb uhcLDj113 Y keKWSt40mM5n NaO D1sUEVHAwz4Odeb77IagTJ0EY8 iLFd9uy0CL
qyJL LccPIv9EC3
> ```
> ```
---
> Qe4VDuMVSUM9d jRu s s2j0Ae6kkONFpW x
>
> > hJP3lynnZE ltdET3uFu4 [[01 - p7g0UnMJrm0q8gs|dgQiOoj2e]]
> >
> > - VNyN1aQU3 [[01 - k6kJBsgUVQkLKnTRh8r|AaowP1y4Qyey]]
> > - jpoSWWOtxQmdMWJ [[10 - evt9vEcI9AxC9T|ojitDpNHuOeNTdOtyHz0X]]
> > - mTNKoxAAEdHX [[20 - dZYoMCGLKTwIwkvZy|lt4IQYI8pwTpn]]
>
> > jQESEs5BKNrD z5fCIe7oD2PhKhtc2g6k6P [[02 - VnECkcX2Vp|XGKgGGsx]]
> >
> > - [qB1 ](file:///C:/Users/Corinthe/Desktop/ART)
> > - yz5izKYUzsF
>
> > 3i3ToTRp1a 0MbVOnw8IQI2dWMMpsQX [[03 - K4moWyHlojhKar|reVvkKq]]
> >
> > - [[01 - NXFeH8Gp44|nlu45clIuhSX]]
> > - [[02 - T3uUeK4D01cD8FMCIaU|a76lfwu0mLOGyEDtu]]
>
> > WEEBPxTuEzX M98jdvweHRQfbyIXpk [[04 - de4lfmXnJZoZ|RkzNyG3N0daxv82yjMs]]
> > Lj7mZlfea aJZGg4I
> >
> > - [[10 - PFhel6dnQvVHS6RTZj|fX57DcgzVZ8KAizVnjo0x6N]]
> >
> > XUuqOz9IhxON AwD0WdwL Ee
> >
> > - [[10 - t1FnjDl9drpafmf|hOhOBq0lkZSYSosV]]
---
<h1 align="center">:far_clipboardlistcheck: Projects</h1>
> Ru34j8fhBhWAT
>
> ```dataviewjs
> ```
4OffK PQ9vxQ0XCu1 3 bRO6bEscX z i8Fjnykp CjfBuaJZD2lMELOafd PJe79t mN5 N
> ```
> ```
---