-
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.
"some modifications and file have been changed"
- Loading branch information
Showing
3 changed files
with
58 additions
and
58 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
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
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,45 @@ | ||
|
||
function first(){ | ||
let a = document.getElementById("ip1").value; | ||
|
||
document.getElementById("ip1").value=""; | ||
|
||
var para = ""; | ||
|
||
var t =[]; | ||
var d = a; | ||
t.push(d); | ||
// console.log(t); | ||
var node = document.createElement("p"); | ||
var btn = document.createElement("button"); | ||
btn.setAttribute("id" , "remzbtn"); | ||
btn.addEventListener("click" , trash); | ||
var insbtn = document.createElement("i"); | ||
insbtn.setAttribute("class" , "fa fa-trash onez"); | ||
// console.log(insbtn); | ||
btn.appendChild(insbtn); | ||
var c = document.createTextNode(t); | ||
|
||
node.appendChild(btn); | ||
node.appendChild(c) ; | ||
// dynamic css styles. | ||
node.style.backgroundColor="#fff"; | ||
node.style.padding = "20px"; | ||
node.style.fontSize = "20px"; | ||
node.style.margin="10px 10px"; | ||
node.style.borderBottom="1px solid"; | ||
node.style.borderBottomColor="#f1f1f1"; | ||
node.style.overflow="hidden"; | ||
insbtn.style.fontSize="19px"; | ||
btn.style.marginRight="24px "; | ||
btn.style.overflow="hidden"; | ||
|
||
|
||
document.getElementById("one").append(node); | ||
|
||
function trash(){ | ||
var rtm = document.getElementsByName(c); | ||
// console.log(rtm); | ||
node.remove(rtm); //it will remove the which btn clicked. | ||
} | ||
} |
aeb8e5b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
to-do-list-app – ./
to-do-list-app-lyart.vercel.app
to-do-list-app-git-master-shyam1806.vercel.app
to-do-list-app-shyam1806.vercel.app