728x90
* 연습과제 1
// 컨테이너 생성
const photoContainer = document.createElement('div')
photoContainer.id = 'photo-container'
// 컨테이너에 추가하기
for(let i=0; i<5; i++){
// 사진리스트 생성하기
const photoItem = document.createElement('div')
photoItem.className = 'photo-item'
const img = document.createElement('img')
img.src = 'http://localhost:5500'
img.alt = 'photo'
photoItem.appendChild(img)
photoContainer.appendChild(photoItem)
}
// HTML 문서에 생성한 DOM 마운트하기
const root = document.getElementById('root')
root.appendChild(photoContainer)
// 클래스명이 photo-item 인 img 요소 검색하기
const imgs = document.querySelectorAll('.photo-item img')
console.log(imgs[0].alt)
* 연습과제 2
const imgSrc = 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoHCBUWEhgSEhUSEhIVEhISERESGBEREhESGBQZGRgUGBgcIS4lHB4rHxgYJjgmKy8xNTU1GiQ7QDs0Py40NTEBDAwMEA8QHBISHjQhISE0NDQ0NDQxNDQ0MTQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0Mf/AABEIALcBEwMBIgACEQEDEQH/xAAcAAACAwEBAQEAAAAAAAAAAAADBQACBAEGBwj/xAA1EAACAQMCBAMHAwQCAwAAAAABAgADBBESIQUxQVETYXEGFCIygZGhseHwUsHR8SNCFWLy/8QAGQEAAwEBAQAAAAAAAAAAAAAAAAECAwQF/8QAIBEAAgIDAAMBAQEAAAAAAAAAAAECEQMSIRMxQSJRBP/aAAwDAQACEQMRAD8A9hSqxhSqDE8+laa6V1tPOjM9eULGrVRLLXET1LmAN7B5KDxj5roTM94Ine8MzPckyHkbKWNIa1ryZjdReHJl87RWx0jW91tMla4JlcSMktMzaMbgneVCR14dBKampu7AnGcaR0zMVYU/mQ7fQ4m+jSsx3TdGIrOhZo8Od8OSWUUbSS+mcCyGNFQ0uKs4ywbCIoIa0KlzMDic1GADUXUNTuojDmbLOjUfZFZupwCQIUwtJdHaXM10q8ROjp86lfWGpXUltoaSZ6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sW1SLznMS6rGkQ2XPKD1QhgnSMSo4z5knAuJYxDBEZg3XA2mgCdKwoVg7RIxQzPSWadEZLCB5CZTE7mBPCapUyTkBlTJqncThgOyjCV0S+ZwtFQWUIlZ1mg2aBSOlpXXBO0HqisqjQXlGqQRaCZ4mylEK7yK8zO84rybHqbfEnPEmXVJqj2DU3pUh0qRcjzTTMakS4mzWJJmzJK2YtQyy4nJIITOssoRJJGIoZA07JAGdzOEySRklDIJySIo6J0SSQEwqNDB5JIEsmZMySSiSZldU7JJGipeCd5JImWiniSpeSSIooXlS0kkBlGMCxkkiGd1bQFQySSWUgLNIs7JBDYQS6ySRiLqJrpySQQMJJJJGI//9k='
// 네비게이션바 만들기
// 메뉴 만들기
const menu = document.createElement('div')
menu.id = 'menu'
for(let i=0;i<3;i++){
const bar = document.createElement('div')
bar.className = 'bar'
menu.appendChild(bar)
}
console.log(menu)
// 스크린모드 만들기
const circleBtn = document.createElement('div')
circleBtn.id = 'circle-btn'
const screenMode = document.createElement('div')
screenMode.id = 'screen-mode'
screenMode.appendChild(circleBtn)
console.log(screenMode)
// 프로필 이미지 만들기
const img = document.createElement('img')
img.src = imgSrc
const profileMenu = document.createElement('div')
profileMenu.id = 'profile-menu'
profileMenu.appendChild(img)
console.log(profileMenu)
// 네비게이션바에 자식요소 추가하기
const nav = document.createElement('div')
nav.id = 'nav'
nav.append(menu, screenMode, profileMenu)
console.log(nav)
// 헤딩 만들기
const h1 = document.createElement('h1')
h1.innerText = 'My photo gallery'
const h4 = document.createElement('h4')
h4.innerText = 'my old memories from my life'
const heading = document.createElement('div')
heading.id = 'heading'
heading.append(h1, h4)
const input = document.createElement('input')
input.type = 'text'
input.placeholder = 'Search photo ...'
const search = document.createElement('div')
search.id = 'search'
search.appendChild(input)
console.log(search)
// 헤딩과 서치를 center 에 추가하기
const center = document.createElement('div')
center.id = 'center'
center.append(heading, search)
const title = document.createElement('div')
title.id = 'title'
title.appendChild(center)
console.log(title)
// 사진 리스트 만들기
const photoList = document.createElement('div')
photoList.id = 'photo-list'
for(let i=0;i<9;i++){
const img = document.createElement('img')
img.src = imgSrc
const photoCard = document.createElement('div')
photoCard.className = 'photo-card'
photoCard.appendChild(img)
const photoName = document.createElement('div')
photoName.className = 'photo-name'
photoName.innerText = '이름'
const photoContainer = document.createElement('div')
photoContainer.className = 'photo-container'
photoContainer.append(photoCard, photoName)
photoList.appendChild(photoContainer)
}
// 모달창 만들기
const header = document.createElement('div')
header.id = 'header'
header.innerText = 'Food Recipe'
const p = document.createElement('p')
p.innerText = 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Error modi nesciunt facilis tempora qui temporibus, odio dolores reiciendis, quis voluptate ducimus quam. Voluptatum omnis, rem quam porro ipsam nam dolorum. Laudantium aliquam suscipit, nobis exercitationem neque inventore incidunt quos possimus numquam! Temporibus adipisci, illum in fuga earum magnam consequatur minima. Neque, labore esse tempora tenetur doloribus beatae. Facere, dolorum incidunt? Nulla facere earum fuga doloremque magni. Aspernatur excepturi ipsam commodi in ullam? Dolore, ipsa, a dignissimos, vel nulla alias accusantium qui voluptatibus officia minus est libero! Adipisci, fugit? Architecto, quia!'
const body = document.createElement('div')
body.id = 'body'
body.appendChild(p)
const button = document.createElement('button')
button.innerText = 'Close'
const footer = document.createElement('div')
footer.id = 'footer'
footer.appendChild(button)
const modalWindow = document.createElement('div')
modalWindow.className = 'modal-window'
modalWindow.append(header, body, footer)
// 바디에 nav, title, photoList, modalWindow 추가하기
document.body.append(nav, title, photoList, modalWindow)
* 연습과제 3~7
// 연습과제 3
const subHeading = document.querySelector('#heading h4')
subHeading.innerText = '내 인생의 좋은 추억들'
// 연습과제 4
const profileMenuSearched = document.getElementById('profile-menu')
const profileImg = profileMenuSearched.querySelector('img')
// console.log(profileImg)
profileImg.src = imgSrc
// 연습과제 5
const photoItem = document.querySelectorAll('.photo-card img')[2]
// console.log(photoItem)
photoItem.src = 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoHCBUV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F2DA+nLUzciKDQLXfeqkknTPJXXZzuF2RMPrvXWEVQJJJo6eGTXZ3ASSwNVyMftK6fISwW9vgLkkmPky2umM505SrWSC9VCtp+ZvZg9ehPpZ3kkhX+LM49oTXHylR8bqBK/m+Ekk5/wBzr/b+ARcgdB94nlzSSSfpqJvmNzskkAP/2Q=='
// 연습과제 6
const photoNameSearched = document.querySelectorAll('.photo-name')[4]
// console.log(photoNameSearched)
photoNameSearched.innerText = 'sunrise'
// 연습과제 7
const modalWindowSearched = document.querySelector('.modal-window')
// modalWindowSearched.className = 'modal-window hide'
modalWindowSearched.classList.add('hide')
728x90
'프론트엔드 > Javascript 연습과제 해답' 카테고리의 다른 글
자바스크립트 문법 11 - 객체(Object) 해답 (0) | 2022.01.16 |
---|---|
자바스크립트 문법 1 - 변수(Variable)와 자료형(Data Type) 해답 (0) | 2022.01.15 |
자바스크립트 문법 5 - 이벤트(Event) 처리하기 3 해답 (0) | 2022.01.15 |
자바스크립트 문법 4 - 이벤트 (Event) 처리하기 2 해답 (0) | 2022.01.15 |
자바스크립트 문법 3 - 이벤트(Event) 처리하기 해답 (0) | 2022.01.15 |