Initial commit: legacy WOPS PHP application
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
function showPopup() {
|
||||
var myDiv = document.getElementById('print');
|
||||
var newWindow = window.open('', 'SecondWindow', 'toolbar=0,stat=0');
|
||||
var style = newWindow.document.createElement('link');
|
||||
style.type = "text/css";
|
||||
style.rel = "stylesheet";
|
||||
style.href = "./css/print.css";
|
||||
style.media = "all";
|
||||
newWindow.document.write("<html><body " +
|
||||
"class='responsive light2012-home-switcher home switcher' " +
|
||||
"onload='window.print()'>" +
|
||||
myDiv.innerHTML +
|
||||
"</body></html>");
|
||||
newWindow.document.getElementsByTagName("head")[0].appendChild(style);
|
||||
newWindow.document.close();
|
||||
}
|
||||
Reference in New Issue
Block a user