Index: src/site/samples/localstorage/example/index.html |
diff --git a/src/site/samples/localstorage/example/index.html b/src/site/samples/localstorage/example/index.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d19fe9773c3323ce67966e864e2403db47b7a1ee |
--- /dev/null |
+++ b/src/site/samples/localstorage/example/index.html |
@@ -0,0 +1,28 @@ |
+<!DOCTYPE html> |
+ |
+<!-- |
+ Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+ for details. All rights reserved. Use of this source code is governed by a |
+ BSD-style license that can be found in the LICENSE file. |
+--> |
+ |
+<html> |
+ <head> |
+ <meta charset="utf-8"> |
+ <title>Local Storage in Dart</title> |
+ </head> |
+ <body> |
+ <h1>Local Storage in Dart</h1> |
+ |
+ <p> |
+ From local storage: <output id="username-output"></output> |
+ </p> |
+ |
+ <label for="username">Username:</label> |
+ <input type="text" name="username" id="username"> |
+ <input type="submit" id="save" value="Save"> |
+ |
+ <script type="application/dart" src="localstorage.dart"></script> |
+ <script src="packages/browser/dart.js"></script> |
+ </body> |
+</html> |