From 2c6fb452e3a1586419baba1f3949ef86a18b1308 Mon Sep 17 00:00:00 2001 From: Sylvain Pace Date: Thu, 24 May 2018 15:02:24 +0200 Subject: [PATCH] Feat/gdpr ready (#338) **Summary** **Result** Avoid having misleading content. GPDR compliancy (checked with Liz) --- docs/source/assets/javascripts/main.js | 15 --------------- docs/source/partials/join-form.haml | 13 +++++-------- 2 files changed, 5 insertions(+), 23 deletions(-) diff --git a/docs/source/assets/javascripts/main.js b/docs/source/assets/javascripts/main.js index 367ac4f7..c19a1a29 100644 --- a/docs/source/assets/javascripts/main.js +++ b/docs/source/assets/javascripts/main.js @@ -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'); diff --git a/docs/source/partials/join-form.haml b/docs/source/partials/join-form.haml index 7d82b42a..c2b5d8b0 100644 --- a/docs/source/partials/join-form.haml +++ b/docs/source/partials/join-form.haml @@ -22,14 +22,11 @@ %span I'm the owner 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