From 5de6253b37af2d2fd35d5adac2ad2044d28868b1 Mon Sep 17 00:00:00 2001 From: Josh Hickman Date: Fri, 17 Jun 2016 17:15:26 -0400 Subject: [PATCH] Clean up index.html The indentation is obviously purely cosmetic, but the script tag should be in the body, and not a direct subnode of html, which (while it works fine in every browser I've tried) is less than ideal for example code. --- index.html | 50 +++++++++++++++++++++++--------------------------- 1 file changed, 23 insertions(+), 27 deletions(-) diff --git a/index.html b/index.html index 4986d8e..dba51ad 100644 --- a/index.html +++ b/index.html @@ -1,31 +1,27 @@ - - - - Elm • TodoMVC - - - - - - - - + + + + - + } + }, 50); + }); + todomvc.ports.setStorage.subscribe(function(state) { + localStorage.setItem('elm-todo-state', JSON.stringify(state)); + }); + +