diff --git a/index.html b/index.html index 6a03696..31f4db6 100644 --- a/index.html +++ b/index.html @@ -28,7 +28,7 @@ function cobiss() { var prispevki = document.getElementById("prispevki").value var priloge = "Priloga: " var datum = new Date(); - var date = "Datum: " + datum.getDate() + ". "+ (datum.getMonth()+1) + ". " + datum.getFullYear() + var date = "Datum: " + datum.getDate() + ". " + (datum.getMonth()+1) + ". " + datum.getFullYear() if (document.getElementById("fotokopija").checked){ var fotokopija = document.getElementById("fotokopija").value @@ -64,119 +64,120 @@ function cobiss() { ] }; - // pdfMake.createPdf(docDefinition).open(); - - // print the PDF (temporarily Chrome-only) - //pdfMake.createPdf(docDefinition).print(); - // download the PDF (temporarily Chrome-only) + // pdfMake.createPdf(docDefinition).open(); + // pdfMake.createPdf(docDefinition).print(); pdfMake.createPdf(docDefinition).download('cobiss-obrazec.pdf'); } -