Barcode Generation
This commit is contained in:
1 parent
aa6c93f3f6
commit
79ec11e25c
224 files changed
+22473
-94
No files matched your search
+21
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title></title>
|
||||
<script src="../dist/JsBarcode.all.js"></script>
|
||||
<script>
|
||||
function textToBase64Barcode(text){
|
||||
var canvas = document.createElement("canvas");
|
||||
JsBarcode(canvas, text, {format: "CODE39"});
|
||||
return canvas.toDataURL("image/png");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<a id="hello">Click Here</a>
|
||||
<script>
|
||||
document.querySelector("#hello").href = textToBase64Barcode("HELLO");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user