Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- </head>
- <body>
- <img id="barcodeimg" />
- </body>
- <script src="jquery-3.4.1.min.js"></script>
- <script>
- updateBarcode();
- setInterval(function () {
- updateBarcode();
- }, 500);
- function updateBarcode() {
- var min = 0;
- var max = 9999999;
- var text = ('000000' + Math.floor(Math.random() * (max - min + 1)) + min).slice(-7);
- $("#barcodeimg").attr("src",'http://localhost:3030/?bcid=ean8&text=' + text + '&includetext&guardwhitespace&scale=2&monochrome&backgroundcolor=FFFFFF');
- };
- </script>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement