To do List

Developer
Size
2,692 Kb
Views
14,168

How do I make an to do list?

BLOC.io jquery assignment. What is a to do list? How do you make a to do list? This script and codes were developed by Jeya Karthika on 28 November 2022, Monday.

To do List Previews

To do List - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>To do List</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <body> <div class="container"> <header>My To-Dos</header> <form> <input type="text" placeholder="Type in a new todo and hit enter" /> </form> <ul></ul> </div>
</body> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

To do List - Script Codes CSS Codes

@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700);
body { background:#eee; font-family:'Open Sans', sans-serif; padding:0; margin:0;
}
.container { margin:0 auto;
}
header { padding:1em; text-align:center; text-transform:uppercase; font-weight:bold; color:#666; text-shadow: 0px 1px 0px #fff; background: #eeeeee; /* Old browsers */ background: -moz-linear-gradient(top, #eeeeee 0%, #C9C9C9 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#eeeeee), color-stop(100%,#C9C9C9)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #eeeeee 0%,#C9C9C9 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #eeeeee 0%,#C9C9C9 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #eeeeee 0%,#C9C9C9 100%); /* IE10+ */ background: linear-gradient(to bottom, #eeeeee 0%,#C9C9C9 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#C9C9C9',GradientType=0 ); /* IE6-9 */ border-bottom:1px solid #333;
}
input[type="text"] { width:100%; font-weight:normal; font-size:1em; padding:1em; margin:0; border:none; -webkit-appearance:none; color:#fff; background: #424242; /* Old browsers */ background: -moz-linear-gradient(top, #424242 0%, #636363 99%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#424242), color-stop(99%,#636363)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #424242 0%,#636363 99%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #424242 0%,#636363 99%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #424242 0%,#636363 99%); /* IE10+ */ background: linear-gradient(to bottom, #424242 0%,#636363 99%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#424242', endColorstr='#636363',GradientType=0 ); /* IE6-9 */
}
input:focus { outline-width: 0;
}
/* Placeholder Text */
::-webkit-input-placeholder, :-moz-placeholder, ::-moz-placeholder, :-ms-input-placeholder { color:#eaeaea;
}
ul { margin:0; padding:0;
}
li { list-style-type:none; margin:0; color:#fff; padding:1em; background: #7abcff; /* Old browsers */ background: -webkit-gradient(linear, 0 0, 0 100%, from(#7abcff), color-stop(0.44, #60abf8), to(#4096ee)); background: -webkit-linear-gradient(#7abcff 0%, #60abf8 44%, #4096ee 100%); background: -moz-linear-gradient(#7abcff 0%, #60abf8 44%, #4096ee 100%); background: -o-linear-gradient(#7abcff 0%, #60abf8 44%, #4096ee 100%); background: linear-gradient(#7abcff 0%, #60abf8 44%, #4096ee 100%); /* FF3.6+ */ /* Chrome,Safari4+ */ /* Chrome10+,Safari5.1+ */ /* Opera 11.10+ */ /* IE10+ */ /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7abcff', endColorstr='#4096ee',GradientType=0 ); /* IE6-9 */ border-bottom:1px solid #1C84ED;
}
a { margin-left: 20px; color: #FFF; text-decoration: none; font-weight: 900; float:right;
}

To do List - Script Codes JS Codes

$('form').submit(function () { if ($('input').val()) { var input_value = $('input').val(); $('ul').append('<li>' + input_value + '<a href="">x</a></li>'); }; $('input').val(''); return false;
});
$(document).on('click', 'a', function (e) { e.preventDefault(); $(this).parent().slideUp(250, function(){ $(this).remove() });
});
To do List - Script Codes
To do List - Script Codes
Home Page Home
Developer Jeya Karthika
Username jeyakarthika
Uploaded November 28, 2022
Rating 3
Size 2,692 Kb
Views 14,168
Do you need developer help for To do List?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Jeya Karthika (jeyakarthika) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!