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

Unified Diff: src/site/samples/dnd/example/basics.dart

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/dnd/example/basics.css ('k') | src/site/samples/dnd/example/basics.dart.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/site/samples/dnd/example/basics.dart
diff --git a/src/site/samples/dnd/example/basics.dart b/src/site/samples/dnd/example/basics.dart
new file mode 100644
index 0000000000000000000000000000000000000000..aff39534b4ff833022eef19c2e3f7c7869a431b0
--- /dev/null
+++ b/src/site/samples/dnd/example/basics.dart
@@ -0,0 +1 @@
+import "dart:html" as i;class l{const l();}class m{final name;const m(this.name);}class n{const n();}class o{var q; start(){var h=i.document.queryAll('#columns .column');for(var g in h){g.onDragStart.listen(s);g.onDragEnd.listen(t);g.onDragEnter.listen(u);g.onDragOver.listen(v);g.onDragLeave.listen(AB);g.onDrop.listen(BB);}} s( h){var g=h.target;g.classes.add('moving');q=g;h.dataTransfer.effectAllowed='move';h.dataTransfer.setData('text/html',g.innerHtml);} t( j){var g=j.target;g.classes.remove('moving');var k=i.document.queryAll('#columns .column');for(var h in k){h.classes.remove('over');}} u( g){var h=g.target;h.classes.add('over');} v( g){g.preventDefault();g.dataTransfer.dropEffect='move';} AB( g){var h=g.target;h.classes.remove('over');} BB( g){g.stopPropagation();var h=g.target;if(q!=h){q.innerHtml=h.innerHtml;h.innerHtml=g.dataTransfer.getData('text/html');}}} main(){var g=new o();g.start();}
« no previous file with comments | « src/site/samples/dnd/example/basics.css ('k') | src/site/samples/dnd/example/basics.dart.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698