๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๋ฐ˜์‘ํ˜•

๋ฐ”๋‹๋ผjs40

[๋ฐ”๋‹๋ผJS๋กœ ํฌ๋กฌ ์•ฑ ๋งŒ๋“ค๊ธฐ] Getting the Weather part Two API [์ถœ์ฒ˜-์œ ํŠœ๋ธŒ ๋…ธ๋งˆ๋“œ ์ฝ”๋” Nomad Coders] https://youtu.be/l6hSze8vgVo index.html 00:00 weather.js const weather = document.querySelector(".js-weather"); const API_KEY = "f97c1ed1e4b50ed233ccabf8c1ea2011"; const COORDS = 'coords'; function getWeather(lat, lng){ fetch( `https://api.openweathermap.org/data/2.5/weather?lat=${lat}&lon=${lng}&appid=${API_KEY}&units=metric` ).then(function(response){ return respon.. 2021. 3. 3.
[๋ฐ”๋‹๋ผJS๋กœ ํฌ๋กฌ ์•ฑ ๋งŒ๋“ค๊ธฐ] Getting the Weather part One Geolocation [์ถœ์ฒ˜-์œ ํŠœ๋ธŒ ๋…ธ๋งˆ๋“œ ์ฝ”๋” Nomad Coders] https://youtu.be/5fAMu2ORvDA index.html 00:00 weather.js const API_KEY = "f97c1ed1e4b50ed233ccabf8c1ea2011"; const COORDS = 'coords'; function saveCoords(coordsObj){ localStorage.setItem(COORDS, JSON.stringify(coordsObj)); } function handleGeoSuccess(position){ const latitude = position.coords.latitude; const longitude = position.coords.longitude; const coordsObj = {.. 2021. 3. 3.
[๋ฐ”๋‹๋ผJS๋กœ ํฌ๋กฌ ์•ฑ ๋งŒ๋“ค๊ธฐ] Image Background [์ถœ์ฒ˜-์œ ํŠœ๋ธŒ ๋…ธ๋งˆ๋“œ ์ฝ”๋” Nomad Coders] https://youtu.be/aHlJqxLREcY ๋จผ์ € ์‚ฌ์šฉํ•  ์ด๋ฏธ์ง€๋ฅผ ๋‹ค์šด๋ฐ›๋Š”๋‹ค https://unsplash.com/ Beautiful Free Images & Pictures | Unsplash Beautiful, free images and photos that you can download and use for any project. Better than any royalty free or stock photos. unsplash.com -์ด๋ฏธ์ง€ ๋žœ๋ค์œผ๋กœ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ bg.js const body = document.querySelector("body"); const IMG_NUMBER = 3; function paintImage(imgNumbe.. 2021. 3. 3.
[๋ฐ”๋‹๋ผJS๋กœ ํฌ๋กฌ ์•ฑ ๋งŒ๋“ค๊ธฐ] Making a To Do List part Three [์ถœ์ฒ˜-์œ ํŠœ๋ธŒ ๋…ธ๋งˆ๋“œ ์ฝ”๋” Nomad Coders] https://youtu.be/dbPOjiG5WJ4 -HTML์—์„œ ์ง€์šฐ๊ธฐ function deleteToDo(event){ console.log(event.target); } delBtn.addEventListener("click", deleteToDo); function paintToDo(text){ const li = document.createElement("li"); const delBtn = document.createElement("button"); const span = document.createElement("span"); const newId = toDos.length + 1; delBtn.innerText = "X"; delBtn.a.. 2021. 3. 3.
[๋ฐ”๋‹๋ผJS๋กœ ํฌ๋กฌ ์•ฑ ๋งŒ๋“ค๊ธฐ] Making a To Do List part Two [์ถœ์ฒ˜-์œ ํŠœ๋ธŒ ๋…ธ๋งˆ๋“œ ์ฝ”๋” Nomad Coders] https://youtu.be/JEbOaI_0phc const toDoObj = { text: text, id: toDos.length + 1 }; toDos.push(toDoObj); โ†‘์ด๊ฒƒ์„ ์ถ”๊ฐ€ํ•ด์ค€๋‹ค const toDoForm = document.querySelector(".js-toDoForm"), toDoInput = toDoForm.querySelector("input"), toDoList = document.querySelector(".js-toDoList"); const TODOS_LS = 'toDos'; const toDos = []; function paintToDo(text){ const li = document.createEleme.. 2021. 3. 3.
[๋ฐ”๋‹๋ผJS๋กœ ํฌ๋กฌ ์•ฑ ๋งŒ๋“ค๊ธฐ] Making a To Do List part One [์ถœ์ฒ˜-์œ ํŠœ๋ธŒ ๋…ธ๋งˆ๋“œ ์ฝ”๋” Nomad Coders] https://youtu.be/YD1yDErhMa4 index.html 00:00 todo.js const toDoForm = document.querySelector(".js-toDoForm"), toDoInput = toDoForm.querySelector("input"), toDoList = document.querySelector(".js-toDoList"); const TODOS_LS = 'toDos'; function paintToDo(text){ console.log(text); } function handleSubmit(event){ event.preventDefault(); const currentValue = toDoInput.valu.. 2021. 2. 26.
๋ฐ˜์‘ํ˜•