Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submission #1617

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,66 @@ const siteContent = { // DO NOT CHANGE THIS OBJECT
};

console.log('project wired!')


const navItal = document.getElementsByTagName('a')
const img0 = document.querySelector('.logo')

navItal[0].className = "italic"
navItal[0].textContent = "Services"

navItal[1].className = "italic"
navItal[1].textContent = "Product"

navItal[2].className = "italic"
navItal[2].textContent = "Vision"

navItal[3].className = "italic"
navItal[3].textContent = "Features"

navItal[4].className = "italic"
navItal[4].textContent = "About"

navItal[5].className = "italic"
navItal[5].textContent = "Contact"

document.querySelector('h1').textContent = "DOM Is Awesome"

document.querySelector('button').textContent = "Get Started"

img0.src = "http://localhost:9000/img/logo.png"

document.querySelector('#cta-img').src = "http://localhost:9000/img/cta.png"
document.querySelector('#middle-img').src = "http://localhost:9000/img/accent.png"

const pancake = document.getElementsByTagName('h4')
const ptag = document.getElementsByTagName('p')

pancake[2].textContent = "Services"

pancake[3].textContent = "Product"

pancake[4].textContent = "Vision"

pancake[0].textContent = "Features"

pancake[1].textContent = "About"

pancake[5].textContent = "Contact"

ptag[0].textContent = "Features content elementum magna eros, ac posuere elvit tempus et. Suspendisse vel tempus odio, in interdutm nisi. Suspendisse eu ornare nisl. Nullam convallis augue justo, at imperdiet metus scelerisque quis."

ptag[1].textContent = "About content elementum magna eros, ac posuere elvit tempus et. Suspendisse vel tempus odio, in interdutm nisi. Suspendisse eu ornare nisl. Nullam convallis augue justo, at imperdiet metus scelerisque quis."

ptag[2].textContent = "Services content elementum magna eros, ac posuere elvit tempus et. Suspendisse vel tempus odio, in interdutm nisi. Suspendisse eu ornare nisl. Nullam convallis augue justo, at imperdiet metus scelerisque quis."

ptag[3].textContent = "Product content elementum magna eros, ac posuere elvit tempus et. Suspendisse vel tempus odio, in interdutm nisi. Suspendisse eu ornare nisl. Nullam convallis augue justo, at imperdiet metus scelerisque quis."

ptag[4].textContent = "Vision content elementum magna eros, ac posuere elvit tempus et. Suspendisse vel tempus odio, in interdutm nisi. Suspendisse eu ornare nisl. Nullam convallis augue justo, at imperdiet metus scelerisque quis."

ptag[5].textContent = "123 Way 456 Street Somewhere, USA"
ptag[6].textContent = "1 (888) 888-8888"
ptag[7].textContent = "[email protected]"

navItal[6].className = "bold"
navItal[6].textContent = "Copyright Great Idea! 2021"