Skip to content

Commit 1943552

Browse files
Update sdb6chat1.html
1 parent 3f6e3ea commit 1943552

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

1ShreeRam/sdb6chat1.html

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -13,36 +13,6 @@ <h1> In APP Web Client for TestCaptcha miaw2 sdb6 Deployment</h1>
1313
<script>
1414
document.getElementById('editThisPageLink').href =
1515
"https://github.com/shreerammohanty/miawtest/edit/master/1ShreeRam/LocalSdb6Connect.html";
16-
17-
let recaptchaWidgetId = null;
18-
19-
function onRecaptchaLoad() {
20-
recaptchaWidgetId = grecaptcha.render('recaptcha-container', {
21-
sitekey: '6Lfy2HMrAAAAAIVf2zhrlxQ-6ht07tNdfNUrD3p9',
22-
size: 'invisible',
23-
callback: onVerify,
24-
'error-callback': onError,
25-
'expired-callback': onExpired
26-
});
27-
28-
// Execute immediately, no button required
29-
grecaptcha.execute(recaptchaWidgetId);
30-
}
31-
32-
function onVerify(token) {
33-
console.log('reCAPTCHA token:', token);
34-
// TODO: POST the token to your backend for verification
35-
// fetch('/verify', { method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify({ token }) });
36-
}
37-
38-
function onError() {
39-
console.error('reCAPTCHA error');
40-
}
41-
42-
function onExpired() {
43-
console.warn('reCAPTCHA expired, re-executing…');
44-
grecaptcha.execute(recaptchaWidgetId);
45-
}
4616
</script>
4717
<script type='text/javascript'>
4818
function initEmbeddedMessaging() {

0 commit comments

Comments
 (0)