Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
monday updates
- Loading branch information
tsbugbee
committed
Jan 27, 2020
1 parent
65150b2
commit 9d44948
Showing
1 changed file
with
51 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,51 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>My Shopping List App</title> | ||
<style> | ||
#item{ | ||
border: 1px solid #ccc; | ||
font-size: 16px; | ||
} | ||
ul,li { | ||
margin: 0px; | ||
padding: 0px; | ||
list-style-type: none; | ||
} | ||
li{ | ||
padding: 0.5em; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<h1>My Shopping List App</h1> | ||
<input type="text" name="item" id="item"> <button id="add">Add</button> | ||
|
||
<hr> | ||
|
||
<ul> | ||
<li> | ||
<input type="checkbox" name="items"> | ||
Milk | ||
<a href="">x</a> | ||
</li> | ||
<li> | ||
<input type="checkbox" name="items"> | ||
Cookies | ||
<a href="">x</a> | ||
</li> | ||
</ul> | ||
<script> | ||
const addBtn = document.getElementById('add'); | ||
const inputBox = document.getElementById('item'); | ||
|
||
addBtn.addEventListener('click',function(){ | ||
console.log('button clicked', inputBox.value); | ||
}); | ||
|
||
</script> | ||
</body> | ||
</html> |