Skip to content
Snippets Groups Projects
Verified Commit db338b5e authored by hanfi's avatar hanfi
Browse files

improved logo

parent e3941f32
No related branches found
No related tags found
No related merge requests found
......@@ -38,8 +38,8 @@ export async function newItem() {
var logo = new Image();
logo.src = "Fisty-sprayed-Stencil_Neonpink_logo.png";
function generateQR(canvas, text) {
qrcode.toCanvas(canvas, text, { errorCorrectionLevel: "H" });
function generateQR(canvas, text, ecl = "H") {
qrcode.toCanvas(canvas, text, { errorCorrectionLevel: ecl });
var context = canvas.getContext("2d");
if (!(logo.complete)) {
console.log("Logo not loaded. Bailing");
......@@ -63,9 +63,9 @@ export async function showData(private_key, item_uuid) {
status.textContent = "waiting for delivery";
status.classList.add("badge-warning");
}
generateQR(document.querySelector("#edit canvas"), editUrl(private_key, tracking_item.uuid));
generateQR(document.querySelector("#receive canvas"), tracking_item.uuid + "/" + atoh(ed448.sign(new TextEncoder().encode(tracking_item.uuid), htoa(private_key))));
generateQR(document.querySelector("#sticker canvas"),tracking_item.uuid);
generateQR(document.querySelector("#edit canvas"), editUrl(private_key, tracking_item.uuid), "Q");
generateQR(document.querySelector("#receive canvas"), tracking_item.uuid + "/" + atoh(ed448.sign(new TextEncoder().encode(tracking_item.uuid), htoa(private_key))), "M");
generateQR(document.querySelector("#sticker canvas"),tracking_item.uuid, "H");
document.querySelector("#sticker .tag").innerHTML = tracking_item.tag;
}
src/static/Fisty-sprayed-Stencil_Neonpink_logo.png

8.54 KiB | W: | H:

src/static/Fisty-sprayed-Stencil_Neonpink_logo.png

9.31 KiB | W: | H:

src/static/Fisty-sprayed-Stencil_Neonpink_logo.png
src/static/Fisty-sprayed-Stencil_Neonpink_logo.png
src/static/Fisty-sprayed-Stencil_Neonpink_logo.png
src/static/Fisty-sprayed-Stencil_Neonpink_logo.png
  • 2-up
  • Swipe
  • Onion skin
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment