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

Unified Diff: pkg/js/example/index.html

Issue 1411503002: pkg/js: improved readme, added example (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: nits Created 5 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 | « pkg/js/example/chart_js_example.dart ('k') | pkg/js/lib/js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/js/example/index.html
diff --git a/pkg/js/example/index.html b/pkg/js/example/index.html
new file mode 100644
index 0000000000000000000000000000000000000000..5712e6d14e150de56968ce6b6375ae2c77c90001
--- /dev/null
+++ b/pkg/js/example/index.html
@@ -0,0 +1,14 @@
+<!doctype html>
+<html>
+ <head>
+ <title>Chart.js and Dart interop example</title>
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/1.0.2/Chart.js"></script>
+ <script type="application/dart" src="chart_js_example.dart"></script>
+ <script src="packages/browser/dart.js"></script>
+ </head>
+ <body>
+ <div style="margin: 20px;">
+ <canvas id="canvas" height="450" width="600"></canvas>
+ </div>
+ </body>
+</html>
« no previous file with comments | « pkg/js/example/chart_js_example.dart ('k') | pkg/js/lib/js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698