Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

refactoring destroy/remove features and styles

  • Loading branch information...
commit b7b75f6de7a23c94e9b5371ac4780d72bd759196 1 parent 1928f4c
@addyosmani authored
View
6 app.css
@@ -23,9 +23,11 @@ p { position: absolute; top: 116px; left: 80px; margin: 0; padding: 0; width: 27
.new:hover { opacity: .75; }
-.trashcan { position: absolute; top: 63px; left: 57px; width: 15px; height: 19px; cursor: pointer; background: url(assets/trashcan.png) no-repeat; opacity: .25; }
+.trashcan { position: absolute; top: 63px; left: 57px; width: 25px; height: 25px; cursor: pointer; background: url(assets/destroy.png) no-repeat; }
.trashcan:hover { opacity: .75; }
-li .trashcan { top: 1px; left: -48px; }
+li .trashcan { float: right;
+left: 95%;
+top: 15px; }
#page:hover .trashcan { display: inline-block; }
View
1  app.js
@@ -50,6 +50,7 @@ $('#new-todo').keydown(function(e) {
context.partial('templates/_todo.template', todo, function(html) {
$(html).insertAfter('#todo-list li:last');
});
+ $(this).val('');
}
});
View
BIN  assets/destroy.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
6 index.html
@@ -10,9 +10,11 @@
<script src="lib/model.js" type="text/javascript" charset="utf-8"></script>
<script src="app.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
+/*
if (!'localStorage' in window) {
alert("Oh no! Your browser doesn't support localStorage and probably doesn't support the other cool stuff needed to run this app properly. Sad day :(");
- }
+ }*/
+
</script>
</head>
<body>
@@ -43,7 +45,7 @@
<br />
<a href="http://twitter.com/addyosmani">Addy Osmani</a>
<br />
-
+ based on base code by Brandon Aaron
</div>

0 comments on commit b7b75f6

Please sign in to comment.
Something went wrong with that request. Please try again.