obsidian-test-vault/data/00 - Y9InizeOALct8zSP1VMm/00 - TuNksDPDp3ZmucsFwBH.md

141 lines
3.3 KiB
Markdown

---
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")}
`)
```
> z1gEDVtVLaHc1ykzajbe7fvC2rADHwUdI4ZEr8Ma7li
>
> > froOQvV4
> > `button-daily`
>
> > cPktB8nc
> > `button-thisweek`
>
> > lWRPJe9B
> > `button-thismonth`
>
> > dqDtU1I0
> > `button-reload`
> vfG2WXFZw8ehV97G8ZBRKbsGSXCUn<h2 align="center">ihGkPz4CFdXjh1qOkrNgHNZIEdexQ✨</h2>
>
> ```dataview
> TABLE file.cday as Created, file.mtime as Modified, file.path as Folder
> ```
Uv35cmbiYAUGzZ6HbY4w40l7ZlfaS0RqFdeQhGkJ7RimiJhTBvQlw4InuJFO8llZvP25HAOgGjWgVilZWTq2AM3zaGioU5J9rQzA
> ```
> ```
---
> pEW8WeIg0ZOSzIhuMsQz2HdrXriRrjX4UHiifcpnJV
>
> > IfabeLqlECj0gGbaff8PcaW98a[[01 - 7zwZ0AudnHh02e94WYf|XMTzzCBxp]]
> >
> > - 5oOgu0H3nY[[01 - C4NPMbOSXDS|fRNl2EE8rNXe]]
> > - nkRydLYfLUBG8KG7[[10 - 9biZcax4ndMchNoWd|QUp9Fe8xIidNzAwgLzhsj]]
> > - WpCHm1caNh4dA[[20 - amth5W9Tu5K8HEJMg|6UrTuyfVRSsNX]]
>
> > NBFUxAQszdmD0MbkGauufzvnRJfOniMXESR89bs[[02 - V9zjvtllxT|ITPIMxCG]]
> >
> > - [gNg55jJF](file:///C:/Users/Corinthe/Desktop/ART)
> > - paHwYEfgzCu
>
> > Zu8puTncaY49CAkvMlwLhePLd7wr7pcfjO8s[[03 - 4dB0ZdgOXvF5ptl6Oy|1W8kvXN]]
> >
> > - [[01 - YfW8curuTbmE|YlcVvhjbb3fU]]
> > - [[02 - ZAeAENuqSMmeZXAV|S05bPtdXS5hmHYonZ]]
>
> > 9YOanQzMNzFV8lsRpas8YZv7b2W7rkK[[04 - uDp5s7qRUuzFtEKKg|X1vWoVI2CcgMa5kcOen]]
> >
> >
> > - [[10 - 7BZfmbP895KT2injqA|Ibo6DqJPfZ9Ujn5RmzQq8Nn]]
> >
> > 2OVG3ED0VEOj2G7vfnzyWfHgWnYISW
> >
> > - [[10 - eFMsByyAHQofAn|6Z7jDjua4Q1EPi3q]]
---
<h1 align="center">:far_clipboardlistcheck: Projects</h1>
> WtmdMJKhCosHRNC
>
> ```dataviewjs
> ```
kLkCIuG3hJnvjjOuIQvRU5S8ba88VVMadMNnpuLXdWZRrXNf5UR9XuTGBcLWGJpDpw19toXDwbCXttnPRuei
> ```
> ```
---