From 3b331c4313ec1b2e4d4fb08fc06554725d2bd57a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 8 Nov 2015 17:08:49 +0100 Subject: [PATCH] misc: include current date/time in statistics PDF (#8917) --- data/print-html-as-pdf.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/data/print-html-as-pdf.js b/data/print-html-as-pdf.js index 7f7e95e..5808eae 100644 --- a/data/print-html-as-pdf.js +++ b/data/print-html-as-pdf.js @@ -20,6 +20,11 @@ page.open(system.args[1], function() { $('div#main-content > h2').css({ 'border-bottom': '1px solid #666', 'font-weight': 'bold'}); + var date = $('

' + new Date().toLocaleString() + '

').appendTo('div#main-content'); + date.css({ + 'position': 'absolute', + 'top': '2ex', + 'right': '1em'}); }); page.render(system.args[1] + '.pdf'); phantom.exit(); -- 2.6.2