1
0

Updated Print and Save buttons on CV page

This commit is contained in:
Michael Gordeev
2019-10-17 16:14:06 +03:00
parent 4187decc0e
commit 3436237d31
7 changed files with 195 additions and 172 deletions
-17
View File
@@ -68,21 +68,4 @@ 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);
}