Skip to content

Commit

Permalink
first netlify try
Browse files Browse the repository at this point in the history
  • Loading branch information
shyam committed Oct 12, 2020
0 parents commit b063245
Show file tree
Hide file tree
Showing 12 changed files with 3,077 additions and 0 deletions.
113 changes: 113 additions & 0 deletions Todo List App.html
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>
4 changes: 4 additions & 0 deletions css/font-awesome.min.css

Large diffs are not rendered by default.

Loading

0 comments on commit b063245

Please sign in to comment.