Index: src/site/samples/localstorage/index.markdown |
diff --git a/src/site/samples/localstorage/index.markdown b/src/site/samples/localstorage/index.markdown |
new file mode 100644 |
index 0000000000000000000000000000000000000000..21b6d5d37329bd9b6e38d6a77a222b81d4583873 |
--- /dev/null |
+++ b/src/site/samples/localstorage/index.markdown |
@@ -0,0 +1,24 @@ |
+--- |
+layout: default |
+title: Simple localstorage example |
+live_example_url: example/index.html |
+header: |
+ css: ["/samples/samples.css"] |
+--- |
+ |
+## {{ page.title }} |
+ |
+This is a very simple example of the use of localstorage for data |
+persistence. When you enter a value in the `input` below, it is stored |
+in localstorage. The value is then retrieved from localstorage and displayed |
+on the page. |
+ |
+Read the |
+[source](https://github.com/dart-lang/dart-samples/tree/master/web/html5/localstorage/basics). |
+ |
+<iframe class="running-app-frame" |
+ style="height:400px;width:50%;" |
+ src="{{page.live_example_url}}"> |
+</iframe> |
+ |
+See all [samples](/samples/) |