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

Unified Diff: src/site/samples/dndfiles/example/slicing.html

Issue 30853002: Added several more HTML5 samples (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
« no previous file with comments | « src/site/samples/dndfiles/example/slicing.dart ('k') | src/site/samples/dndfiles/example/slicing.dart.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/site/samples/dndfiles/example/slicing.html
diff --git a/src/site/samples/dndfiles/example/slicing.html b/src/site/samples/dndfiles/example/slicing.html
new file mode 100644
index 0000000000000000000000000000000000000000..ddcfd934157423223948996341fa8926ff5cdced
--- /dev/null
+++ b/src/site/samples/dndfiles/example/slicing.html
@@ -0,0 +1,29 @@
+<!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>Reading Files Using the File APIs</title>
+ <link rel="stylesheet" href="dndfiles.css">
+ </head>
+ <body>
+ <h3>Slicing a File</h3>
+ <input type="file" id="files" name="file" />
+ <span id="read-bytes-buttons">
+ <button data-startbyte="0" data-endbyte="4">1-5</button>
+ <button data-startbyte="5" data-endbyte="14">6-15</button>
+ <button data-startbyte="6" data-endbyte="7">7-8</button>
+ <button>entire file</button>
+ </span>
+ <div id="byte-range"></div>
+ <div id="byte-content"></div>
+ <script type="application/dart" src="slicing.dart"></script>
+ <script src="packages/browser/dart.js"></script>
+ </body>
+</html>
« no previous file with comments | « src/site/samples/dndfiles/example/slicing.dart ('k') | src/site/samples/dndfiles/example/slicing.dart.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698