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

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

Issue 35563005: Added landing pages for new samples (Closed) Base URL: https://github.com/dart-lang/dartlang.org.git@master
Patch Set: Tweak 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/dndfiles/index.markdown
diff --git a/src/site/samples/dndfiles/index.markdown b/src/site/samples/dndfiles/index.markdown
new file mode 100644
index 0000000000000000000000000000000000000000..b097c66a45e96c7243509a12882ce0a7b6e86854
--- /dev/null
+++ b/src/site/samples/dndfiles/index.markdown
@@ -0,0 +1,28 @@
+---
+layout: default
+title: Working with the Files API
+live_example_url: example/index.html
+
+header:
+ css: ["/samples/samples.css"]
+---
+
+## {{ page.title }}
+
+A Dart port of the Files API examples used in the
+[Reading files in JavaScript using the File APIs](http://www.html5rocks.com/en/tutorials/file/dndfiles/)
+article by Eric Bidelman, originally published on HTML5Rocks.
+
+The examples show how to select a file using a form input, or using drag and
+drop. See how you can slice a file in separate byte range
+chunks for efficient uploading, and monitor progress while uploading a file.
+
+Read the
+[source](https://github.com/dart-lang/dart-samples/tree/master/web/html5/file/dndfiles).
+
+<iframe class="running-app-frame"
+ style="height:500px;width:100%;"
+ src="{{page.live_example_url}}">
+</iframe>
+
+See all [samples](/samples/).

Powered by Google App Engine
This is Rietveld 408576698