Skip to content
Open
Show file tree
Hide file tree
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
21 changes: 21 additions & 0 deletions DOM.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
function sentenceChange() {
document.getElementById("Paragraph1").textContent =("we are coders!");
}

function addImage () {

document.getElementById()
}

function colorchange() {
document.getElementById("Paragraph1").style.color = "blue"

}

function fontSize() {
document.getElementsByTagName('p').style.size = "40px"

}

document.getElementById("my_button").style.visibility = "hidden";

23 changes: 23 additions & 0 deletions js-dom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<title></title>

<script src="DOM.js"></script>

</head>
<body>
<button type="button" onclick="sentenceChange()">change</button>
<button id="my_button" type="button" onclick="delete()">Hide image</button>

<img id="myImg" src="fist.png" alt="fist">

<p id="Paragraph1"> Developers for life!</p>

<p id="Paragraph2"></p>




</body>
</html>
17 changes: 17 additions & 0 deletions lib/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<title>About me</title>
<script src="main.js"></script>
</head>
<body>
<span id="">
<ul>
<li>Nickname: booboo</li>
<li>Favorites: music, pizza, The Office</li>
<li>Hometown: Wilmington </li>
<li>Random Fact: Black is my favorite color.</li>
</ul>
</span>
</body>
</html>
9 changes: 9 additions & 0 deletions lib/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
function fontChange() {
document.getElementsByTagName('body').font.family = "Arial, sans-serif"

}
function colorchange() {
document.getElementsByTagName('li').style.color = "blue"

}