{"id":56181,"date":"2024-07-31T13:13:49","date_gmt":"2024-07-31T13:13:49","guid":{"rendered":"https:\/\/www.greenpeace.org\/africa\/?page_id=56181"},"modified":"2026-06-29T13:13:25","modified_gmt":"2026-06-29T13:13:25","slug":"thank-you-plastic-pollution-in-sa-survey","status":"publish","type":"page","link":"https:\/\/www.greenpeace.org\/africa\/en\/plastic-pollution-in-sa-survey\/thank-you-plastic-pollution-in-sa-survey\/","title":{"rendered":"Thank You! &#8211; Plastic Pollution in SA &#8211; Survey"},"content":{"rendered":"\n<style>\nbody{background-color:#f6f4ef !important;\nbackground-repeat: no-repeat;}\n.page-header-background:after{background:none !important}\n.form-bg{height: fit-content;}\n.row>* {width: auto !important;}\n.skewed-overlay{display:none !important;}\nh1,h2,p{color:black !important;}\n.form-bg p{color:#000 !important;}\n.text-bg{background: rgba(0,0,0,.6);}\n.row h3{color:#FFF !important;}\n.text-bg a{color:#00AAFD !important;}\n.text-bg a:visited{color:#DA65FF !important;}\n.counter-title{color: #FFF;margin:0;}\n.counter-target{margin-bottom:0 !important;}\n.counter-text {text-align: left;}\n\n\n.site-footer, .nav-menu>ul, .nav-search-form, .nav-menu-toggle, .nav-search-toggle {display:none;}\n\n.site-logo {padding:5px;}\n\n.has-white-background-color {\n    padding: 20px;\n}\n\n@media screen and (max-width: 600px) {\n  .desktop-p, .desktop-spacer {\n    visibility: hidden;\ndisplay: none;\n  }\n}\n\n@media screen and (min-width: 600px) {\n  .mobile-p, .mobile-spacer {\n    visibility: hidden;\ndisplay: none;\n  }\n}\n\n<\/style>\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer desktop-spacer\"><\/div>\n\n<div style=\"height:29px\" aria-hidden=\"true\" class=\"wp-block-spacer mobile-spacer\"><\/div>\n\n<\/br><\/br><\/br>\n<h1 style= \"text-align: center;\" id=\"greeting\"><\/h1>\n   \n <script>\n        \/\/ Function to get query parameters from the URL\n        function getQueryParams() {\n            let params = {};\n            let queryString = window.location.search.substring(1);\n            let queries = queryString.split(\"&\");\n            for (let i = 0; i < queries.length; i++) {\n                let pair = queries[i].split(\"=\");\n                params[pair[0]] = decodeURIComponent(pair[1]);\n            }\n            return params;\n        }\n\n        \/\/ Function to capitalize the first letter of a string\n        function capitalizeFirstLetter(string) {\n            return string.charAt(0).toUpperCase() + string.slice(1);\n        }\n\n        \/\/ Get the query parameters\n        let queryParams = getQueryParams();\n\n        \/\/ Get the firstname parameter\n        let firstname = queryParams[\"firstname\"];\n\n        \/\/ Display the capitalized firstname on the page\n        if (firstname) {\n            document.getElementById(\"greeting\").textContent = `${capitalizeFirstLetter(firstname)}, thanks for participating in our survey!`;\n        } else {\n            document.getElementById(\"greeting\").textContent = \"Thanks for participating in our survey!\";\n        }\n    <\/script>\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<style>\n        .custom-frame {\n            background-color: rgb(233 228 228 \/ 50%);\n            border-radius: 15px;\n            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);\n            padding: 20px;\n            text-align: center;\n            max-width: 90%;\n            margin: 20px auto;\n        }\n        .custom-button-container {\n            display: flex;\n            flex-direction: column;\n            align-items: center;\n            justify-content: center;\n            width: 100%;\n            margin: 0 auto;\n            padding: 20px 0;\n        }\n        .custom-button, .custom-social-button {\n            width: 250px;\n            height: 50px;\n            color: white;\n            border: none;\n            cursor: pointer;\n            font-size: 16px;\n            margin: 10px 0;\n            font-family: 'Montserrat', sans-serif;\n            font-weight: bold;\n        }\n        .custom-button {\n            background-color: #66cc00;\n        }\n        .custom-social-button {\n            color: white;\n            border: none;\n            cursor: pointer;\n            font-size: 16px;\n            margin: 10px 0;\n            font-family: 'Montserrat', sans-serif;\n            font-weight: bold;\n        }\n        .custom-facebook-button {\n            background-color: #3b5998;\n        }\n        .custom-twitter-button {\n            background-color: #1da1f2;\n        }\n        .custom-instagram-button {\n            background-color: #c32aa3;\n        }\n        .custom-whatsapp-button {\n            background-color: #25d366;\n        }\n        .custom-hidden {\n            display: none;\n        }\n        .custom-h2 {\n            color: white;\n            text-align: center;\n        }\n    <\/style>\n<\/head>\n<body>\n    <div class=\"custom-frame\">\n        <div class=\"custom-button-container\">\n            <h2 class=\"custom-h2\">Can you help us build a plastic free future?<\/h2>\n<p>To take bold action against the plastic crisis wrecking Africa we need support from people like you.\n<strong>Will you donate whatever you can so we keep confronting this crisis head on?<\/strong><\/br> Every donation, no matter how big or small, supports the plastic work we do across Africa.<\/p>\n            <button id=\"yesDonate\" class=\"custom-button\" onclick=\"window.location.href='https:\/\/www.greenpeace.org\/africa\/en\/plastic-pollution-in-sa-survey\/thank-you-plastic-pollution-in-sa-survey\/?form=FUNSPKZKDZK&#038;utm_campaign=plastic&#038;utm_source=survey&#038;utm_medium=main-website&#038;utm_content=button&#038;utm_term=plastic-survey-thank-you-page'\">Yes, I will donate<\/button>\n            <button id=\"noThanks\" class=\"custom-button\" onclick=\"showShareButtons()\">Sorry, maybe later<\/button>\n            \n            <h2 id=\"shareText\" class=\"custom-h2 custom-hidden\">The more people joins the survey, the more insights we'll have. Will you please share this survey with your family and friends?<\/h2>\n            <button class=\"custom-social-button custom-facebook-button custom-hidden\" onclick=\"redirect('https:\/\/www.facebook.com\/sharer\/sharer.php?u=https:\/\/greenpeaceafrica.typeform.com\/to\/gYKRjpog')\">Share on Facebook<\/button>\n            <button class=\"custom-social-button custom-twitter-button custom-hidden\" onclick=\"redirect('https:\/\/twitter.com\/intent\/tweet?text=https:\/\/greenpeaceafrica.typeform.com\/to\/gYKRjpog')\">Share on Twitter<\/button>\n            <button class=\"custom-social-button custom-instagram-button custom-hidden\" onclick=\"redirect('https:\/\/instagram.com')\">Share on Instagram<\/button>\n            <button class=\"custom-social-button custom-whatsapp-button custom-hidden\" onclick=\"redirect('https:\/\/api.whatsapp.com\/send?text=https:\/\/greenpeaceafrica.typeform.com\/to\/gYKRjpog')\">Share on WhatsApp<\/button>\n        <\/div>\n    <\/div>\n\n    <script>\n        function showShareButtons() {\n            document.getElementById('shareText').classList.remove('custom-hidden');\n            document.querySelector('.custom-facebook-button').classList.remove('custom-hidden');\n            document.querySelector('.custom-twitter-button').classList.remove('custom-hidden');\n            document.querySelector('.custom-instagram-button').classList.remove('custom-hidden');\n            document.querySelector('.custom-whatsapp-button').classList.remove('custom-hidden');\n            scrollToElement('shareText');\n        }\n\n        function redirect(url) {\n            window.open(url, '_blank');\n            setTimeout(() => {\n                showShareButtons();\n            }, 500);\n        }\n\n        function scrollToElement(elementId) {\n            const element = document.getElementById(elementId);\n            const elementPosition = element.getBoundingClientRect().top + window.scrollY;\n            const offsetPosition = elementPosition - 50; \/\/ Adjust as needed for spacing\n\n            window.scrollTo({\n                top: offsetPosition,\n                behavior: 'smooth'\n            });\n        }\n    <\/script>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Can you help us build a plastic free future? To take bold action against the plastic crisis wrecking Africa we need support from people like you. Will you donate whatever you can so we keep confronting this crisis head on? Every donation, no matter how big or small, supports the plastic work we do across [&hellip;]<\/p>\n","protected":false},"author":83,"featured_media":56178,"parent":56153,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"ep_exclude_from_search":true,"p4_hide_page_title_checkbox":"on","p4_title":"","p4_subtitle":"","p4_description":"","background_image_id":"","background_image":"","p4_button_title":"","p4_button_link":"","p4_button_link_checkbox":"","p4_og_title":"","p4_og_description":"","p4_og_image":"","p4_og_image_id":"","p4_seo_canonical_url":"","p4_seo_meta_title":"","p4_seo_meta_description":"","p4_campaign_name":"","p4_local_project":"","p4_basket_name":"","p4_department":"","footnotes":""},"categories":[134],"tags":[],"class_list":["post-56181","page","type-page","status-publish","has-post-thumbnail","hentry","category-surveys"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.greenpeace.org\/africa\/en\/wp-json\/wp\/v2\/pages\/56181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greenpeace.org\/africa\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.greenpeace.org\/africa\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.greenpeace.org\/africa\/en\/wp-json\/wp\/v2\/users\/83"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greenpeace.org\/africa\/en\/wp-json\/wp\/v2\/comments?post=56181"}],"version-history":[{"count":16,"href":"https:\/\/www.greenpeace.org\/africa\/en\/wp-json\/wp\/v2\/pages\/56181\/revisions"}],"predecessor-version":[{"id":56337,"href":"https:\/\/www.greenpeace.org\/africa\/en\/wp-json\/wp\/v2\/pages\/56181\/revisions\/56337"}],"up":[{"embeddable":true,"href":"https:\/\/www.greenpeace.org\/africa\/en\/wp-json\/wp\/v2\/pages\/56153"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.greenpeace.org\/africa\/en\/wp-json\/wp\/v2\/media\/56178"}],"wp:attachment":[{"href":"https:\/\/www.greenpeace.org\/africa\/en\/wp-json\/wp\/v2\/media?parent=56181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greenpeace.org\/africa\/en\/wp-json\/wp\/v2\/categories?post=56181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greenpeace.org\/africa\/en\/wp-json\/wp\/v2\/tags?post=56181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}