-
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
shyam
committed
Oct 12, 2020
0 parents
commit b063245
Showing
12 changed files
with
3,077 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,113 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>To do List App</title> | ||
<link rel="stylesheet" href="css/font-awesome.min.css"> | ||
<link rel="stylesheet" href="css/style1.css"> | ||
<link rel="icon" href="img/to-do.png"> | ||
|
||
</head> | ||
<body> | ||
<section class="start"> | ||
<div class="startinner"> | ||
<div class="container"> | ||
|
||
<div class="today"> | ||
<h1>Today </h1> | ||
</div> | ||
<section class="firstpart"> | ||
<input type="text" id="ip1" placeholder="Enter Your Task"> | ||
<button type="button" onclick="first()" id="clik" class="add"> | ||
<i class="fa fa-plus" aria-hidden="true"></i> | ||
|
||
</button> | ||
|
||
</section> | ||
<section class="secondpart"> | ||
<div class="static"> | ||
<p><span class="fa fa-trash staticz"></span> Hit the + button to add a new item.</p> | ||
</div> | ||
<div class="static"> | ||
<p><span class="fa fa-trash staticz"> </span> Hit this Left side icon to delete an item. | ||
</p> | ||
</div> | ||
<div class="static"> | ||
<p><span class="fa fa-trash staticz"> </span> To do Reminds your daily work | ||
</p> | ||
</div> | ||
<div class="static"> | ||
<p><span class="fa fa-trash staticz"> </span> | ||
</p> | ||
</div> | ||
<div class="static"> | ||
<p><span class="fa fa-trash staticz"> </span> | ||
</p> | ||
</div> | ||
<p id="one"></p> | ||
</section> | ||
</div> | ||
<div class="footer"> | ||
<h3>Design And Developed by Shyam </h3> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
|
||
<script> | ||
|
||
|
||
// Here is the ToDo list App Script code . | ||
|
||
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. | ||
} | ||
|
||
|
||
} | ||
|
||
</script> | ||
|
||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.