-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!doctype html> | ||
|
||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
|
||
<title>Shopping List</title> | ||
<meta name="description" content="The HTML5 Herald"> | ||
<meta name="author" content="SitePoint"> | ||
|
||
<!-- <link rel="stylesheet" href="css/styles.css?v=1.0"> --> | ||
|
||
</head> | ||
|
||
<body> | ||
|
||
<input type="text" id="itemEntry" placeholder="Enter Item"> | ||
<!-- Enter the list items here --> | ||
|
||
<button onclick="addItem()">Add to List</button> | ||
|
||
<ul id="myList"> | ||
<li>Get the list working</li> | ||
</ul> | ||
|
||
<script src="js/scripts.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
function addItem() { | ||
if (document.getElementById("itemEntry").value != '') { | ||
var node = document.createElement("LI"); | ||
node.id = 'giveCheckBox'; | ||
var liText = document.getElementById("itemEntry").value; | ||
var textnode = document.createTextNode(liText); | ||
node.appendChild(textnode); | ||
document.getElementById("myList").appendChild(node); | ||
var cbNode = document.createElement("INPUT"); | ||
cbNode.setAttribute("type", "checkbox"); | ||
document.getElementById("itemEntry").value = ''; | ||
} | ||
|
||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!doctype html> | ||
|
||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
|
||
<title>Color Picker</title> | ||
|
||
<link rel="stylesheet" href="css/style.css?v=1.0"> | ||
|
||
</head> | ||
|
||
<body> | ||
<script src="js/script.js"></script> | ||
<div> | ||
<input type="color" id="bgColorPicker" value="#FFFFFF"> | ||
<label id="instructions " for="background">Choose the Background Color and Click the Button!</label> | ||
<input type="Button" name="bgColorChanger" onclick="changeColor()" value="Click Me!"> | ||
</div> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
var bgColor; | ||
|
||
function changeColor() { | ||
let bgColor = document.getElementById('bgColorPicker').value; | ||
document.body.style.backgroundColor = bgColor; | ||
} |