From 5a8504b5af988baac4e267e547b83ed49cd88763 Mon Sep 17 00:00:00 2001 From: boyska Date: Fri, 20 May 2022 19:25:42 +0200 Subject: [PATCH] success screen --- static/change.html | 4 ++++ static/js/change.js | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/static/change.html b/static/change.html index 7963372..854e688 100644 --- a/static/change.html +++ b/static/change.html @@ -24,6 +24,10 @@
+
diff --git a/static/js/change.js b/static/js/change.js index b4715c8..39db149 100644 --- a/static/js/change.js +++ b/static/js/change.js @@ -28,11 +28,11 @@ async function onAccept(evt) { }) data = await resp.json() if(data.success === true) { - // window.location.href = '../logout' - true + document.getElementById("accept-btn").classList.add('hidden') + document.getElementById('success').classList.remove('hidden') + document.getElementById("generate-btn").classList.add('hidden') } else { document.getElementById("generate-btn").removeAttribute('disabled') - document.getElementById("accept-btn").setAttribute('disabled', 'disabled') } }