-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
37 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export const data = { | ||
creditor: { | ||
account: "CH58 0079 1123 0008 8901 2", | ||
address: "Creditor Address", | ||
city: "Creditor City", | ||
country: "CH", | ||
name: "Creditor FirstName LastName", | ||
zip: 1234 | ||
}, | ||
currency: "CHF" | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { data } from "./data.js"; | ||
|
||
|
||
const qrBill = new SwissQRBill.SVG(data); | ||
Check failure on line 4 in examples/browser-pre-built-bundle/src/svg.js GitHub Actions / lint
|
||
document.body.appendChild(qrBill); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<script | ||
type="text/javascript" | ||
src="https://cdn.jsdelivr.net/npm/swissqrbill@alpha/lib/bundle/swissqrbill.js" | ||
></script> | ||
<script type="module" src="./src/svg.js"></script> | ||
</head> | ||
<body> | ||
<iframe id="iframe"></iframe> | ||
</body> | ||
</html> |