Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Unified Diff: src/site/samples/todo/index.markdown

Issue 27267004: Re-configured samples page. (Closed) Base URL: https://github.com/dart-lang/dartlang.org.git@master
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/site/samples/todo/index.markdown
diff --git a/src/site/samples/todo/index.markdown b/src/site/samples/todo/index.markdown
new file mode 100644
index 0000000000000000000000000000000000000000..acbf81717f3592e1d0163633c67ced8457d0b03c
--- /dev/null
+++ b/src/site/samples/todo/index.markdown
@@ -0,0 +1,28 @@
+---
+layout: default
+title: Adding elements to the DOM
+live_example_url: /docs/tutorials/add-elements/examples/todo/todo.html
+header:
+ css: ["/samples/samples.css"]
+---
+
+## {{ page.title }}
+
+Enter text in the input field and press return.
+
+This app shows how to programmatically add an element to the DOM.
+
+In this example, when you press return, the event handler for the input
+field creates a new <li> element and adds it to an existing <ul> list in the
+DOM tree. When the DOM tree changes, the web page refreshes.
+
+Read this [tutorial](/docs/tutorials/add-elements/) for
+more detail, or read the
+[source](https://github.com/dart-lang/dart-tutorials-samples/tree/master/web/todo).
+
+<iframe class="running-app-frame"
+ style="height:400px;width:40%;"
+ src="{{page.live_example_url}}">
+</iframe>
+
+See all [samples](/samples/)

Powered by Google App Engine
This is Rietveld 408576698