| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /** Provides client-side behavior for generated docs. */ | 5 /** Provides client-side behavior for generated docs. */ |
| 6 #library('client-live-nav'); | 6 #library('client-live-nav'); |
| 7 | 7 |
| 8 #import('dart:html'); | 8 #import('dart:html'); |
| 9 #import('dart:json'); | 9 #import('dart:json'); |
| 10 #import('../../frog/lang.dart', prefix: 'frog'); | 10 #import('../../frog/lang.dart', prefix: 'frog'); |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 html.add( | 97 html.add( |
| 98 ''' | 98 ''' |
| 99 <a href="$prefix${type["url"]}"> | 99 <a href="$prefix${type["url"]}"> |
| 100 <div class="icon-$icon"></div>${type["name"]} | 100 <div class="icon-$icon"></div>${type["name"]} |
| 101 </a> | 101 </a> |
| 102 '''); | 102 '''); |
| 103 } | 103 } |
| 104 html.add('</li>'); | 104 html.add('</li>'); |
| 105 } | 105 } |
| 106 | 106 |
| 107 html.add('<ul>'); | 107 html.add('<ul class="icon">'); |
| 108 types.forEach((type) => writeType(type['kind'], type)); | 108 types.forEach((type) => writeType(type['kind'], type)); |
| 109 exceptions.forEach((type) => writeType('exception', type)); | 109 exceptions.forEach((type) => writeType('exception', type)); |
| 110 html.add('</ul>'); | 110 html.add('</ul>'); |
| 111 } | 111 } |
| OLD | NEW |