| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 /// Templates used for the HTML visualization of source map information. | 5 /// Templates used for the HTML visualization of source map information. |
| 6 | 6 |
| 7 library sourcemap.html.templates; | 7 library sourcemap.html.templates; |
| 8 | 8 |
| 9 import 'dart:io'; | 9 import 'dart:io'; |
| 10 | 10 |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 <html> | 158 <html> |
| 159 <head> | 159 <head> |
| 160 <style> | 160 <style> |
| 161 a, a:hover { | 161 a, a:hover { |
| 162 text-decoration: none; | 162 text-decoration: none; |
| 163 color: #000; | 163 color: #000; |
| 164 } | 164 } |
| 165 h3 { | 165 h3 { |
| 166 cursor: pointer; | 166 cursor: pointer; |
| 167 } | 167 } |
| 168 .line { |
| 169 margin: 0px; |
| 170 } |
| 168 .lineNumber { | 171 .lineNumber { |
| 169 font-size: smaller; | 172 font-size: smaller; |
| 170 color: #888; | 173 color: #888; |
| 171 } | 174 } |
| 172 .buffer, .js-buffer, .dart-buffer, .js-trace-buffer { | 175 .buffer, .js-buffer, .dart-buffer, .js-trace-buffer { |
| 173 position:fixed; | 176 position:fixed; |
| 174 top:0px; | 177 top:0px; |
| 175 height:100%; | 178 height:100%; |
| 176 overflow:auto; | 179 overflow:auto; |
| 177 } | 180 } |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 </html> | 241 </html> |
| 239 '''); | 242 '''); |
| 240 } | 243 } |
| 241 | 244 |
| 242 /// Outputs [html] in [uri]. | 245 /// Outputs [html] in [uri]. |
| 243 void output(Uri uri, | 246 void output(Uri uri, |
| 244 String html) { | 247 String html) { |
| 245 File outputFile = new File.fromUri(uri); | 248 File outputFile = new File.fromUri(uri); |
| 246 outputFile.writeAsStringSync(html); | 249 outputFile.writeAsStringSync(html); |
| 247 } | 250 } |
| OLD | NEW |