Skip to content

Instantly share code, notes, and snippets.

@levicole
Forked from anonymous/index.html
Created September 28, 2016 18:35
Show Gist options
  • Save levicole/14573557f0eb6cc54bf9030fd6d5a8c1 to your computer and use it in GitHub Desktop.
Save levicole/14573557f0eb6cc54bf9030fd6d5a8c1 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/woximuyewa
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="https://code.jquery.com/jquery-3.0.0.js"></script>
</head>
<body>
<h1>My Awesome ToDo List</h1>
<ul id="todo-list">
</ul>
<script id="jsbin-javascript">
var todoListItems = [
{"title" : "Walk the dog"},
{"title" : "Clean the car"},
{"title" : "Do the laundry"}
]
// Append each to do list item in the
// array to the un ordered list with
// the id of "todo-list".
// Use jQuery.
var addTodos = function() {
// add the todo's here
}
$(addTodos)
</script>
<script id="jsbin-source-javascript" type="text/javascript">var todoListItems = [
{"title" : "Walk the dog"},
{"title" : "Clean the car"},
{"title" : "Do the laundry"}
]
// Append each to do list item in the
// array to the un ordered list with
// the id of "todo-list".
// Use jQuery.
var addTodos = function() {
// add the todo's here
}
$(addTodos)</script></body>
</html>
var todoListItems = [
{"title" : "Walk the dog"},
{"title" : "Clean the car"},
{"title" : "Do the laundry"}
]
// Append each to do list item in the
// array to the un ordered list with
// the id of "todo-list".
// Use jQuery.
var addTodos = function() {
// add the todo's here
}
$(addTodos)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment