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

Side by Side Diff: frog/docs/interact.dart

Issue 8515029: Move doc generator out of frog samples. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #import('../../client/html/html.dart');
2
3 main() {
4 window.on.contentLoaded.add((e) {
5 for (var elem in document.queryAll('.method, .field')) {
6 var showCode = elem.query('.show-code');
7 var pre = elem.query('pre.source');
8 showCode.on.click.add((e) {
9 if (pre.classes.contains('expanded')) {
10 pre.classes.remove('expanded');
11 } else {
12 pre.classes.add('expanded');
13 }
14 });
15 }
16 });
17 }
OLDNEW
« no previous file with comments | « frog/docs/grid-22.png ('k') | frog/docs/styles.css » ('j') | utils/dartdoc/classify.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698