0001-misc-include-current-date-time-in-statistics-PDF-891.patch
data/print-html-as-pdf.js | ||
---|---|---|
20 | 20 |
$('div#main-content > h2').css({ |
21 | 21 |
'border-bottom': '1px solid #666', |
22 | 22 |
'font-weight': 'bold'}); |
23 |
var date = $('<p>' + new Date().toLocaleString() + '</p>').appendTo('div#main-content'); |
|
24 |
date.css({ |
|
25 |
'position': 'absolute', |
|
26 |
'top': '2ex', |
|
27 |
'right': '1em'}); |
|
23 | 28 |
}); |
24 | 29 |
page.render(system.args[1] + '.pdf'); |
25 | 30 |
phantom.exit(); |
26 |
- |