From 5a922e140e7ce29f3b2d7d522ddd6af00b7f0b2b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20Leszczy=C5=84ski?=
Date: Mon, 28 Oct 2024 22:47:33 +0100
Subject: [PATCH] Demos: Allow to specify different source/target key slot
number in the halo-backup demo
---
core/src.ts/web/examples/key_backup.html | 27 +++++++++++++++---------
1 file changed, 17 insertions(+), 10 deletions(-)
diff --git a/core/src.ts/web/examples/key_backup.html b/core/src.ts/web/examples/key_backup.html
index f2491e2..faa171f 100644
--- a/core/src.ts/web/examples/key_backup.html
+++ b/core/src.ts/web/examples/key_backup.html
@@ -24,9 +24,15 @@
LibHaLo Demo
(Mobile only)
- Key slot number:
+ Source key slot number:
-
Supported key slots: 8, 9. The key on the source card must already exist.
+
Key will be exported from the indicated slot on the source tag. Supported key slots: 8, 9. The key on the source tag must already exist.
+
+
+
+ Target key slot number:
+
+
Key will be imported into the indicated slot on the target tag. Supported key slots: 8, 9. The slot on the target tag must be empty.
@@ -42,42 +48,42 @@
LibHaLo Demo
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
@@ -88,6 +94,7 @@
Step 6
function btnExecuteNFC(method) {
let keyNo = document.getElementById('keySlot').value;
+ let targetKeyNo = document.getElementById('targetKeySlot').value;
let password = document.getElementById('password').value;
let command;
@@ -116,13 +123,13 @@