From d1ec41cc47b63e70ca4aa85f436b02321f6bde9b Mon Sep 17 00:00:00 2001 From: vinchent Date: Sun, 4 Aug 2024 16:24:01 +0200 Subject: [PATCH] add more ignore files --- .gitignore | 2 ++ cmd/web/templates/terminal.page.gohtml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index 8d078fc..59d349d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ **/c.html database.yml docker/docker-compose.yml +cred.txt +dist/ diff --git a/cmd/web/templates/terminal.page.gohtml b/cmd/web/templates/terminal.page.gohtml index 7570a4a..3d025bc 100644 --- a/cmd/web/templates/terminal.page.gohtml +++ b/cmd/web/templates/terminal.page.gohtml @@ -71,6 +71,11 @@ const processing = document.getElementById("processing-payment"); stripe = Stripe(''); // TODO: Publish key to be added +function hidePayButton() { + payButton.classList.add("d-none"); + processing.classList.remove("d-none"); +} + function val() { let form = document.getElementById("charge_form"); @@ -81,6 +86,7 @@ function val() { return; } form.classList.add("was-validated"); + hidePayButton(); } (function () {