1
0

CV Download and print options updates

This commit is contained in:
Michael Gordeev
2019-10-15 21:54:37 +03:00
parent 8ff09db5de
commit 4187decc0e
6 changed files with 35 additions and 17 deletions
+17
View File
@@ -68,4 +68,21 @@ function UpdateProjects()
desc.innerText = "";
desc.innerHTML = text;
}
}
function PrintCV() {
var printFrame = window.open("", "", "height=500, width=800");
printFrame.document.write("<html>");
printFrame.document.write(document.head.outerHTML);
printFrame.document.write("<body>");
printFrame.document.write(document.getElementById("cv").outerHTML);
printFrame.document.write("</body>");
printFrame.document.write("</html>");
printFrame.document.close();
setTimeout(function () {
printFrame.print();
printFrame.close();
}, 500);
}