From 408292c5148a7c66f01fc422bbab376e1a20bfb9 Mon Sep 17 00:00:00 2001 From: OudomMunint Date: Mon, 28 Aug 2023 00:20:41 +1000 Subject: [PATCH 01/14] Disable form pre check --- Home.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Home.html b/Home.html index faf02f70..0bf01191 100755 --- a/Home.html +++ b/Home.html @@ -871,7 +871,16 @@

Fullstack Software Engineer

- + + +


+61 478 753 033
From a46b85dd1ed05e9cf1ee20dfb92e9efc4e35d3a9 Mon Sep 17 00:00:00 2001 From: OudomMunint Date: Mon, 28 Aug 2023 00:25:07 +1000 Subject: [PATCH 02/14] WIP: reCAPTCHA work --- Home.html | 12 +----------- js/all.min.js | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/Home.html b/Home.html index 0bf01191..359d2954 100755 --- a/Home.html +++ b/Home.html @@ -865,22 +865,12 @@

Fullstack Software Engineer

- +
- - -


+61 478 753 033
diff --git a/js/all.min.js b/js/all.min.js index ffd99e5f..862205bd 100644 --- a/js/all.min.js +++ b/js/all.min.js @@ -366,6 +366,25 @@ function render() { window.requestAnimationFrame(render); } +function enableSubmitButton() { + document.getElementById("submitButton").disabled = false; +} + +function disableSubmitButton() { + document.getElementById("submitButton").disabled = true; +} + +disableSubmitButton(); + +// reCAPTCHA listener +document.querySelector('[data-netlify-recaptcha="true"]').addEventListener("change", function () { + if (grecaptcha.getResponse() !== "") { + enableSubmitButton(); + } else { + disableSubmitButton(); + } +}); + //Smooth scroll // render(), // (function (e) { From b54b18833e8298c15d9ce5240c466a12012c7baa Mon Sep 17 00:00:00 2001 From: OudomMunint Date: Mon, 28 Aug 2023 00:31:16 +1000 Subject: [PATCH 03/14] disable submit --- css/all.min.css | 4 ++++ js/all.min.js | 2 ++ 2 files changed, 6 insertions(+) diff --git a/css/all.min.css b/css/all.min.css index ca889e2b..d3ad7775 100644 --- a/css/all.min.css +++ b/css/all.min.css @@ -4956,3 +4956,7 @@ a.pds { border-radius: 20px; /* box-shadow: 5px 5px 5px black; */ } + +.submitDisabled { + background-color: #c9d1d9; +} \ No newline at end of file diff --git a/js/all.min.js b/js/all.min.js index 862205bd..43c4b360 100644 --- a/js/all.min.js +++ b/js/all.min.js @@ -368,10 +368,12 @@ function render() { function enableSubmitButton() { document.getElementById("submitButton").disabled = false; + document.getElementsByID("submitButton").addClass("submitDisabled"); } function disableSubmitButton() { document.getElementById("submitButton").disabled = true; + document.getElementsByID("submitButton").removeClass("submitDisabled"); } disableSubmitButton(); From 32a4a3ba4695980a2605f233b9f0b6fcddfa26e7 Mon Sep 17 00:00:00 2001 From: OudomMunint Date: Mon, 28 Aug 2023 00:33:05 +1000 Subject: [PATCH 04/14] WIP Cont'd --- Home.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Home.html b/Home.html index 359d2954..7336ba1c 100755 --- a/Home.html +++ b/Home.html @@ -865,7 +865,7 @@

Fullstack Software Engineer

- +
From 4be2e5253ac1c5ba5c27a8420b24be0a08e969a5 Mon Sep 17 00:00:00 2001 From: OudomMunint Date: Mon, 28 Aug 2023 00:34:58 +1000 Subject: [PATCH 05/14] WIP: disabling submit btn --- js/all.min.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/all.min.js b/js/all.min.js index 43c4b360..3bf17952 100644 --- a/js/all.min.js +++ b/js/all.min.js @@ -368,12 +368,12 @@ function render() { function enableSubmitButton() { document.getElementById("submitButton").disabled = false; - document.getElementsByID("submitButton").addClass("submitDisabled"); + document.getElementsByID("submitButton").removeClass("submitDisabled"); } function disableSubmitButton() { document.getElementById("submitButton").disabled = true; - document.getElementsByID("submitButton").removeClass("submitDisabled"); + document.getElementsByID("submitButton").addClass("submitDisabled"); } disableSubmitButton(); From 4f41862e68482a1da4a3041f1fe76d534ec3b45b Mon Sep 17 00:00:00 2001 From: OudomMunint Date: Mon, 28 Aug 2023 00:39:57 +1000 Subject: [PATCH 06/14] removed stray disableSubmitButton(); --- js/all.min.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/all.min.js b/js/all.min.js index 3bf17952..5146d250 100644 --- a/js/all.min.js +++ b/js/all.min.js @@ -376,12 +376,10 @@ function disableSubmitButton() { document.getElementsByID("submitButton").addClass("submitDisabled"); } -disableSubmitButton(); - // reCAPTCHA listener document.querySelector('[data-netlify-recaptcha="true"]').addEventListener("change", function () { if (grecaptcha.getResponse() !== "") { - enableSubmitButton(); + enableSubmitButton(); } else { disableSubmitButton(); } From c6b7e68a14bc140ace2a67d0871d0faded9639d0 Mon Sep 17 00:00:00 2001 From: OudomMunint Date: Mon, 28 Aug 2023 00:44:05 +1000 Subject: [PATCH 07/14] Fixed button stil disabled after check --- js/all.min.js | 39 +++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/js/all.min.js b/js/all.min.js index 5146d250..a4d4a95e 100644 --- a/js/all.min.js +++ b/js/all.min.js @@ -366,24 +366,31 @@ function render() { window.requestAnimationFrame(render); } -function enableSubmitButton() { - document.getElementById("submitButton").disabled = false; - document.getElementsByID("submitButton").removeClass("submitDisabled"); -} - -function disableSubmitButton() { - document.getElementById("submitButton").disabled = true; - document.getElementsByID("submitButton").addClass("submitDisabled"); -} + // Function to enable the submit button + function enableSubmitButton() { + var submitButton = document.getElementById("submitButton"); + submitButton.disabled = false; + submitButton.classList.remove("submitDisabled"); + } -// reCAPTCHA listener -document.querySelector('[data-netlify-recaptcha="true"]').addEventListener("change", function () { - if (grecaptcha.getResponse() !== "") { - enableSubmitButton(); - } else { - disableSubmitButton(); + // Function to disable the submit button + function disableSubmitButton() { + var submitButton = document.getElementById("submitButton"); + submitButton.disabled = true; + submitButton.classList.add("submitDisabled"); } -}); + + // Disable the submit button by default + disableSubmitButton(); + + // Add an event listener to the reCAPTCHA checkbox + document.querySelector('[data-netlify-recaptcha="true"]').addEventListener("change", function () { + if (grecaptcha.getResponse() !== "") { + enableSubmitButton(); // Enable the submit button when reCAPTCHA is checked + } else { + disableSubmitButton(); // Disable the submit button when reCAPTCHA is unchecked + } + }); //Smooth scroll // render(), From 62797f9ea1be75db38a75dcfed36cc2c6d5ad33c Mon Sep 17 00:00:00 2001 From: OudomMunint Date: Mon, 28 Aug 2023 00:46:28 +1000 Subject: [PATCH 08/14] WIP: reCAPTCHA --- js/all.min.js | 45 ++++++++++++++++++++++----------------------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/js/all.min.js b/js/all.min.js index a4d4a95e..669d81cc 100644 --- a/js/all.min.js +++ b/js/all.min.js @@ -365,32 +365,31 @@ function render() { }), window.requestAnimationFrame(render); } +// Function to enable the submit button +function enableSubmitButton() { + var submitButton = document.getElementById("submitButton"); + submitButton.disabled = false; + submitButton.classList.remove("submitDisabled"); +} - // Function to enable the submit button - function enableSubmitButton() { - var submitButton = document.getElementById("submitButton"); - submitButton.disabled = false; - submitButton.classList.remove("submitDisabled"); - } - - // Function to disable the submit button - function disableSubmitButton() { - var submitButton = document.getElementById("submitButton"); - submitButton.disabled = true; - submitButton.classList.add("submitDisabled"); - } +// Function to disable the submit button +function disableSubmitButton() { + var submitButton = document.getElementById("submitButton"); + submitButton.disabled = true; + submitButton.classList.add("submitDisabled"); +} - // Disable the submit button by default - disableSubmitButton(); +// Disable the submit button by default +disableSubmitButton(); - // Add an event listener to the reCAPTCHA checkbox - document.querySelector('[data-netlify-recaptcha="true"]').addEventListener("change", function () { - if (grecaptcha.getResponse() !== "") { - enableSubmitButton(); // Enable the submit button when reCAPTCHA is checked - } else { - disableSubmitButton(); // Disable the submit button when reCAPTCHA is unchecked - } - }); +// Add an event listener to the reCAPTCHA checkbox +document.querySelector('[data-netlify-recaptcha="true"]').addEventListener("change", function () { + if (grecaptcha.getResponse() !== "") { + enableSubmitButton(); // Enable the submit button when reCAPTCHA is checked + } else { + disableSubmitButton(); // Disable the submit button when reCAPTCHA is unchecked + } +}); //Smooth scroll // render(), From db43651317789af54e527450292333506c6ee454 Mon Sep 17 00:00:00 2001 From: OudomMunint Date: Mon, 28 Aug 2023 00:48:56 +1000 Subject: [PATCH 09/14] WIP: reCHAPTCHA --- Home.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Home.html b/Home.html index 7336ba1c..359d2954 100755 --- a/Home.html +++ b/Home.html @@ -865,7 +865,7 @@

Fullstack Software Engineer

- +
From 849914f875dcad8f4b43a855e04476b6743caa80 Mon Sep 17 00:00:00 2001 From: OudomMunint Date: Mon, 28 Aug 2023 00:52:53 +1000 Subject: [PATCH 10/14] Revert all commits to b54b188 --- js/all.min.js | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/js/all.min.js b/js/all.min.js index 669d81cc..862205bd 100644 --- a/js/all.min.js +++ b/js/all.min.js @@ -365,29 +365,23 @@ function render() { }), window.requestAnimationFrame(render); } -// Function to enable the submit button + function enableSubmitButton() { - var submitButton = document.getElementById("submitButton"); - submitButton.disabled = false; - submitButton.classList.remove("submitDisabled"); + document.getElementById("submitButton").disabled = false; } -// Function to disable the submit button function disableSubmitButton() { - var submitButton = document.getElementById("submitButton"); - submitButton.disabled = true; - submitButton.classList.add("submitDisabled"); + document.getElementById("submitButton").disabled = true; } -// Disable the submit button by default disableSubmitButton(); -// Add an event listener to the reCAPTCHA checkbox +// reCAPTCHA listener document.querySelector('[data-netlify-recaptcha="true"]').addEventListener("change", function () { if (grecaptcha.getResponse() !== "") { - enableSubmitButton(); // Enable the submit button when reCAPTCHA is checked + enableSubmitButton(); } else { - disableSubmitButton(); // Disable the submit button when reCAPTCHA is unchecked + disableSubmitButton(); } }); From 544a7ce2c556b05046e1ec3b6954b01c61e381c6 Mon Sep 17 00:00:00 2001 From: OudomMunint Date: Mon, 28 Aug 2023 00:55:46 +1000 Subject: [PATCH 11/14] reCHAPTCHA work --- js/all.min.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/js/all.min.js b/js/all.min.js index 862205bd..251ee444 100644 --- a/js/all.min.js +++ b/js/all.min.js @@ -377,13 +377,14 @@ function disableSubmitButton() { disableSubmitButton(); // reCAPTCHA listener -document.querySelector('[data-netlify-recaptcha="true"]').addEventListener("change", function () { - if (grecaptcha.getResponse() !== "") { - enableSubmitButton(); +function recaptchaCallback() { + var response = grecaptcha.getResponse(); + if (response.length > 0) { + enableSubmitButton(); // Enable the submit button when reCAPTCHA is checked } else { - disableSubmitButton(); + disableSubmitButton(); // Disable the submit button when reCAPTCHA is unchecked } -}); +} //Smooth scroll // render(), From bc84323063117c740a8cd97e516db606a99e5d67 Mon Sep 17 00:00:00 2001 From: OudomMunint Date: Mon, 28 Aug 2023 00:59:58 +1000 Subject: [PATCH 12/14] Disabling on front end --- js/all.min.js | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/js/all.min.js b/js/all.min.js index 251ee444..ffd99e5f 100644 --- a/js/all.min.js +++ b/js/all.min.js @@ -366,26 +366,6 @@ function render() { window.requestAnimationFrame(render); } -function enableSubmitButton() { - document.getElementById("submitButton").disabled = false; -} - -function disableSubmitButton() { - document.getElementById("submitButton").disabled = true; -} - -disableSubmitButton(); - -// reCAPTCHA listener -function recaptchaCallback() { - var response = grecaptcha.getResponse(); - if (response.length > 0) { - enableSubmitButton(); // Enable the submit button when reCAPTCHA is checked - } else { - disableSubmitButton(); // Disable the submit button when reCAPTCHA is unchecked - } -} - //Smooth scroll // render(), // (function (e) { From 0d296c23212adf2e3c2e2ce5dcaf53e155871e63 Mon Sep 17 00:00:00 2001 From: OudomMunint Date: Mon, 28 Aug 2023 01:06:34 +1000 Subject: [PATCH 13/14] WIP: reCAPTCHA --- Home.html | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Home.html b/Home.html index 359d2954..12046a17 100755 --- a/Home.html +++ b/Home.html @@ -870,6 +870,27 @@

Fullstack Software Engineer

+ + +


From 3b56eadb8620645705f0f29f5991caea81426f4e Mon Sep 17 00:00:00 2001 From: OudomMunint Date: Mon, 28 Aug 2023 01:09:52 +1000 Subject: [PATCH 14/14] wip --- Home.html | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/Home.html b/Home.html index 12046a17..fdcefbc9 100755 --- a/Home.html +++ b/Home.html @@ -870,26 +870,6 @@

Fullstack Software Engineer

- -
@@ -902,7 +882,7 @@




  • -

    +