π To-do List with Vanilla JavaScript
#Light Mode
#Dark Mode
#Light Mode
#Dark Mode
- λ°μνμΌλ‘ λ§λ€μ΄ PC, νλΈλ¦Ώ, λͺ¨λ°μΌ, μ΄λμλ μ΄μ©ν μ μμ΅λλ€.
- μ€μ ν λͺ¨λ(λ€ν¬ λͺ¨λ/λΌμ΄νΈ λͺ¨λ), μ¬μ©μμ μ΄λ¦κ³Ό ν μΌμ LocalStorageμ μ μ₯νμ¬ μλ‘κ³ μΉ¨ν΄λ λ°λκ±°λ μ¬λΌμ§μ§ μμ΅λλ€.
- μ¬μ©μ μμΉ μ 보λ geolocationμ, λ μ¨ APIλ Fetchλ₯Ό μ΄μ©ν΄ νΈμΆνμ΅λλ€. μμΉ μ 보λ₯Ό λμν κ²½μ°, νμ¬ μμΉν μ§μμ μ¨λλ₯Ό μ μ μμ΅λλ€. λ μ¨κ° μ’μ κ²½μ°, μΌμͺ½ μλ¨μ βμ€λ λ μ¨κ° μ’μμβλΌλ λ¬Έκ΅¬κ° λ¨λλ‘ λ§λ€μμ΅λλ€.
- μ€λ₯Έμͺ½ μλ¨μλ μκ³μ λ€ν¬ λͺ¨λλ₯Ό ν€κ³ λ μ μλ λ²νΌμ λ§λ€μμ΅λλ€.
- νλ¨μλ math λ©μλλ₯Ό μ΄μ©ν΄ λλ€ν λͺ μΈμ΄ λμ€λλ‘ νμ΅λλ€. λ§€μΌ ν μΌμ μμν μ μλλ‘ μμ§λ₯Ό λΆλμ μ€ μ μλ λͺ μΈμΌλ‘ μ μ νμ΅λλ€.
+ ver 2) λͺ©λ‘ μ ν΄μ§ν΅ μμ΄μ½ ν΄λ¦ μ LocalStorageμ μ μ₯λ λͺ¨λ ν μΌ λͺ©λ‘λ€μ μμ ν μ μλλ‘ νμ΅λλ€.
+ ver 2) λͺ¨λ ν μΌ λͺ©λ‘λ€μ μμ νκΈ° μ μ λͺ¨λ¬μ°½μ λμ μ€μλ‘ λͺ¨λ ν μΌ λͺ©λ‘λ€μ΄ μ¬λΌμ§λ μΌμ λ°©μ§νμ΅λλ€.
+ ver 2) μΌμͺ½ μλ¨μ νλ²κ±° μμ΄μ½μ μΆκ°ν΄ νλ‘ν μ¬μ§μ μ λ‘λ/μμ ν μ μκ² λ§λ€μμ΅λλ€. λκ°κΈ° λ²νΌ ν΄λ¦ μ LocalStorageμ μ μ₯λ λͺ¨λ μ 보λ€(μ΄λ¦, ν μΌ λͺ©λ‘)μ μμ νλλ‘ λ§λ€μμ΅λλ€.
+ ver 2) λκ°κΈ° μ μ λͺ¨λ¬μ°½μ λμ μ μ₯λ λͺ¨λ μ 보λ€μ΄ μ€μλ‘ μ¬λΌμ§λ μΌμ λ°©μ§νμ΅λλ€.
- μ΅λν κΉλνκ³ μ§κ΄μ μΈ λμμΈμΌλ‘ λ§λ€μ΄ μ¬μ©μκ° μ΄μ©νκΈ° νΈνλλ‘ λ§λ€μμ΅λλ€.
- μμ΄λ₯Ό λͺ°λΌλ νΈνκ² μ¬μ©ν μ μλλ‘ μμ΄λ₯Ό μ ν μ°μ§ μκ³ λͺ¨λ νκΈλ‘λ§ μ΄λ£¨μ΄μ§ To-do Listλ₯Ό λ§λ€μμ΅λλ€.