D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
trade
/
Filename :
etiqJs.php
back
Copy
<!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <!-- Bootstrap core CSS --> <link href="http://leandrolisura.com.br/wp-content/uploads/2017/11/bootstrap.min_.css" rel="stylesheet"> <!-- Custom styles for this template --> <link href="http://leandrolisura.com.br/wp-content/uploads/2017/12/starter-template.css" rel="stylesheet"> </head> <style> body { padding-top: 0px; } .starter-template { padding: 40px 15px; text-align: center; } media print{ #noprint{ display:none; } } @page{ size: auto; margin: 0mm; } </style </style> <body> <div align="left" ><b> <br /> Carlos Roberto Marques<br> 708.715.408-78 Nasc:14/02<br> </b></div> <br /><div id="barcodeDiv"></div> <!-- /.container --> <!-- Bootstrap core JavaScript --> <!-- Placed at the end of the document so the pages load faster --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="http://leandrolisura.com.br/wp-content/uploads/2017/12/bytescoutbarcode128_1.00.07.js"></script> <script type="text/javascript"> $(document).ready(function () { var numberBegin = 1; var numberEnd = 1; html = ""; for (i = numberBegin; i <= numberEnd; i++) { html += '<div class="row" >'; for (j = 0; j < 1; j++) { html += ' <div class="col-md-3">' + ' <img id="barcodeImage_' + i + '" class="codeBarImage" />' + ' </div>'; i++; } i--; html += '</div>'; } $("#barcodeDiv").append(html); for (i = numberBegin; i <= numberEnd; i++) { number = pad_with_zeroes(70871540878, 3); updateBarcode(number, '#barcodeImage_' + i); } }); function updateBarcode(barCodeValue, tagId) { barCodeValue = typeof barCodeValue !== 'undefined' ? barCodeValue : ''; var barcode = new bytescoutbarcode128(); barcode.valueSet(barCodeValue); barcode.setMargins(0, 0, 0, 0); barcode.setBarWidth(2); var width = barcode.getMinWidth(); barcode.setSize(width, 50); var barcodeImage = $(tagId); barcodeImage.attr('src', barcode.exportToBase64(width, 50, 0)); } function pad_with_zeroes(number, length) { var my_string = '' + number; while (my_string.length < length) { my_string = '0' + my_string; } window.print(); return my_string; } </script> </body> </html>