Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
140 lines (135 sloc) 3.95 KB
<script>
let complianceCountries = [
"Austria",
"Belgium",
"Bulgaria",
"Croatia",
"Cyprus",
"Czech Republic",
"Czechia",
"Denmark",
"Estonia",
"Finland",
"France",
"Germany",
"Greece",
"Hungary",
"Ireland",
"Italy",
"Latvia",
"Lithuania",
"Luxembourg",
"Malta",
"Netherlands",
"Poland",
"Portugal",
"Romania",
"Slovakia",
"Slovenia",
"Spain",
"Sweden",
"United Kingdom",
"Jersey",
"Isle of Man",
"Guernsey",
"Iceland",
"Lichtenstein",
"Norway",
"Canada",
"Turkey"
];
var field = $("#country"); // Add ID of Dropdown field
const fieldChecker = function() {
console.log($(field).val());
for (let i = 0; i < complianceCountries.length; i++) {
const element = complianceCountries[i];
if ($(field).val() === complianceCountries[i]) {
document.getElementById(
"tell_us_how_you_want_to_hear_from_bitpay_view_our_privacy_policy_to_see_how_we_use_your_data_strong_yes_strong_bit_pay_can_email_me_about_news_promotions_and_offers_events_and_account_and_product_announcements"
).checked = false;
return true;
}
}
for (let i = 0; i < complianceCountries.length; i++) {
const element = complianceCountries[i];
if ($(field).val() !== complianceCountries[i]) {
document.getElementById(
"tell_us_how_you_want_to_hear_from_bitpay_view_our_privacy_policy_to_see_how_we_use_your_data_strong_yes_strong_bit_pay_can_email_me_about_news_promotions_and_offers_events_and_account_and_product_announcements"
).checked = true;
return true;
}
}
};
fieldChecker();
$(field).change(fieldChecker);
</script>
<a
style="
display:block;
border-style:solid;
border-radius:5px;
left:143px;
top:202px;
z-index:3;
width:223px;
height:51px;
background-color:#097A5B;
background:-webkit-linear-gradient(#2FCFA4,#097A5B);
background:-moz-linear-gradient(#2FCFA4,#097A5B);
background:-ms-linear-gradient(#2FCFA4,#097A5B);
background:-o-linear-gradient(#2FCFA4,#097A5B);
background:linear-gradient(#2FCFA4,#097A5B);
box-shadow: inset 0px 1px 0px #7ae8ca,inset 0 -1px 2px #054734;
text-shadow:1px 1px #000000;
color:#fff;
border-width:1px;
border-color:#097A5B;
font-size:21px;
line-height:25px;
font-weight:400;
font-family:Open Sans;
font-style:normal;
text-align:center;
background-repeat:no-repeat;
"
href="https://unbounce.bitpay.com/landing/blockchain-and-chargebacks-ebook/"
>
<span
style="
margin-top: -13px;
position: absolute;
top: 50%;
display: block;
text-align: center;
left: 0;
right: 0;
padding: 0 8px 0 8px;
cursor: pointer;
"
>Download Ebook</span
>
</a>
<button
style="
background-color:#097A5B;
background:-webkit-linear-gradient(#2FCFA4,#097A5B);
background:-moz-linear-gradient(#2FCFA4,#097A5B);
background:-ms-linear-gradient(#2FCFA4,#097A5B);
background:-o-linear-gradient(#2FCFA4,#097A5B);
background:linear-gradient(#2FCFA4,#097A5B);
box-shadow: inset 0px 1px 0px #7ae8ca,inset 0 -1px 2px #054734;
text-shadow:1px 1px #000000;
color:#fff;
border-width:1px;
border-color:#097A5B;
font-size:21px;
line-height:25px;
font-weight:400;
font-family:Open Sans;
font-style:normal;
text-align:center;
background-repeat:no-repeat;
"
>
Download EBook
</button>
You can’t perform that action at this time.