Skip to content

Instantly share code, notes, and snippets.

.table-hover tbody tr:hover td,
tbody tr:hover th {
background-color: #FFFFAD;
}
<!-- HTML -->
<div>
<div>
<h3>Tehtävälista:</h3>
<ul data-bind="foreach: todos, visible: todos().length > 0">
<li>
<label data-bind="value: title" />
<a href="#" data-bind="click: $parent.removeTodo">Poista</a>
// PUT api/Todo/5
public HttpResponseMessage PutTodo(int id, Todo todo)
{
if (ModelState.IsValid && id == todo.TodoId)
{
db.Entry(todo).State = EntityState.Modified;
try
{
db.SaveChanges();
@jwillman
jwillman / gist:3817031
Created October 2, 2012 07:24
VisualEvent
javascript:(function(){if(typeof%20VisualEvent!='undefined'){if(document.getElementById('Event_display')){VisualEvent.fnClose();}else{VisualEvent.fnInit();}}else{var%20n=document.createElement('script');n.setAttribute('language','JavaScript');n.setAttribute('src','http://www.sprymedia.co.uk/design/event/media/js/event-loader.js');document.body.appendChild(n);}})();;