MCPcopy Create free account
hub / github.com/nodejs/node / PrintHeader

Method PrintHeader

deps/v8/tools/perf-compare.py:209–323  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

207 return "<font color=\"green\">%s</font>" % data
208
209 def PrintHeader(self):
210 data = """<html>
211<head>
212<title>Output</title>
213<style type="text/css">
214/*
215Style inspired by Andy Ferra&#x27;s gist at https://gist.github.com/andyferra/2554919
216*/
217body {
218 font-family: Helvetica, arial, sans-serif;
219 font-size: 14px;
220 line-height: 1.6;
221 padding-top: 10px;
222 padding-bottom: 10px;
223 background-color: white;
224 padding: 30px;
225}
226h1, h2, h3, h4, h5, h6 {
227 margin: 20px 0 10px;
228 padding: 0;
229 font-weight: bold;
230 -webkit-font-smoothing: antialiased;
231 cursor: text;
232 position: relative;
233}
234h1 {
235 font-size: 28px;
236 color: black;
237}
238
239h2 {
240 font-size: 24px;
241 border-bottom: 1px solid #cccccc;
242 color: black;
243}
244
245h3 {
246 font-size: 18px;
247}
248
249h4 {
250 font-size: 16px;
251}
252
253h5 {
254 font-size: 14px;
255}
256
257h6 {
258 color: #777777;
259 font-size: 14px;
260}
261
262p, blockquote, ul, ol, dl, li, table, pre {
263 margin: 15px 0;
264}
265
266li p.first {

Callers 1

RenderFunction · 0.95

Calls 1

PrintMethod · 0.95

Tested by

no test coverage detected