diff --git a/public/style/4nk.css b/public/style/4nk.css index abf34bd..852af49 100644 --- a/public/style/4nk.css +++ b/public/style/4nk.css @@ -20,6 +20,10 @@ body { background-blend-mode :soft-light; height: 100vh; } + .message { + font-size: 14px; + overflow-wrap: anywhere; + } /** Modal Css */ .modal { @@ -35,7 +39,7 @@ body { } .modal-content { - width: 40%; + width: 55%; height: 30%; background-color: white; border-radius: 4px; @@ -55,14 +59,14 @@ body { } .confirmation-box { - margin-top: 20px; + /* margin-top: 20px; */ align-content: center; width: 70%; height: 20%; - padding: 20px; - font-size: 1.6em; + /* padding: 20px; */ + font-size: 1.5em; color: #333333; - top: 20%; + top: 5%; position: relative; } diff --git a/src/html/confirmation-modal.html b/src/html/confirmation-modal.html new file mode 100644 index 0000000..2c3557c --- /dev/null +++ b/src/html/confirmation-modal.html @@ -0,0 +1,15 @@ + \ No newline at end of file diff --git a/src/html/confirmation-modal.js b/src/html/confirmation-modal.js new file mode 100644 index 0000000..2349489 --- /dev/null +++ b/src/html/confirmation-modal.js @@ -0,0 +1,13 @@ +import Routing from "/src/services/routing.service.ts"; + +const router = await Routing.getInstance(); +export async function confirm() { + router.confirm() +} + +export async function closeConfirmationModal() { + router.closeConirmationModal() +} + +window.confirm = confirm; +window.closeConfirmationModal = closeConfirmationModal; \ No newline at end of file diff --git a/src/html/home.js b/src/html/home.js index 85464cf..0ad4963 100644 --- a/src/html/home.js +++ b/src/html/home.js @@ -25,9 +25,9 @@ document.querySelectorAll('.tab').forEach(tab => { //// Modal - export async function openModal(prd) { + export async function openModal(myAddress, receiverAddress) { const router = await Routing.getInstance(); - router.openLoginModal(prd) + router.openLoginModal(myAddress, receiverAddress) } @@ -73,12 +73,12 @@ docReady(function () { }); function scanDevice() { - service.sendPairingTx('decodedText') + // service.sendPairingTx('decodedText') - // const scannerImg = document.querySelector('#scanner') - // if(scannerImg) scannerImg.style.display = 'none' - // const scannerQrCode = document.querySelector('.qr-code-scanner') - // if(scannerQrCode) scannerQrCode.style.display = 'block' + const scannerImg = document.querySelector('#scanner') + if(scannerImg) scannerImg.style.display = 'none' + const scannerQrCode = document.querySelector('.qr-code-scanner') + if(scannerQrCode) scannerQrCode.style.display = 'block' } window.scanDevice = scanDevice \ No newline at end of file diff --git a/src/html/login-modal.html b/src/html/login-modal.html index 48677b1..a83dca2 100644 --- a/src/html/login-modal.html +++ b/src/html/login-modal.html @@ -1,9 +1,16 @@ -