1
0
Fork 0

Feat/gdpr ready (#338)

<!--
  Thanks for submitting a pull request!
  Please provide enough information so that others can review your pull request.
-->

**Summary**

<!--
  Explain the **motivation** for making this change.
  What existing problem does the pull request solve?
  Are there any linked issues?
-->

**Result**

<!--
  Demonstrate the code is solid.
  Example: The exact commands you ran and their output,
  screenshots / videos if the pull request changes UI.
-->
Avoid having misleading content.
GPDR compliancy (checked with Liz)
This commit is contained in:
Sylvain Pace 2018-05-24 15:02:24 +02:00 committed by Tim Carry
parent 05dc793690
commit 2c6fb452e3
2 changed files with 5 additions and 23 deletions

View file

@ -30,13 +30,6 @@ window.addEventListener('load', function() {
document.body.classList.add('ready');
(function($) {
function pardotAppendIframe(url) {
var iframe = document.createElement('iframe');
iframe.src = url;
iframe.width = 1;
iframe.height = 1;
document.body.appendChild(iframe);
}
$('.join-form').on('submit', function(e) {
e.preventDefault();
@ -71,14 +64,6 @@ window.addEventListener('load', function() {
url: $url.val()
}
}).done(function() {
pardotAppendIframe(
'https://go.pardot.com/l/139121/2016-08-05/ldp67?email=' +
encodeURIComponent($email.val()) +
'&website=' +
encodeURIComponent($url.val()) +
'&marketing_optin=' +
encodeURIComponent($gdprEmail.val())
);
$('.join-form-fill').hide();
$('.join-form-validated').removeClass('hidden');

View file

@ -22,14 +22,11 @@
%span I'm the <u>owner</u> of that website
.row
.form-group.pos-rel.p-small
%div
%input.fill-titan.pos-rel.p-r-small#marketing_optin{name: "marketing_optin", type: "checkbox", value: 'true'}
%label.text-sm{for: "accept_email", style: "display:inline;margin-left: 8px;letter-spacing: unset;font-weight: 500;text-transform: initial"} Yes, I'd like to receive more information on Algolia products, events and promotions via email
%div
%p
Refer to
%a{href: "https://www.algolia.com/policies/terms", class:"clickable"} Algolia's Privacy Policy
for more information on how we use and protect your data
%div
%p
Refer to
%a{href: "https://www.algolia.com/policies/terms", class:"clickable"} Algolia's Privacy Policy
for more information on how we use and protect your data
.text-center
%button.btn.btn-static-primary.w100p{type: 'submit'}
Join the program