1$(function () { 2 $("#btnPrint").click(function () { 3 var contents = $("#dvContents").html(); 4 //var contents1 = $("#dvContents1").html(); 5 var contents2 = $("#dvContents2").html(); 6 var frame1 = $('<iframe />'); 7 frame1[0].name = "frame1"; 8 frame1.css({ "position": "absolute", "top": "-1000000px" }); 9 $("body").append(frame1); 10 var frameDoc = frame1[0].contentWindow ? frame1[0].contentWindow : frame1[0].contentDocument.document ? frame1[0].contentDocument.document : frame1[0].contentDocument; 11 frameDoc.document.open(); 12 //Create a new HTML document. 13 frameDoc.document.write('<html><head><title>DIV Contents</title><link rel="stylesheet" href="./css/style.css" /><link rel="stylesheet" href="./css/bootstrap.min.css" />'); 14 frameDoc.document.write('</head><body>'); 15 frameDoc.document.write('<img src="./img/print_header_mbpt.JPG"/>'); 16 //Append the external CSS file.
17 frameDoc.document.write('<link href="style.css" rel="stylesheet" type="text/css" />'); 18 //Append the DIV contents. 19 //frameDoc.document.write(contents); 20 frameDoc.document.write(contents2); 21 frameDoc.document.write('</body></html>'); 22 frameDoc.document.close(); 23 setTimeout(function () { 24 window.frames["frame1"].focus(); 25 window.frames["frame1"].print(); 26 frame1.remove(); 27 }, 500); 28 }); 29 });
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.