OLD | NEW |
---|---|
(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 } | |
OLD | NEW |