File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 < label > < input id ="privacy_agreement " type ="checkbox " required > I have read and agree to the < a href ="/privacy " target ="_blank "> Privacy Policy</ a > *</ label >
2626 < br />
2727
28- <!-- reCAPTCHA: keep only the site key on the client -->
29- < div class ="g-recaptcha " data-sitekey ="{{ site.commenting.recaptcha.sitekey }} "> </ div >
30-
3128 < div class ="warning-box " id ="warning-box "> </ div >
3229 < button type ="submit " class ="submit-button "> Submit</ button >
3330 </ div >
7673 warningBox . textContent = 'Please agree to the Privacy Policy.' ;
7774 warningBox . style . display = 'block' ;
7875 return ;
79- }
80-
81- const captchaResponse = grecaptcha . getResponse ( ) ;
82-
83- if ( ! captchaResponse ) {
84- warningBox . textContent = 'Please complete the reCAPTCHA.' ;
85- warningBox . style . display = 'block' ;
86- return ;
8776 } else {
8877 warningBox . style . display = 'none' ;
8978 }
9887 message : $ ( '#message' ) . val ( ) . trim ( ) ,
9988 url : $ ( '#url' ) . val ( ) . trim ( ) || '' ,
10089 avatarUrl : avatarUrl ,
101- gRecaptchaResponse : captchaResponse ,
10290 } ;
10391
10492 // Basic front-end validation
136124 window . location . href = '/pages/sorry' ;
137125 } ,
138126 complete : function ( ) {
139- // Reset captcha so user can retry if needed
140- grecaptcha . reset ( ) ;
141127 $submitButton . prop ( 'disabled' , false ) . text ( 'Submit' ) ;
142128 }
143129 } ) ;
Original file line number Diff line number Diff line change 5555 < link rel ="stylesheet " href ="/css/site.css " type ="text/css ">
5656 < script src ="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js "> </ script >
5757 < script src ="/js/slash.js " async > </ script >
58- < script src ="https://www.google.com/recaptcha/api.js " async defer > </ script >
5958 <!-- Google Analytics loaded via cookie consent banner -->
6059 {% if site.google_analytics_tracking_id %}
6160 {% include cookie_consent.html %}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ This site uses Google Analytics to understand how visitors interact with the con
2626You can opt out of Google Analytics by:
2727- Declining cookies when you first visit (via the cookie banner)
2828
29- #### Comments
29+ #### Commenting
3030
3131If you post a comment on this blog:
3232- Only your ** display name** and ** message** are required
@@ -39,7 +39,6 @@ If you post a comment on this blog:
3939
4040This site uses cookies for:
4141- ** Google Analytics:** Tracking site usage (requires your consent)
42- - ** reCAPTCHA:** Spam protection on comment forms (Google service)
4342- ** Local Storage:** Remembering your name and URL if you use "Remember Me" on comments
4443
4544### What I Don't Do
@@ -56,7 +55,6 @@ This site uses cookies for:
5655This site uses these third-party services that have their own privacy policies:
5756
5857- ** Google Analytics** - [ Privacy Policy] ( https://policies.google.com/privacy )
59- - ** Google reCAPTCHA** - [ Privacy Policy] ( https://policies.google.com/privacy )
6058- ** Robohash** (avatar generation) - [ https://robohash.org ] ( https://robohash.org )
6159- ** GitHub Pages** (hosting) - [ Privacy Statement] ( https://docs.github.com/en/site-policy/privacy-policies/github-privacy-statement )
6260
You can’t perform that action at this time.
0 commit comments